Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
ISC Open Source Projects
BIND
Commits
b6027101
Commit
b6027101
authored
Jun 21, 2000
by
David Lawrence
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update_copyrights
parent
c296c085
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
93 additions
and
54 deletions
+93
-54
lib/lwres/getaddrinfo.c
lib/lwres/getaddrinfo.c
+18
-1
lib/lwres/getnameinfo.c
lib/lwres/getnameinfo.c
+30
-8
lib/lwres/herror.c
lib/lwres/herror.c
+18
-18
lib/lwres/include/lwres/list.h
lib/lwres/include/lwres/list.h
+1
-1
lib/lwres/lwinetaton.c
lib/lwres/lwinetaton.c
+18
-18
lib/lwres/lwinetntop.c
lib/lwres/lwinetntop.c
+4
-4
lib/lwres/lwinetpton.c
lib/lwres/lwinetpton.c
+4
-4
No files found.
lib/lwres/getaddrinfo.c
View file @
b6027101
/*
* Portions Copyright (C) 1999, 2000 Internet Software Consortium.
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM DISCLAIMS
* ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL INTERNET SOFTWARE
* CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
* DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
* PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
* ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
* SOFTWARE.
*/
/*-
* Copyright (c) 1997 Berkeley Software Design, Inc. All rights reserved.
* The Berkeley Software Design Inc. software License Agreement specifies
* the terms and conditions for redistribution.
*
* BSDI $Id: getaddrinfo.c,v 1.2
2
2000/06/
15 23:48:07 explorer
Exp $
* BSDI $Id: getaddrinfo.c,v 1.2
3
2000/06/
21 22:20:11 tale
Exp $
*/
#include <config.h>
...
...
lib/lwres/getnameinfo.c
View file @
b6027101
/*
* Issues to be discussed:
* - Return values. There seems to be no standard for return value (RFC2553)
* but INRIA implementation returns EAI_xxx defined for getaddrinfo().
* Portions Copyright (C) 1999, 2000 Internet Software Consortium.
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM DISCLAIMS
* ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL INTERNET SOFTWARE
* CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
* DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
* PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
* ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
* SOFTWARE.
*/
/*
...
...
@@ -37,6 +48,13 @@
* SUCH DAMAGE.
*/
/*
* XXX
* Issues to be discussed:
* - Return values. There seems to be no standard for return value (RFC2553)
* but INRIA implementation returns EAI_xxx defined for getaddrinfo().
*/
#include <sys/types.h>
#include <sys/socket.h>
...
...
@@ -60,9 +78,11 @@ static struct afd {
size_t
a_addrlen
;
size_t
a_socklen
;
}
afdl
[]
=
{
/* first entry is linked last... */
{
AF_INET
,
sizeof
(
struct
in_addr
),
sizeof
(
struct
sockaddr_in
)},
{
AF_INET6
,
sizeof
(
struct
in6_addr
),
sizeof
(
struct
sockaddr_in6
)},
/*
* First entry is linked last...
*/
{
AF_INET
,
sizeof
(
struct
in_addr
),
sizeof
(
struct
sockaddr_in
)
},
{
AF_INET6
,
sizeof
(
struct
in6_addr
),
sizeof
(
struct
sockaddr_in6
)
},
{
0
,
0
,
0
},
};
...
...
@@ -185,7 +205,9 @@ lwres_getnameinfo(const struct sockaddr *sa, size_t salen, char *host,
#endif
if
(
host
==
NULL
||
hostlen
==
0
)
{
/* what should we do? */
/*
* What should we do?
*/
}
else
if
(
flags
&
NI_NUMERICHOST
)
{
if
(
lwres_net_ntop
(
afd
->
a_af
,
addr
,
numaddr
,
sizeof
(
numaddr
))
==
NULL
)
...
...
@@ -198,7 +220,7 @@ lwres_getnameinfo(const struct sockaddr *sa, size_t salen, char *host,
#if 0
if ((flags & NI_NUMERICSCOPE) == 0) {
/*
*
v
endors may want to add support for
*
V
endors may want to add support for
* non-numeric scope identifier.
*/
stringscope = foo;
...
...
lib/lwres/herror.c
View file @
b6027101
/*
* Portions Copyright (C) 2000 Internet Software Consortium.
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM DISCLAIMS
* ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL INTERNET SOFTWARE
* CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
* DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
* PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
* ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
* SOFTWARE.
*/
/*
* Copyright (c) 1987, 1993
* The Regents of the University of California. All rights reserved.
...
...
@@ -31,27 +48,10 @@
* SUCH DAMAGE.
*/
/*
* Portions Copyright (c) 1996-1999 by Internet Software Consortium.
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM DISCLAIMS
* ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL INTERNET SOFTWARE
* CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
* DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
* PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
* ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
* SOFTWARE.
*/
#if defined(LIBC_SCCS) && !defined(lint)
static
const
char
sccsid
[]
=
"@(#)herror.c 8.1 (Berkeley) 6/4/93"
;
static
const
char
rcsid
[]
=
"$Id: herror.c,v 1.
4
2000/0
5
/2
4 05:09:52
tale Exp $"
;
"$Id: herror.c,v 1.
5
2000/0
6
/2
1 22:20:13
tale Exp $"
;
#endif
/* LIBC_SCCS and not lint */
#include <config.h>
...
...
lib/lwres/include/lwres/list.h
View file @
b6027101
/*
* Copyright (C) 1997
, 1999,
2000 Internet Software Consortium.
* Copyright (C) 1997
-
2000 Internet Software Consortium.
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
...
...
lib/lwres/lwinetaton.c
View file @
b6027101
/*
* Portions Copyright (C) 1996-2000 Internet Software Consortium.
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM DISCLAIMS
* ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL INTERNET SOFTWARE
* CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
* DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
* PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
* ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
* SOFTWARE.
*/
/*
* Copyright (c) 1983, 1990, 1993
* The Regents of the University of California. All rights reserved.
...
...
@@ -51,26 +68,9 @@
* SOFTWARE.
*/
/*
* Portions Copyright (C) 1996-2000 Internet Software Consortium.
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM DISCLAIMS
* ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL INTERNET SOFTWARE
* CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
* DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
* PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
* ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
* SOFTWARE.
*/
#if defined(LIBC_SCCS) && !defined(lint)
static
char
sccsid
[]
=
"@(#)inet_addr.c 8.1 (Berkeley) 6/17/93"
;
static
char
rcsid
[]
=
"$Id: lwinetaton.c,v 1.
4
2000/0
5
/2
5 01:08:07
tale Exp $"
;
static
char
rcsid
[]
=
"$Id: lwinetaton.c,v 1.
5
2000/0
6
/2
1 22:20:14
tale Exp $"
;
#endif
/* LIBC_SCCS and not lint */
#include <config.h>
...
...
lib/lwres/lwinetntop.c
View file @
b6027101
/*
* Copyright (
c
) 1996-2000
by
Internet Software Consortium.
*
* Copyright (
C
) 1996-2000 Internet Software Consortium.
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
*
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM DISCLAIMS
* ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL INTERNET SOFTWARE
...
...
@@ -17,7 +17,7 @@
#if defined(LIBC_SCCS) && !defined(lint)
static
char
rcsid
[]
=
"$Id: lwinetntop.c,v 1.
2
2000/0
5
/2
4 05:09:53
tale Exp $"
;
"$Id: lwinetntop.c,v 1.
3
2000/0
6
/2
1 22:20:15
tale Exp $"
;
#endif
/* LIBC_SCCS and not lint */
#include <config.h>
...
...
lib/lwres/lwinetpton.c
View file @
b6027101
/*
* Copyright (
c
) 1996
,1999,
2000
by
Internet Software Consortium.
*
* Copyright (
C
) 1996
-
2000 Internet Software Consortium.
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
*
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM DISCLAIMS
* ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL INTERNET SOFTWARE
...
...
@@ -16,7 +16,7 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
static
char
rcsid
[]
=
"$Id: lwinetpton.c,v 1.
2
2000/0
5/14 03:52:3
6 tale Exp $"
;
static
char
rcsid
[]
=
"$Id: lwinetpton.c,v 1.
3
2000/0
6/21 22:20:1
6 tale Exp $"
;
#endif
/* LIBC_SCCS and not lint */
#include <config.h>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment