Commit Graph

492 Commits

Author SHA1 Message Date
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
lukem 50f5afd52e fix WARNS=2 (-Wshadow) warnings 2001-11-04 13:57:29 +00:00
wiz 2a5b4efdf5 sort sections 2001-10-22 23:47:01 +00:00
kleink bec52f0825 Add a reference to recv(2) as well. 2001-10-22 22:29:39 +00:00
kleink d4c0d0f2a2 Add a sockatmark(3), the 1003.1g wrapper around SIOCATMARK. 2001-10-22 17:53:43 +00:00
bjh21 b12979794e Put back AF_LINK support. This time, all the new code passes lint(1), modulo
bin/14175.  It should pass lint on a native i386 build, but I can't test that.
2001-10-06 13:59:41 +00:00
bjh21 5a7a518e05 Remove AF_LINK support. It generates lint warnings, and hence won't compile
on i386.  I'll re-commit once I've understood and fixed the problems.
2001-10-05 20:51:19 +00:00
itojun 84bfe490e4 make it at least compile (there's no /usr/include/net/if_ieee1394.h exist).
avoid overrun with snprintf.  be careful about snprintf return value.
2001-10-05 01:39:38 +00:00
bjh21 5b533f601d Extend getnameinfo() to support AF_LINK sockaddrs. The intention is that
anything that wants to print a link-layer address should go through here,
rather than re-inventing the wheel.
2001-10-04 23:09:04 +00:00
wiz cb19ecf339 Actually, we don't have libhesiod -- the functions are in libc.
Noted by Gregory McGarry.
2001-10-04 11:27:19 +00:00
wiz 104fe43050 mdoc'ify. 2001-09-16 15:53:03 +00:00
wiz 97ff145f62 Sort sections, sort SEE ALSO, and misc. fixes. 2001-09-16 02:54:17 +00:00
wiz e7560d5642 Boring whitespace fixes. 2001-09-16 02:23:09 +00:00
itojun 5996ba4042 make it possible to turn on RES_INSECURE[12] with /etc/resolv.conf.
don't connect datagram socket if RES_INSECURE1.
needed to implement IPv6 anycast UDP DNS queries as documented in
<draft-ietf-ipngwg-dns-discovery-02.txt>.
sync with kame.
2001-09-13 11:05:02 +00:00