summaryrefslogtreecommitdiffstats
path: root/lib/libc/net
Commit message (Collapse)AuthorAgeFilesLines
* Assorted mdoc(7) fixes.ru2003-05-221-17/+20
| | | | Approved by: re (blanket)
* Fixed troff(1) and mdoc(7) warnings.ru2003-05-181-1/+2
| | | | Approved by: re (blanket)
* Replace use of a spinlock with a mutex.deischen2003-05-042-12/+9
|
* Back out the `hiding' of strlcpy and strlcat. Several peoplenectar2003-05-015-17/+11
| | | | vocally objected to this safety belt.
* `Hide' strlcpy and strlcat (using the namespace.h / __weak_referencenectar2003-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
* Don't complain about missing NSS methods when built statically. It isnectar2003-04-241-1/+3
| | | | | | annoying and not very useful. Sponsored by: DARPA, Network Associates Laboratories
* Catch up with nsdispatch.c: nsdispatch(3) is now `hidden' bynectar2003-04-242-4/+8
| | | | | | namespace.h. Sponsored by: DARPA, Network Associates Laboratories
* Catch up with nsdispatch.c: nsdispatch(3) is now `hidden' bynectar2003-04-242-3/+3
| | | | | | namespace.h. Sponsored by: DARPA, Network Associates Laboratories
* = Implement name service switch modules (NSS modules). NSS modulesnectar2003-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
* Remove NS and ISO stuff.peter2003-03-056-717/+2
|
* Restore vendor ID.obrien2003-03-031-2/+2
|
* Eliminate 19 warnings in libc (at level WARNS=2) of thenectar2003-02-275-4/+9
| | | | `implicit declaration of function' variety.
* Whack 28 unused variables.nectar2003-02-185-9/+7
|
* Eliminate 61 warnings emitted at WARNS=2 (leaving 53 to go).nectar2003-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
* The .Fn functioncharnier2003-02-062-10/+12
|
* Use in_addr_t for the right size of an IPv4 address, and copy intofenner2003-01-051-1/+3
| | | | | | | an unaligned destination using bcopy instead of an assignment. Submitted by: Hartmut Brandt <brandt@fokus.gmd.de> PR: sparc64/46729
* Correct typos, mostly s/ a / an / where appropriate. Some whitespace cleanup,schweikh2003-01-012-2/+2
| | | | especially in troff files.
* english(4) police.schweikh2002-12-272-3/+3
|
* mdoc(7) police: "The .Fa argument.".ru2002-12-1910-16/+68
|
* mdoc(7) police: Fixed abuses of the .Ar and .Em macros.ru2002-12-184-52/+52
|
* mdoc(7) police: "The .Fn function".ru2002-12-1811-4/+74
|
* mdoc(7) police: markup overhaul.ru2002-12-141-10/+15
|
* Add an implementation of the POSIX.1 sockatmark(3).fenner2002-12-133-2/+152
|
* Fix the HISTORY to match reality. They were never MFC'ed to 4.X.trhodes2002-12-121-1/+1
| | | | | Submitted by: R. Imura <imura@ryu16.org> Approved by: re (murray)
* Consistently mark std(in|out|err) with .Dv, because that's how theyru2002-12-042-5/+8
| | | | | | | are marked up in stdio(3), and because they are defined expressions of type "FILE *". Approved by: re
* mdoc(7) police: formatting nits.ru2002-11-291-1/+1
| | | | Approved by: re
* try SIOCGIFINDEX 1st to be able to use network aliasing.ume2002-11-281-0/+13
| | | | | Submitted by: jlemon Approved by: re
* libc_r wasn't so tied to libc for 22 months.ru2002-11-181-5/+3
|
* query ip6.arpa then ip6.int for IPv6 reverse lookup. follows RFC3152.ume2002-10-261-1/+7
| | | | MFC after: 5 days
* - scopeid is u_int32_tume2002-10-251-14/+21
| | | | | | | - strtoul pedant. pointed out by deraadt Obtained from: KAME MFC after: 1 week
* - kill strcpyume2002-10-251-67/+56
| | | | | | | | | | | | | | - 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
* query ip6.arpa then ip6.int for IPv6 reverse lookup. follows RFC3152.ume2002-10-231-51/+77
| | | | | Obtained from: KAME MFC after: 1 week
* Put giant locks due to make getaddrinfo(), getnameinfo()ume2002-10-062-1/+41
| | | | | | | | | | 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
* Allocate 64K recieve buffer for DNS responses.ume2002-10-032-26/+50
| | | | | Though res_query.c also defines and refers MAXPACKET, it is not related to ansbuf. So, I didn't touch res_query.c.
* Use the standardized CHAR_BIT constant instead of NBBY in userland.mike2002-09-251-2/+3
|
* Add forgotten newlines in debug messages.nectar2002-09-191-2/+2
|
* Allocate 64K recieve buffer for DNS responses.ume2002-09-161-27/+48
|
* Allocate 64K recieve buffer for DNS responses.ume2002-09-151-20/+45
| | | | | | | | KAME did the modification only to _dns_getaddrinfo(). However, it is not sufficient, and res_queryN() should be modified, too. So, I did same modification to res_queryN(). Obtained from: KAME
* Check for truncation in calls to res_send/res_query/res_search.nectar2002-09-156-12/+42
| | | | Fail when it is detected.
* Backout the increase of MAXPACKET from 1024 to 65536: itnectar2002-09-156-7/+26
| | | | | | broke pthreads. Reported by: mbr, tjr
* Limit UDP payload size for EDNS0 to 0xffff, not use lower 16bit value.ume2002-09-141-0/+2
| | | | Obtained from: KAME
* When using res_send/res_query/res_search, the caller must eithernectar2002-09-136-26/+7
| | | | | | | | | insure enough space is available for the response, or be prepared to resize the buffer and retry as necessary. Do the conservative thing and make sure enough space is available. Reviewed by: silence on freebsd-audit
* Style: One space between "restrict" qualifier and "*".tjr2002-09-063-5/+5
|
* Replace various spelling with FALLTHROUGH which is lint()ablecharnier2002-08-252-2/+2
|
* Fix a bug in __ivaliduser_sa() which caused some rsh/rlogin attemptsjdp2002-08-241-5/+5
| | | | | | | | | | | | | | | | | | | | | | to fail needlessly if a reverse DNS lookup of the IP address didn't come up with a hostname. As a comment in the code clearly stated, the "damn hostname" was looked up only for the purpose of netgroup matching. But if that lookup failed, the function bailed out immediately even though in many cases netgroup matching would not be used. This change marks the hostname as unknown but continues. Where netgroup matching is performed, an unknown hostname is handled conservatively. I.e., for "+@netgroup" (accept) entries an unknown hostname never matches, and for "-@netgroup" (reject) entries an unknown hostname always matches. In the lines affected (only), I also fixed a few bogus casts. There are others, and in fact this entire file would be a good candidate for a cleanup sweep. Reviewed by: imp (wearing his flourescent yellow Security Team cap) MFC after: 2 days
* Fixed getaddrinfo to honor sortlist in /etc/resolv.confpirzyk2002-08-211-0/+82
| | | | | | | PR: bin/27939 Reviewed by: ru, sheldonh (about a year ago) Obtained from: ume (via KAME, I think) MFC after: 1 month
* - Fix a bug that wrote one char behind the end of therobert2002-08-151-6/+3
| | | | | | | | | | | | | | supplied buffer in case the size of it was equal to the number of characters the converted address consumed. The bug occurred when converting an AF_INET address. - Remove the SPRINTF macro and use sprintf instead. - Do not do string formatting using sprintf(3) and a temporary buffer which is copied when the supplied buffer provides enough space. Instead, use snprintf(3) and the real destination buffer, thus avoid the copy. Reported by: Stefan Farfeleder <e0026813@stud3.tuwien.ac.at> (1) PR: misc/41289
* Put each function argument on its own line to keep lines shorterrobert2002-08-151-1/+6
| | | | than 80 columns.
* -Add the restrict required by IEEE Std 1003.1-2001 in formrobert2002-08-143-25/+9
| | | | | | | of our __restrict macro to the prototypes and function definitions of inet_pton and inet_ntop. - Use ANSI-C function argument lists. - Adjust the prototypes in the manual page.
* mdoc(7) police: laundry.ru2002-08-091-22/+37
|
OpenPOWER on IntegriCloud