itojun
cf02e1f1ce
fix behavior of inet_pton() to be RFC2553/XNS compliant.
...
inet_pton() takes decimal dot-quads only. inet_pton() does not
take hexadecimal, octal nor classful (short) representation.
2000-02-07 18:51:02 +00:00
itojun
0affd7a994
visit next addrinfo struct on socket failure.
...
this should fix the behavior of rcmd() on ipv4-only node, trying to
connect to dual stack node (AAAA and A record on DNS/hostname databaes)
2000-01-31 10:23:03 +00:00
itojun
59b810d3a5
backout previous commit - freeaddrinfo(NULL) issue.
2000-01-28 08:09:48 +00:00
itojun
e4dc489b2c
allow freeaddrinfo(NULL). nothing is talked in RFC2553 (maybe in X/Open?).
...
however, since NRL freeaddrinfo permits it, we need to.
2000-01-27 08:25:51 +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
541dde0213
fix RFC2553 conformance. AI_CANONNAME does not mean reverse query.
2000-01-26 06:51:29 +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
324dad9e89
fix comment.
...
better sync with kame tree.
2000-01-24 03:08:12 +00:00
itojun
bd6de83f9b
remove #if 0'ed portion (AF filtering in normal name resolution)
...
add comment to the fragment which confused mycroft
2000-01-23 04:03:21 +00:00
mycroft
0b92a50dc3
Delint some more.
2000-01-23 01:55:17 +00:00
mycroft
82267feccd
Doh. I'm a dork.
2000-01-23 01:37:19 +00:00
mycroft
45f1263b98
Partially delint.
2000-01-23 00:10:56 +00:00
mycroft
5865c81535
Partially delint.
2000-01-23 00:09:19 +00:00
mycroft
af7317bb6b
Delint.
2000-01-23 00:01:35 +00:00
mycroft
c72eee355c
Partially delint.
2000-01-22 23:54:20 +00:00
mycroft
0463795134
Delint.
2000-01-22 23:37:14 +00:00
mycroft
967cbc5131
Use a better type in previous.
2000-01-22 23:36:17 +00:00
mycroft
c6a0f46b4f
Delint.
2000-01-22 22:53:59 +00:00
mycroft
605490369c
Delint.
...
Remove trailing ; from uses of __weak_alias(). The macro inserts this if
needed.
2000-01-22 22:19:07 +00:00
itojun
692c04487f
cosmetic (last dot in SEE ALSO section)
2000-01-19 07:03:35 +00:00
itojun
2705db0080
do not filter address families that are not supported by kernel.
...
the behavior was introduced in 1.8 -> 1.9, by itojun, and it was
not a correct behavior.
even if we may be able to connect to the the returned addresses,
filtering them out is not a correct thing to do. for example, even if
you have partial unreachablility in IPv4, gethostbyname(3) will return
IPv4 addresses in the unreachable network nonetheless.
2000-01-17 15:57:29 +00:00
itojun
79641939e0
remove #if 0'ed sections.
2000-01-17 08:34:04 +00:00
itojun
88d175cdc4
sync with latest KAME tree.
...
add example section to get{addr,name}info.
s/\.Os KAME/.Os/.
2000-01-17 08:33:45 +00:00
itojun
0e776c76b4
need sys/types.h before sys/socket.h
2000-01-07 01:49:42 +00:00
itojun
2cd2ee94b9
allow reverse query for v4 loopbacknet (127.0.0.0/8).
2000-01-05 04:54:54 +00:00
itojun
9ffbadc055
clarify text for RES_USE_INET6. this is almost always unnecessary.
2000-01-03 11:56:05 +00:00
assar
8f5685ec6b
ignore KEY and SIG records when matching responses to the query. we
...
get those as extras from DNSsec-enabled name servers.
1999-12-28 15:47:41 +00:00
itojun
1f9eba958f
properly check the error result from if_nametoindex(), to disallow
...
bogus interface index specification like fe80::1@bogus.
(sync with kame)
1999-12-27 10:20:59 +00:00
itojun
72e7091f16
more complete solution for gethostby*() buffer overwrite issue.
...
(we need thread-safe gethostby*...)
1999-12-13 17:05:45 +00:00
itojun
58481c1c06
fix getaddrinfo(3) and getnameinfo(3).
...
getaddrinfo(3): result from gethostby* will be broken if we call it again.
deep-copy them. we have sa_len so configure them.
getnameinfo(3): we have sa_len so configure them.
1999-12-13 16:22:56 +00:00
itojun
1501f61891
bring in latest KAME get{addr,name}info(3).
...
getnameinfo(3) globs ai_socktype and ai_protocol correctly.
KAME scopeid extension is implemented.
(draft-ietf-ipngwg-scopedaddr-format-00.txt)
bump up shlib minor
(may not be necessary, but rather big difference in behavior - especially
ai_flags)
1999-12-13 14:18:31 +00:00
itojun
0b3c3042e6
inet6_rthdr_reverse() is not implemented yet.
1999-12-12 14:59:09 +00:00
itojun
c3f65850fd
wording fixes (from openbsd camp -> kame)
1999-12-12 11:21:04 +00:00
itojun
a57d497906
add manpage for inet6_{option,rthdr}_*.
1999-12-12 11:20:03 +00:00
kleink
d574ffc673
(bcopy, bzero) -> (memcpy, memset)
1999-11-30 15:55:25 +00:00
lukem
2468bbbf42
don't use err(); instead pass an error condition back to a higher
...
layer to warn() about.
1999-11-28 05:46:15 +00:00
is
bcb4c98ba9
Properly check for overflows. Fixes PR8314 as annotated by mjl.
1999-11-13 04:52:50 +00:00
jdolecek
894f4bc996
add freeaddrinfo(3) and gai_strerror(3) as links to getaddrinfo(3)
1999-11-10 22:41:00 +00:00
is
94efbddebd
Check for invalid component numbers (wrong hex "digits", octal numbers
...
with digits of 8 or 9) and complain. Fixes PR 8314 by ITOH Yasufumi (but
adding the check of hexadecimal numbers).
1999-11-03 11:47:02 +00:00
lukem
0e4f2591aa
change default nsswitch.conf entry for `hosts' from:
...
hosts: dns files
to
hosts: files dns
this should speed things up a lot at boot if hostnames that are in
/etc/hosts are used for ifconfig, route, etc.
1999-10-24 12:36:02 +00:00
kleink
749057fddc
Need internal names for these, too.
1999-09-20 15:07:21 +00:00
lukem
d896261208
back out the #ifdef _DIAGNOSTIC argument checks; too many people complained.
...
_DIAGASSERT() is still retained.
1999-09-20 04:38:56 +00:00
lukem
2393f50e9e
return NS_UNAVAIL if args are dodgy
1999-09-16 23:43:52 +00:00
lukem
b48252f365
* use _DIAGASSERT() to check pointer arguments against NULL and file
...
descriptors against -1 (as appropriate).
* add actual checks which to detect stuff that would trigger_DIAGASSERT(),
and attempt to return a sane error condition.
* knf some code
* remove some `register' decls.
the first two items result in the addition of code similar to the
following in various functions:
_DIAGASSERT(path != NULL)
#ifdef _DIAGNOSTIC
if (path == NULL) {
errno = EFAULT;
return (-1);
}
#endif
1999-09-16 11:44:54 +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
kleink
5f3726439e
Need "namespace.h".
1999-08-22 12:54:02 +00:00
itojun
46c3891136
bring in IPv6 numeric address parsing fix from bind821.
...
XXX bind821 should be imported here
1999-08-17 17:50:27 +00:00
mycroft
9f5f4ac699
Make some needed weak aliases.
1999-08-17 03:58:39 +00:00
mycroft
6ea04fe2cd
This file was incorrect. The indirect name is res_close(),
...
not _res_close()!
1999-08-17 03:57:15 +00:00
itojun
94c4bdf1cc
pacify too-picky compiler.
...
From: onoe@sm.sony.co.jp
1999-08-13 09:45:51 +00:00