Commit Graph

54 Commits

Author SHA1 Message Date
itojun 92db021bdc use BSDI-origin if_{index,name}* functions. they use getifaddrs(3) as
backend and are more robust against SIOCGIFCONF alignment issue.
now getifaddrs always takes care of the issue.  (sync with kame tree)
use weak symbol just in case.
2000-04-24 10:24:46 +00:00
sjg 413ffc39c1 Listing generated files nslexer.c nsparser.c in SRCS breaks make depend
in a clean dir. Put the actual src files nslexer.l nsparser.y there.
2000-03-14 14:34:50 +00:00
itojun 2dc247fc34 make CMSG_ALIGN always synchronize with kernel's idea of ALIGNBYTES.
ancillary data alignment will be ALIGNBYTES, not sizeof(long) - 1, from now.

CMSG_xx will NOT resolve into constant.  if you use CMSG_xx to allocate
arrays, you'll lose.

bump shlib minor for libc.

NOTE: if you are on top of arch with ALIGNBYTES != sizeof(long) - 1,
you need to recompile IPv6-related binaries.  there is no way to guarantee
backward compat in this aspect.  sorry for this.  this should be the last
backward compat breakage for IPv6-related ancillary data manipulation.
(we still have PR 9516 for unix-domain sockets...)
2000-03-02 07:41:49 +00:00
itojun 73f8a2b760 add freeifaddrs.3 as MLINKS. 2000-02-23 15:44:00 +00:00
itojun 6037c7862b add getifaddrs(3) from bsdi4, as mentioned in tech-net (in SIOCGIFCONF
related thread).
this will save future apps from complexity of SIOCGIFCONF.

getifaddrs(3) does not use SIOCGIFCONF internally, it uses sysctl.
2000-02-23 06:57:46 +00:00
itojun ed74ec1491 add missing manpage, gethostbyname2(3). 2000-02-09 12:23:55 +00:00
itojun 5b1aaa939e add IPv6 support to rcmd() and friends.
rcmd() and iruserok(): unchanged
	ruserok(): became address family independent
	rcmd_af(), iruesrok_sa(): address family independent
2000-01-27 05:33:06 +00:00
itojun ed15f9831a move -DINET6 upwards, into lib/libc/Makefile.
- we need it for lib/libc/rpc soon
- this is not clear to add CPPFLAGS in subdir/Makefile.inc (as it affect other
  subdirs as well)
2000-01-26 02:46:36 +00:00
itojun a57d497906 add manpage for inet6_{option,rthdr}_*. 1999-12-12 11:20:03 +00:00
jdolecek 894f4bc996 add freeaddrinfo(3) and gai_strerror(3) as links to getaddrinfo(3) 1999-11-10 22:41:00 +00:00
kleink 252971afdb Add indirect reference stubs for inet_[ap]ton() for environments not supporting
weak aliases; addresses PR lib/7435 but leaves the original file intact.
1999-09-15 14:21:01 +00:00
itojun 37e8159125 add IPv6 support functions.
get{addr,name} info are implemented to have as little impact to existing
resolver code as possible, so they are NOT the optimal implementation.
They are at this moment not very thread safe (as they call
gethostby{name,addr}).

(shlib minor version)++, as new interfaces are added.

TODO: getipnodeby{name,addr} - which needs total reimplementation of
gethostby{name,addr}.
upgrade rcmd.c for multiple af support (needed for IPv6-ready rsh/rlogin)
1999-07-01 18:23:53 +00:00
mycroft 77b2201463 Do a lame hack to reduce the size of the lexer state buffer, which reduces
memory consumption substantially.  The buffer is only used to print line
numbers...
1999-04-22 00:37:42 +00:00
drochner a34eb7c1b7 use ${ARCHDIR} instead of ${.CURDIR}/arch/${MACHINE_ARCH} where appropriate
libc builds on pmax again
1999-02-24 15:05:20 +00:00
lukem 0b7af13a74 add hesiod(3) et al 1999-01-25 03:43:04 +00:00
lukem 2bf40fa435 pull nsswitch up to main branch
convert getnetby*() to nsswitch (from resolv.conf lookup)
1999-01-16 07:48:23 +00:00
lukem de3b78d72a merge nsswitch into main branch 1999-01-15 12:48:41 +00:00
lukem fe28db95aa install links for inet_ntop(3) and inet_pton(3) 1998-03-12 12:08:09 +00:00
christos bb0194f1ee Add sorting of resolved addresses. 1998-02-04 12:19:03 +00:00
mrg 4e252e8c4d add missing .Nm entries. from spz@serpens.swb.de. 1997-11-14 02:04:36 +00:00
kleink 0dfbaed62c Make linkntoa.3 a link to linkaddr.3 again; fixes PR lib/4017 from maximum
entropy <entropy@tardis.bernstein.com>.
1997-08-26 20:27:05 +00:00
mrg 38bfb6cd0a merge bind 4.9.6 resolver. still need to fix <resolv.h> 1997-07-20 13:33:17 +00:00
christos 78587c990a inet_pton4() did not handle
- incompletely specified ip addresses
	- ip addresses specified in hex
like inet_aton() and inet_addr(). This broke parsing of /etc/hosts
(127.1	localhost stopped working before the resolver is started).
The fix is to use the inet_aton() code to implement inet_pton4(), and
then use the new inet_pton4() code to implement inet_aton() and inet_addr().
At that point inet_addr.c is empty and has been removed.
1997-07-07 17:11:03 +00:00
lukem 5bacaabfd1 * add man page for inet_net_ntop(3) and inet_net_pton(3)
* xref them in inet(3)
* use Va instead of Fn for 'errno' in inet(3)
1997-06-18 02:25:19 +00:00
mrg 337facc4a3 install a man page (link) for orcmd(3). 1997-05-28 04:02:08 +00:00
mrg ee6f78c8a1 create indirect references (or function stubs) to dn_comp(), res_close()
and res_send(), as required.
1997-04-22 06:55:36 +00:00
mrg 023690d8db merge in the bind 4.9.5-P1 resolver. we are now _mostly_ the
same as this, with our changes also included (resolv.conf and
other minor differences).
1997-04-13 10:30:29 +00:00
mikel 6965177949 Add iso_addr.3 to MAN. Fixes misc/2942. 1996-11-17 04:37:14 +00:00
jtc 6d8b15101f Install linkaddr.3 as link_addr.3 and link_ntoa.3 too. 1996-07-10 20:15:48 +00:00
jtc 755230061e Added explicit return types to all functions in SYNOPSIS section.
Added documentation to hstrerror() function.
Added hstrerror MLINK.
1996-03-30 01:14:56 +00:00
mrg 237baea38a merge with the resolver in bind 4.9.3-P1. 1996-02-02 15:22:14 +00:00
chopps 09072f5bd9 include proper links to ethers.3 1995-03-02 09:09:07 +00:00
cgd c2ee3d850f mention the functions that need to be provided, instead of providing dflts. 1995-02-25 17:10:57 +00:00
cgd ef0582f1e7 clean up import. also convert everything to new Id format. 1995-02-25 06:20:26 +00:00
cgd b42e80ba75 list the files needed on the alpha. 1995-02-10 17:46:48 +00:00
cgd ae9172d6cd specify man pages the new way. 1994-12-22 09:57:51 +00:00
cgd 510290ed54 make sure link for inet_aton is in alphabetical order in MLINKS. 1994-12-18 09:42:18 +00:00
dean a7d9360c57 Include files for pmax 1994-11-14 23:46:52 +00:00
glass 2999135c5d link inet.3 for inet_aton() 1994-10-31 06:53:48 +00:00
cgd b7d1866d65 fix bug 535, reported by Brian Moore. 1994-10-28 17:30:22 +00:00
deraadt e1d7e3c22c ethers(3) man page by Roland McGrath <roland@frob.com> 1993-12-16 15:50:20 +00:00
deraadt 6a3865505c ethers(3) sunos-like support from Roland McGrath <roland@frob.com>
YP code fixed by myself (looked in wrong maps, didn't free things :-)
used by rarpd & friends.
1993-12-16 05:17:35 +00:00
pk 49d5ac06cc Added some Sparc sources. 1993-12-08 13:31:01 +00:00
briggs bdb4a3a91a Changed occurance of MACHINE_ARCH == "hp300" to MACHINE_ARCH == "m68k" 1993-12-05 15:45:52 +00:00
cgd f00e1cfe6a get pc532 moved into ns32k; that's is MACHINE_ARCH 1993-12-05 02:20:58 +00:00
cgd 30dc89704d split up the {ntoh,hton}[ls] functions 1993-12-05 01:36:46 +00:00
cgd 0ada107897 update for .S and MACHINE_ARCH 1993-12-04 02:33:35 +00:00
cgd 0b9f50897e make an arch directory in libc, and move all machine dirs into it 1993-10-07 00:17:24 +00:00
phil 7ce7cb30df pc532 specifics. 1993-09-17 19:22:50 +00:00
jtc 53229bead2 Provide C language versions of the netorder functions.
These may be "good enough" for big-endian systems that do not have assembly
language versions of their own.  A compiler should be able to do a fairly
good job optimising them, it probably won't be smart enough to omit the
stack frame, but then again, these functions won't be called unless the
macro versions are undef'd.
On the other hand, they are only intended for bootstrap purposes on little-
endian systems.  They should be replaced with assembly language versions as
soon as possible.
1993-08-31 19:00:11 +00:00