Hajimu UMEMOTO
8827557e37
according to RFC3542 10.5, the 5th argment of inet6_opt_next()
...
is not size_t but socklen_t.
Reported by: tinderbox
2003-10-25 06:51:23 +00:00
Hajimu UMEMOTO
bf838688af
oops, revert previous change to getaddrinfo.c. This is not related
...
to RFC3493. The previous change was related to RFC3484 (Default
Address Selection for IPv6), and it will come later.
2003-10-24 18:43:24 +00:00
Hajimu UMEMOTO
f95d46333d
Switch Advanced Sockets API for IPv6 from RFC2292 to RFC3542
...
(aka RFC2292bis). Though I believe this commit doesn't break
backward compatibility againt existing binaries, it breaks
backward compatibility of API.
Now, the applications which use Advanced Sockets API such as
telnet, ping6, mld6query and traceroute6 use RFC3542 API.
Obtained from: KAME
2003-10-24 18:26:30 +00:00
Hajimu UMEMOTO
688a5c3ea3
reorder functions to be in sync with KAME.
2003-10-23 14:32:03 +00:00
Hajimu UMEMOTO
37b3e94167
EAI_ADDRFAMILY and EAI_NODATA was deprecated in RFC3493
...
(aka RFC2553bis). Now, getaddrinfo(3) returns EAI_NONAME
instead of EAI_NODATA. Our getaddrinfo(3) nor getnameinfo(3)
didn't use EAI_ADDRFAMILY.
Obtained from: KAME
2003-10-23 13:55:36 +00:00
Hajimu UMEMOTO
3b1a779723
oops, gai_strerror must return default value when error code
...
isn't found in ai_errlist.
2003-10-22 16:53:21 +00:00
Hajimu UMEMOTO
b29ec00b70
make ai_errlist struct. this is preparation for RFC3493
...
(EAI_NODATA is depricated).
Obtained from: KAME
2003-10-22 15:41:38 +00:00
Hajimu UMEMOTO
d24cb2490d
stop use of NI_WITHSCOPEID. it was deprecated.
...
Obtained from: KAME
2003-10-21 20:11:47 +00:00
Bill Fenner
2b9de089a7
From OpenBSD:
...
always widen the imputed netmask if it is narrower than the specified octets.
fixes a strange behaviour where inet_net_pton would always return 4 (bits)
for multicast addresses no matter how many octets were specified.
negotiated with Paul Vixie, original author of this function.
PR: standards/53151
Submitted by: Max Laier <max@love2party.net>
Optained from: OpenBSD
2003-09-15 23:38:06 +00:00
Hajimu UMEMOTO
5c4c2dbb56
Our getaddrinfo() and getnameinfo() are thread-safe but
...
some limitation.
Reported by: Marc G. Fournier <scrappy@hub.org>
2003-09-15 04:52:15 +00:00
Ruslan Ermilov
743d5d518c
mdoc(7): Properly mark C headers.
2003-09-10 19:24:35 +00:00
Ruslan Ermilov
fe08efe680
mdoc(7): Use the new feature of the .In macro.
2003-09-08 19:57:22 +00:00
Maxime Henrion
434252892a
An u_int8_t can never be bigger than 255, so remove a useless check.
...
Spotted by: GCC
2003-07-25 12:23:25 +00:00
Kris Kennaway
97cbd1c728
Remove bogus non-reentrant "temporary" implementation of gethostbyaddr_r()
...
that has been here for 6 years and 9 months.
Reviewed by: deischen
MFC After: 1 week
2003-06-19 07:57:11 +00:00
Philippe Charnier
fe71ab1cf4
.Xr -> .Lb for librairy. There is no manual page corresponding to .Xr.
2003-06-08 10:07:14 +00:00
Ruslan Ermilov
3a5146d9e2
Assorted mdoc(7) fixes.
...
Approved by: re (blanket)
2003-05-22 13:02:28 +00:00
Ruslan Ermilov
aba60fa66b
Fixed troff(1) and mdoc(7) warnings.
...
Approved by: re (blanket)
2003-05-18 21:05:22 +00:00
Daniel Eischen
e8baaa7062
Replace use of a spinlock with a mutex.
2003-05-04 22:36:46 +00:00
Jacques Vidrine
d05090827f
Back out the `hiding' of strlcpy and strlcat. Several people
...
vocally objected to this safety belt.
2003-05-01 19:03:14 +00:00
Jacques Vidrine
5723e501ab
`Hide' strlcpy and strlcat (using the namespace.h / __weak_reference
...
technique) so that we don't wind up calling into an application's
version if the application defines them.
Inspired by: qpopper's interfering and buggy version of strlcpy
2003-04-29 21:13:50 +00:00
Jacques Vidrine
43f9b2521d
Don't complain about missing NSS methods when built statically. It is
...
annoying and not very useful.
Sponsored by: DARPA, Network Associates Laboratories
2003-04-24 19:57:31 +00:00
Jacques Vidrine
c5774e2d30
Catch up with nsdispatch.c: nsdispatch(3) is now `hidden' by
...
namespace.h.
Sponsored by: DARPA, Network Associates Laboratories
2003-04-24 18:05:48 +00:00
Jacques Vidrine
20e0e084e7
Catch up with nsdispatch.c: nsdispatch(3) is now `hidden' by
...
namespace.h.
Sponsored by: DARPA, Network Associates Laboratories
2003-04-24 17:41:20 +00:00
Jacques Vidrine
46d9306383
= Implement name service switch modules (NSS modules). NSS modules
...
may be built into libc (`static NSS modules') or dynamically loaded
via dlopen (`dynamic NSS modules'). Modules are loaded/initialized
at configuration time (i.e. when nsdispatch is called and nsswitch.conf
is read or re-read).
= Make the nsdispatch(3) core thread-safe.
= New status code for nsdispatch(3) `NS_RETURN', currently used to
signal ERANGE-type issues.
= syslog(3) problems, don't warn/err/abort.
= Try harder to avoid namespace pollution.
= Implement some shims to assist in porting NSS modules written for
the GNU C Library nsswitch interface.
Sponsored by: DARPA, Network Associates Laboratories
2003-04-17 14:14:22 +00:00
Peter Wemm
e3220e017a
Remove NS and ISO stuff.
2003-03-05 19:16:41 +00:00
David E. O'Brien
c492fac741
Restore vendor ID.
2003-03-03 01:12:24 +00:00
Jacques Vidrine
2bbd7cf820
Eliminate 19 warnings in libc (at level WARNS=2) of the
...
`implicit declaration of function' variety.
2003-02-27 13:40:01 +00:00
Jacques Vidrine
6d7bd75a4e
Whack 28 unused variables.
2003-02-18 13:39:52 +00:00
Jacques Vidrine
e0554a531f
Eliminate 61 warnings emitted at WARNS=2 (leaving 53 to go).
...
Only warnings that could be fixed without changing the generated object
code and without restructuring the source code have been handled.
Reviewed by: /sbin/md5
2003-02-16 17:29:11 +00:00
Philippe Charnier
d649825182
The .Fn function
2003-02-06 11:04:47 +00:00
Bill Fenner
a6497df52c
Use in_addr_t for the right size of an IPv4 address, and copy into
...
an unaligned destination using bcopy instead of an assignment.
Submitted by: Hartmut Brandt <brandt@fokus.gmd.de>
PR: sparc64/46729
2003-01-05 14:05:24 +00:00
Jens Schweikhardt
9d5abbddbf
Correct typos, mostly s/ a / an / where appropriate. Some whitespace cleanup,
...
especially in troff files.
2003-01-01 18:49:04 +00:00
Jens Schweikhardt
57bd0fc6e8
english(4) police.
2002-12-27 12:15:40 +00:00
Ruslan Ermilov
2efeeba554
mdoc(7) police: "The .Fa argument.".
2002-12-19 09:40:28 +00:00
Ruslan Ermilov
5c564bae0a
mdoc(7) police: Fixed abuses of the .Ar and .Em macros.
2002-12-18 13:33:04 +00:00
Ruslan Ermilov
1fae73b137
mdoc(7) police: "The .Fn function".
2002-12-18 12:45:11 +00:00
Ruslan Ermilov
0fcfb0df3a
mdoc(7) police: markup overhaul.
2002-12-14 15:29:27 +00:00
Bill Fenner
43ac5a2340
Add an implementation of the POSIX.1 sockatmark(3).
2002-12-13 22:22:55 +00:00
Tom Rhodes
6883c2e5ae
Fix the HISTORY to match reality. They were never MFC'ed to 4.X.
...
Submitted by: R. Imura <imura@ryu16.org>
Approved by: re (murray)
2002-12-12 22:22:51 +00:00
Ruslan Ermilov
ae82896268
Consistently mark std(in|out|err) with .Dv, because that's how they
...
are marked up in stdio(3), and because they are defined expressions
of type "FILE *".
Approved by: re
2002-12-04 18:57:46 +00:00
Ruslan Ermilov
1798791d24
mdoc(7) police: formatting nits.
...
Approved by: re
2002-11-29 15:57:50 +00:00
Hajimu UMEMOTO
c86d6b6cb7
try SIOCGIFINDEX 1st to be able to use network aliasing.
...
Submitted by: jlemon
Approved by: re
2002-11-28 17:46:40 +00:00
Ruslan Ermilov
c51d717f0c
libc_r wasn't so tied to libc for 22 months.
2002-11-18 09:50:57 +00:00
Hajimu UMEMOTO
ddb2984b5d
query ip6.arpa then ip6.int for IPv6 reverse lookup. follows RFC3152.
...
MFC after: 5 days
2002-10-26 19:00:14 +00:00
Hajimu UMEMOTO
a89c1d30b2
- scopeid is u_int32_t
...
- strtoul pedant. pointed out by deraadt
Obtained from: KAME
MFC after: 1 week
2002-10-25 17:07:02 +00:00
Hajimu UMEMOTO
dd521ef192
- kill strcpy
...
- port range check need to be done before htons. from deraadt
- %d/%u audit
- 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.
- use snprintf, not sprintf
- pass correct name into q.name. from lukem@netbsd
- sync comment
Obtained from: KAME
MFC after: 1 week
2002-10-25 16:24:28 +00:00
Hajimu UMEMOTO
aadad92276
query ip6.arpa then ip6.int for IPv6 reverse lookup. follows RFC3152.
...
Obtained from: KAME
MFC after: 1 week
2002-10-23 10:45:09 +00:00
Hajimu UMEMOTO
71918af633
Put giant locks due to make getaddrinfo(), getnameinfo()
...
and getipnodeby*() thread-safe.
Our res_*() is not thread-safe. So, we share lock between
getaddrinfo() and getipnodeby*(). Still, we cannot use
getaddrinfo() and getipnodeby*() in conjunction with other
functions which call res_*().
Requested by: many people
2002-10-06 08:43:35 +00:00
Hajimu UMEMOTO
a52b6b83a2
Allocate 64K recieve buffer for DNS responses.
...
Though res_query.c also defines and refers MAXPACKET, it is not
related to ansbuf. So, I didn't touch res_query.c.
2002-10-03 17:25:33 +00:00
Mike Barcroft
89fdc4e117
Use the standardized CHAR_BIT constant instead of NBBY in userland.
2002-09-25 04:06:37 +00:00