summaryrefslogtreecommitdiff
path: root/lib/libc/net
Commit message (Collapse)AuthorAgeFilesLines
* Unbreak world.Ruslan Ermilov2004-02-071-2/+2
| | | | Notes: svn path=/head/; revision=125562
* getnetbyname fixes:Diomidis Spinellis2004-02-071-22/+67
| | | | | | | | | | Do not choke on malformed network addresses. Return n_name in static space, not on the function's stack. MFC after: 1 week Notes: svn path=/head/; revision=125555
* It was reported that when using nss_ldap, getgrent(3) would behaveJacques Vidrine2004-01-091-8/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | incorrectly when encountering `large' groups (many members and/or many long member names). The reporter tracked this down to the glibc NSS module compatibility code (nss_compat.c): it would prematurely record that a NSS module was finished iterating through its database in some cases. Two aspects are corrected: 1. nss_compat.c recorded that a NSS module was finished iterating whenever the module reported something other than SUCCESS. The correct logic is to continue iteration when the module reports either SUCCESS or RETURN. The __nss_compat_getgrent_r and __nss_compat_getpwent_r routines are updated to reflect this. 2. An internal helper macro __nss_compat_result is used to map glibc NSS status codes to BSD NSS status codes (e.g. NSS_STATUS_SUCCESS -> NS_SUCCESS). It provided the obvious mapping. When a NSS routine is called with a too-small buffer, the convention in the BSD NSS code is to report RETURN. (This is used to implement reentrant APIs such as getpwnam_r(3).) However, the convention in glibc for this case is to set errno = ERANGE and overload TRYAGAIN. __nss_compat_result is updated to handle this case. PR: bin/60287 Reported by: Lachlan O'Dea <odela01@ca.com> Notes: svn path=/head/; revision=124289
* Work around a `warning: zero-length printf format string'.Jacques Vidrine2004-01-061-1/+1
| | | | Notes: svn path=/head/; revision=124177
* Add support for timeout: and attempts: resolver options.Murray Stokely2003-12-071-0/+20
| | | | | | | | Submitted by: Paul Vixie <paul@vix.com> / ISC MFC After: 1 week Notes: svn path=/head/; revision=123236
* Add the userland part of the NET_RT_IFMALIST sysctl MIB. A new function,Bruce M Simpson2003-11-143-2/+322
| | | | | | | | | getifmaddrs(), is added to retrieve current multicast group memberships. Reviewed by: harti Notes: svn path=/head/; revision=122687
* u_int8_t cannot carry a number greater than 255.Hajimu UMEMOTO2003-11-141-3/+1
| | | | | | | Reported by: nectar Notes: svn path=/head/; revision=122682
* add destination address selection described in RFC3484.Hajimu UMEMOTO2003-10-301-7/+412
| | | | | | | | | | | | in KAME implementation, even when no policy is installed into kernel, getaddrinfo(3) sorts addresses. Since it causes POLA violation, I modified to don't sort addresses when no policy is installed into kernel, Obtained from: KAME Notes: svn path=/head/; revision=121747
* according to RFC3542 10.5, the 5th argment of inet6_opt_next()Hajimu UMEMOTO2003-10-251-1/+1
| | | | | | | | | is not size_t but socklen_t. Reported by: tinderbox Notes: svn path=/head/; revision=121496
* oops, revert previous change to getaddrinfo.c. This is not relatedHajimu UMEMOTO2003-10-241-275/+155
| | | | | | | | to RFC3493. The previous change was related to RFC3484 (Default Address Selection for IPv6), and it will come later. Notes: svn path=/head/; revision=121474
* Switch Advanced Sockets API for IPv6 from RFC2292 to RFC3542Hajimu UMEMOTO2003-10-246-366/+1400
| | | | | | | | | | | | | (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 Notes: svn path=/head/; revision=121472
* reorder functions to be in sync with KAME.Hajimu UMEMOTO2003-10-231-128/+132
| | | | Notes: svn path=/head/; revision=121426
* EAI_ADDRFAMILY and EAI_NODATA was deprecated in RFC3493Hajimu UMEMOTO2003-10-232-17/+4
| | | | | | | | | | | (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 Notes: svn path=/head/; revision=121425
* oops, gai_strerror must return default value when error codeHajimu UMEMOTO2003-10-221-0/+1
| | | | | | | isn't found in ai_errlist. Notes: svn path=/head/; revision=121348
* make ai_errlist struct. this is preparation for RFC3493Hajimu UMEMOTO2003-10-221-19/+32
| | | | | | | | | (EAI_NODATA is depricated). Obtained from: KAME Notes: svn path=/head/; revision=121347
* stop use of NI_WITHSCOPEID. it was deprecated.Hajimu UMEMOTO2003-10-211-8/+3
| | | | | | | Obtained from: KAME Notes: svn path=/head/; revision=121316
* From OpenBSD:Bill Fenner2003-09-151-1/+1
| | | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=120107
* Our getaddrinfo() and getnameinfo() are thread-safe butHajimu UMEMOTO2003-09-152-2/+10
| | | | | | | | | some limitation. Reported by: Marc G. Fournier <scrappy@hub.org> Notes: svn path=/head/; revision=120084
* mdoc(7): Properly mark C headers.Ruslan Ermilov2003-09-103-3/+3
| | | | Notes: svn path=/head/; revision=119964
* mdoc(7): Use the new feature of the .In macro.Ruslan Ermilov2003-09-087-18/+18
| | | | Notes: svn path=/head/; revision=119893
* An u_int8_t can never be bigger than 255, so remove a useless check.Maxime Henrion2003-07-251-2/+0
| | | | | | | Spotted by: GCC Notes: svn path=/head/; revision=118011
* Remove bogus non-reentrant "temporary" implementation of gethostbyaddr_r()Kris Kennaway2003-06-191-19/+0
| | | | | | | | | | that has been here for 6 years and 9 months. Reviewed by: deischen MFC After: 1 week Notes: svn path=/head/; revision=116574
* .Xr -> .Lb for librairy. There is no manual page corresponding to .Xr.Philippe Charnier2003-06-081-1/+1
| | | | Notes: svn path=/head/; revision=116022
* Assorted mdoc(7) fixes.Ruslan Ermilov2003-05-221-17/+20
| | | | | | | Approved by: re (blanket) Notes: svn path=/head/; revision=115225
* Fixed troff(1) and mdoc(7) warnings.Ruslan Ermilov2003-05-181-1/+2
| | | | | | | Approved by: re (blanket) Notes: svn path=/head/; revision=115143
* Replace use of a spinlock with a mutex.Daniel Eischen2003-05-042-12/+9
| | | | Notes: svn path=/head/; revision=114681
* Back out the `hiding' of strlcpy and strlcat. Several peopleJacques Vidrine2003-05-015-17/+11
| | | | | | | vocally objected to this safety belt. Notes: svn path=/head/; revision=114443
* `Hide' strlcpy and strlcat (using the namespace.h / __weak_referenceJacques Vidrine2003-04-295-11/+17
| | | | | | | | | | 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 Notes: svn path=/head/; revision=114256
* Don't complain about missing NSS methods when built statically. It isJacques Vidrine2003-04-241-1/+3
| | | | | | | | | annoying and not very useful. Sponsored by: DARPA, Network Associates Laboratories Notes: svn path=/head/; revision=113983
* Catch up with nsdispatch.c: nsdispatch(3) is now `hidden' byJacques Vidrine2003-04-242-4/+8
| | | | | | | | | namespace.h. Sponsored by: DARPA, Network Associates Laboratories Notes: svn path=/head/; revision=113977
* Catch up with nsdispatch.c: nsdispatch(3) is now `hidden' byJacques Vidrine2003-04-242-3/+3
| | | | | | | | | namespace.h. Sponsored by: DARPA, Network Associates Laboratories Notes: svn path=/head/; revision=113976
* = Implement name service switch modules (NSS modules). NSS modulesJacques Vidrine2003-04-177-204/+885
| | | | | | | | | | | | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=113595
* Remove NS and ISO stuff.Peter Wemm2003-03-056-717/+2
| | | | Notes: svn path=/head/; revision=111920
* Restore vendor ID.David E. O'Brien2003-03-031-2/+2
| | | | Notes: svn path=/head/; revision=111778
* Eliminate 19 warnings in libc (at level WARNS=2) of theJacques Vidrine2003-02-275-4/+9
| | | | | | | `implicit declaration of function' variety. Notes: svn path=/head/; revision=111618
* Whack 28 unused variables.Jacques Vidrine2003-02-185-9/+7
| | | | Notes: svn path=/head/; revision=111082
* Eliminate 61 warnings emitted at WARNS=2 (leaving 53 to go).Jacques Vidrine2003-02-163-4/+6
| | | | | | | | | | 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 Notes: svn path=/head/; revision=111010
* The .Fn functionPhilippe Charnier2003-02-062-10/+12
| | | | Notes: svn path=/head/; revision=110440
* Use in_addr_t for the right size of an IPv4 address, and copy intoBill Fenner2003-01-051-1/+3
| | | | | | | | | | an unaligned destination using bcopy instead of an assignment. Submitted by: Hartmut Brandt <brandt@fokus.gmd.de> PR: sparc64/46729 Notes: svn path=/head/; revision=108711
* Correct typos, mostly s/ a / an / where appropriate. Some whitespace cleanup,Jens Schweikhardt2003-01-012-2/+2
| | | | | | | especially in troff files. Notes: svn path=/head/; revision=108533
* english(4) police.Jens Schweikhardt2002-12-272-3/+3
| | | | Notes: svn path=/head/; revision=108317
* mdoc(7) police: "The .Fa argument.".Ruslan Ermilov2002-12-1910-16/+68
| | | | Notes: svn path=/head/; revision=108087
* mdoc(7) police: Fixed abuses of the .Ar and .Em macros.Ruslan Ermilov2002-12-184-52/+52
| | | | Notes: svn path=/head/; revision=108040
* mdoc(7) police: "The .Fn function".Ruslan Ermilov2002-12-1811-4/+74
| | | | Notes: svn path=/head/; revision=108037
* mdoc(7) police: markup overhaul.Ruslan Ermilov2002-12-141-10/+15
| | | | Notes: svn path=/head/; revision=107864
* Add an implementation of the POSIX.1 sockatmark(3).Bill Fenner2002-12-133-2/+152
| | | | Notes: svn path=/head/; revision=107836
* Fix the HISTORY to match reality. They were never MFC'ed to 4.X.Tom Rhodes2002-12-121-1/+1
| | | | | | | | Submitted by: R. Imura <imura@ryu16.org> Approved by: re (murray) Notes: svn path=/head/; revision=107796
* Consistently mark std(in|out|err) with .Dv, because that's how theyRuslan Ermilov2002-12-042-5/+8
| | | | | | | | | | are marked up in stdio(3), and because they are defined expressions of type "FILE *". Approved by: re Notes: svn path=/head/; revision=107619
* mdoc(7) police: formatting nits.Ruslan Ermilov2002-11-291-1/+1
| | | | | | | Approved by: re Notes: svn path=/head/; revision=107387
* try SIOCGIFINDEX 1st to be able to use network aliasing.Hajimu UMEMOTO2002-11-281-0/+13
| | | | | | | | Submitted by: jlemon Approved by: re Notes: svn path=/head/; revision=107378