Commit Graph

505 Commits

Author SHA1 Message Date
soren
69e08c5b46 Make SYNOPSIS accurate about required headers.
Fixes PR lib/11021 from wiz.
2002-08-06 16:08:47 +00:00
itojun
463bfdcd98 use strlcpy where appropriate 2002-08-02 07:50:35 +00:00
itojun
0c0bf329c4 query ip6.arpa then ip6.int for IPv6 reverse lookup. follows RFC3152. 2002-07-29 10:01:58 +00:00
wiz
18c66da5b7 Two typos. 2002-07-18 10:41:17 +00:00
itojun
a4cf77c9bb pacify lint. from he@netbsd 2002-07-01 22:05:08 +00:00
itojun
754f8759a4 lint clean. from martin husemann 2002-07-01 21:05:56 +00:00
itojun
9922c987a9 make more pedantic check on strtoul. from deraadt, sync w/kame 2002-07-01 07:42:49 +00:00
itojun
28735a6a17 correct port range check. from deraadt, sync w/kame, diff sent to bind-bugs 2002-06-29 12:23:10 +00:00
itojun
0c63dd3cf2 correct %d/%u mixup. 2002-06-27 10:22:07 +00:00
itojun
0c4fb2c7e1 correct DIAGASSERT 2002-06-26 09:39:48 +00:00
itojun
9cdbc86d39 correct bad practice in the code - it uses two changing variables
to manage buffer (buf and buflen).  we eliminate buflen and use
fixed point (ep) as the ending pointer.

this fix is NOT critical.
2002-06-26 06:00:26 +00:00
itojun
092b3bc66a avoid remote buffer overrun on hostbuf[]. From: Joost Pol <joost@pine.nl>
correct bad practice in the code - it uses two changing variables
to manage buffer (buf and buflen).  we eliminate buflen and use
fixed point (ep) as the ending pointer.

this fix is critical.
2002-06-26 06:00:07 +00:00
itojun
fb40d48413 do not pass uninitialized variable to nsdispatch(). 2002-06-26 02:40:46 +00:00
itojun
9ed8a29685 refer nsswitch.conf(5). From: Jim Bernard <jbernard@mines.edu> 2002-06-15 21:49:18 +00:00
wiz
e3e4fede44 __STDC__ is always defined on NetBSD. 2002-05-26 14:48:19 +00:00
tron
f2679ef4e3 Revert last change after protoype of getnameinfo(3) has been changed back. 2002-05-22 14:42:37 +00:00
kleink
a24f74d0fd Turn the flags argument to getnameinfo(3) back into an int (from unsigned
int); this is consistent with RFC2553, the current draft-ietf-ipngwg-
rfc2553bis-05 and the majority of deployed implementations.

Also, there is an effort under way to have this changed back to int in
XBD6/XSH6, XNS, and POSIX-2001 TC1.
2002-05-22 09:42:37 +00:00
itojun
6a3445b8a3 be picky about string manipulation in reverse lookups 2002-05-22 02:39:15 +00:00
itojun
b617695b31 use strlcpy, not strcpy 2002-05-22 01:52:24 +00:00
itojun
449d6afcab style 2002-05-18 00:07:28 +00:00
itojun
c37fca45ce do not reverse-lookup scoped IPv6 address. it does not make sense as
there's no way to give scope identifier.  sync w/kame
2002-05-17 22:40:31 +00:00
kleink
3f6b0b61a5 <netdb.h> doesn't need prerequisite headers. 2002-05-15 08:53:42 +00:00
thorpej
2afd826926 Delint after getaddrinfo(), etc. changes. 2002-05-14 23:58:08 +00:00
kleink
ba77dc646c XNS5.2/POSIX-2001: change the size argument to inet_ntop from size_t to
socklen_t.
2002-05-14 18:57:31 +00:00
kleink
4b77e72e94 More XNS5.2/POSIX-2001 alignment: change the flags argument to
getnameinfo() from int to unsigned int.
2002-05-14 14:35:36 +00:00
kleink
485febee55 Align with XNS5.2/POSIX-2001: change hostlen and servlen arguments to
getnameinfo() from size_t to socklen_t.
2002-05-14 14:31:05 +00:00
kleink
dddf6754e0 ai_addrlen: size_t -> socklen_t. 2002-05-14 13:50:21 +00:00
kleink
06d36d9eee struct addrinfo.ai_addrlen used to be a size_t, per RFC 2553.
In XNS5.2, and subsequently in POSIX-2001 and draft-ietf-ipngwg-rfc2553bis-02
it was changed to a socklen_t.

To accomodate for this while preserving binary compatibility with the
old interface, prepend or append 32 bits of padding, depending on
the (LP64 data model) architecture's endianness.

This should be deleted the next time the libc major number is
incremented.
2002-05-14 13:45:13 +00:00
kleink
4396915999 Rip out <sys/types.h> and <sys/socket.h> inclusions: there are no
pre-requisites for <netdb.h>.
2002-05-10 22:26:59 +00:00
kleink
c88f6e9e24 In the examples, initialize struct addrinfo explicitly to either 0 or a
NULL pointer; from der Mouse in PR lib/16634.
2002-05-10 22:11:24 +00:00
simonb
fdf099ea04 Remove a check for a u_int8_t variable being greater than 255. 2002-05-05 08:28:47 +00:00
groo
fbac9d8372 botched strncpy -> strlcpy
from xs@kittenz.org
2002-04-16 19:17:17 +00:00
groo
1e880d776e botched strn* -> strl*
from xs@kittenz.org
2002-04-16 19:16:22 +00:00
groo
6bf409aa5b Minor KNF + proper end of string detection in read_config_file()
Inspired by xs@kittenz.org
2002-04-16 19:12:40 +00:00
thorpej
9c33b55e7c Split the notion of building Hesiod, Kerberos, S/key, and YP
infrastructure and using that infrastructure in programs.

	* MKHESIOD, MKKERBEROS, MKSKEY, and MKYP control building
	  of the infratsructure (libraries, support programs, etc.)

	* USE_HESIOD, USE_KERBEROS, USE_SKEY, and USE_YP control
	  building of support for using the corresponding API
	  in various libraries/programs that can use it.

As discussed on tech-toolchain.
2002-03-22 18:10:19 +00:00
lukem
247856f4d7 Fixes from Bill Fenner <fenner@research.att.com> for problems he found
in FreeBSD's port of this nsswitch code:

- Don't ignore unknown characters.  The old lexer would treat
	hosts:!!!!!!!!@@@@@$%^&*()()*$(files{}{}|||++!)(dns
  exactly the same as
	hosts: files dns

- Recover from errors by looking for the end of a line.  This means
  that having a syntax error near the top of the file doesn't prevent
  a service at the bottom of the file with no syntax error from being
  looked up.

Thanks Bill!
2002-03-19 00:04:09 +00:00
sommerfeld
3e18fc136f More ipip references 2002-03-04 15:15:39 +00:00
augustss
8f814a0ad6 Make this lintable so we can build libc again. 2002-02-14 22:10:56 +00:00
martin
63ad589924 Fix a LP64 problem. Patch from Minoura Makoto in PR lib/15596. 2002-02-14 19:53:00 +00:00
ross
9856438e91 generate & symbolically 2002-02-07 09:24:04 +00:00
ross
814f296b77 Generate <>& symbolically. 2002-02-07 07:00:09 +00:00
lukem
4d32f2f102 - be consistent about using "u_char" instead of "unsigned char"
- delint
2001-12-09 01:17:36 +00:00
lukem
686d221d91 Implement AF_INET6 back-ends for inet_net_ntop() and inet_net_pton(), from
the BIND 8.3.0-T2A sources.  Thanks to Paul Vixie for the pointer to it.
2001-12-08 12:06:12 +00:00
lukem
32a96141e4 ansi knf 2001-12-08 11:47:04 +00:00
gmcgarry
d28c8e0f2a Add .Os 2001-12-08 04:52:01 +00:00
lukem
d62c475930 ansi knf. remove unused cruft 2001-12-01 04:43:24 +00:00
ross
28e17cffb8 Delete the old BUGS section entry:
> On the VAX bytes are handled backwards from most everyone else in
> the world.  This is not expected to be fixed in the near future.

Multiple levels of irony there...
2001-11-29 22:55:57 +00:00
itojun
3c0303a158 sync with reality; scope identifier comes with the result even without
NI_WITHSCOPEID.
2001-11-15 06:46:33 +00:00
itojun
6c9440f374 make NI_WITHSCOPEID a default (always on), to synchronize with recent 2553bis.
sync with kame.
2001-11-15 04:49:01 +00:00
itojun
72a8eddd96 synchronize with kame better. get rid of #defines for ENI_xx. 2001-11-15 04:38:32 +00:00