summaryrefslogtreecommitdiff
path: root/src/lib/libc/net (follow)
Commit message (Collapse)AuthorAgeFilesLines
* compare and shift buffer against a fixed length not strlen derived values.pyr2009-06-051-6/+6
| | | | ok otto@
* simplify the 'family' option parser and make it more evident what we'repyr2009-06-042-25/+18
| | | | | | now doing. ok deraadt@
* Add a resolv.conf option to specify the order in which getaddrinfopyr2009-06-042-8/+63
| | | | | | | | | | | PF_UNSPEC queries are made. While there change the default from inet6 first then inet4 to inet4 first then inet6, this prevents the many people with IPv4 only connectivity from constantly trying to contact IPv6 addresses, and also unbreaks many ports who don't use getaddrinfo right. ok deraadt@, plenty of cheering in the room wrt the idea, not loud enough complaining from the v6 crowd.
* - define EAI_OVERFLOW, as per IEEE Std 1003.1-2001(Interpretation #13)jasper2009-06-022-3/+7
| | | | hint from claudio@, ok millert@
* Document AI_NUMERICSERV; feedback and ok millert@jacekm2009-05-061-2/+9
|
* correct argument type for swap64(); from Thomas Pfaffjmc2009-03-171-3/+3
|
* The example for detecting malicious PTR records could be easily misinterpreted.jacekm2008-12-221-5/+4
| | | | Make it less ambiguous; ok gilles@ claudio@
* fix inet_ntop(3) prototype; ok millert@ libc to be bumbed very soonotto2008-12-092-7/+7
|
* Document that ethers_aton returns NULL for invalid addresses.weerd2008-12-071-2/+4
| | | | Suggested by and ok claudio@, ok jmc@
* Correctly jump over routing headers and calculate the size of the if_dataclaudio2008-11-241-7/+14
| | | | | | struct in the if_msghdr instead of using sizeof() blindly. This allows us to grow if_data without causing issues for the getifaddrs() users. OK deraadt@ (who needs this for some cool upcomming stuff)
* do not overflow for large prefix len (e.g. 2147483649)markus2008-09-011-3/+3
| | | | report Maksymilian Arciemowicz; ok djm, deraadt
* Add resolv.conf(5) option to force lookups by TCP: "options tcp"djm2008-08-151-18/+20
| | | | | | | | | | | | | | Also Extend "nameserver" declaration syntax to support port numbers. To avoid ambiguity these are only parsed when the address is enclosed in square brackets, e.g. "nameserver [127.0.0.1]:5353" Together these changes make forwarding DNS over a SSH tunnel very easy, but unfortunately some programs in ports/ implement their own resolvers (e.g. firefox). These will need to be modified to support these options separately. fixes jsing@ reyk@ ok deraadt@ millert@ krw@ + "I like it" from lots
* First pass at removing clauses 3 and 4 from NetBSD licenses.ray2008-06-261-9/+2
| | | | | | | | | Not sure what's more surprising: how long it took for NetBSD to catch up to the rest of the BSDs (including UCB), or the amount of code that NetBSD has claimed for itself without attributing to the actual authors. OK deraadt@
* garbage collect the portability bits for the removed select() support.brad2008-05-111-11/+1
| | | | ok djm@ deraadt@
* convert select() => poll(), saves a runtime malloc+free per retrydjm2008-04-181-23/+16
| | | | feedback deraadt@ drahn@; ok deraadt@
* permit _ in the middle of a DNS name componentderaadt2008-04-161-2/+3
|
* Improve the libc DNS resolver ID generation algorithm to be moredjm2008-04-131-43/+79
| | | | | | | resistant to prediction atacks by wrapping the existing LCG in a random permutation generator based on a Luby-Rackoff block cipher. lots of discussion and final ok deraadt@
* use RRSIG instead of SIG for DNSSEC. ok djm@jakob2007-10-113-6/+7
|
* Check snprintf(3) return value for error or truncation.moritz2007-09-171-1/+5
| | | | | | Mostly path construction, where truncation could be bad. ok and input from deraadt@ millert@ ray@
* use calloc() to avoid malloc(n * m) overflows; checked by djm canacar jsgderaadt2007-09-023-6/+6
|
* /*FALLTHRU*/ -> /* FALLTHROUGH */ray2007-08-051-2/+2
|
* ``dot'' notationjmc2007-06-121-19/+9
| | | | | | | is more readable than `.' notation zap some silly .Tn whilst here;
* remove ipx-related stuff. objections nobody. major bump by kurt in a fewhenning2007-06-054-385/+3
|
* convert to new .Dd format;jmc2007-05-3124-48/+48
|
* Typos.ray2007-05-201-3/+3
| | | | OK jmc@.
* Remove no-op code. From tbert.ray2007-05-181-3/+1
| | | | OK moritz@ and jaredy@
* Improve reentrancy by not using global variable. Removes tworay2007-05-171-31/+11
| | | | | | wrappers around fopen/fclose. From tbert. OK millert@, tedu@, and itojun@.
* Wrap some functions, labels, and variables in #ifdefs correspondingray2007-05-162-2/+8
| | | | | | | to #ifdefs where they are used. Found by lint by bret dot lambert at gmail. OK deraadt@.
* Use size_t for strlen results.ray2007-05-121-4/+6
| | | | OK moritz@.
* Clean up macros according to style. From tbert <bret dot lambert at gmail>.ray2007-05-121-27/+27
| | | | OK moritz@ and jaredy@.
* Use syslog_r instead of syslog in getaddrinfo. Slowly makingray2007-05-101-4/+9
| | | | | | getaddrinfo reentrant. OK millert@ and deraadt@.
* strlen(3) returns size_t, not int.ray2007-02-181-14/+16
| | | | | | Suggested by itojun@ in response to my getaddrinfo fixes. OK millert@.
* strlen(3) returns size_t.ray2007-02-181-4/+6
| | | | OK itojun@.
* Remove duplicate code. No functional change.ray2007-02-171-39/+22
| | | | OK itojun@, moritz@, and millert@.
* Remove two mutexes by replacing getservbyname() and getservbyport()ray2007-02-152-32/+29
| | | | | | calls with their reentrant versions. OK millert@.
* correct a mistake concerning ifa_data;jmc2007-02-141-6/+5
| | | | found by Srebrenko Sehic, corrected by millert and claudio;
* remove size_t and int mixup. same as getaddrinfo.c 1.30 -> 1.31.itojun2007-02-141-5/+2
|
* Remove int pretending to be a size_t.ray2007-02-141-5/+2
| | | | OK millert@.
* RFC4291 declares that IPv6 numeric representation must have no more thanitojun2006-12-301-3/+8
| | | | 4 hex digits between colons. deraadt ok
* tweak the text on deprecated functions, after some help from tom;jmc2006-12-092-12/+14
|
* various tweaks;jmc2006-12-091-18/+17
|
* various tweaks; my apologies to itojun for forgetting tojmc2006-12-091-26/+28
| | | | send him feedback for these
* switch IPv6 advanced API from RFC2292 to RFC3542 (2292 is superseded by 3542).itojun2006-12-097-5/+971
| | | | | | | | | | the kernel still handles RFC2292 set/getsockopts, so that compiled binary has no trouble running. userland sees RFC3542 symbols only on header file so new code has to use RFC3542 API. bump libc shlib minor for function additions. tested on i386/amd64 by jmc, i386 by brad. checked by deraadt.
* return is not a function. (cosmetic)itojun2006-12-081-28/+28
|
* change semantics of ff01::/16 to interface local multicastitojun2006-11-172-5/+6
| | | | | | (to sync up with more recent IPv6 spec) ok from: deraadt mcbride
* remove calls to abort(3) that can't happen anyway; fromotto2006-10-211-11/+1
| | | | <bret dot lambert at gmail.com>; ok millert@ deraadt@
* Remove unnecessary /* NOTREACHED */ comments because our lint isray2006-09-252-20/+8
| | | | | | cool and recognizes __dead, and because shorter examples are clearer. OK otto@.
* If fgetln() != NULL, len == 0 is impossible, so remove check.ray2006-09-231-3/+3
| | | | OK otto@ and jaredy@.
* Clarify strlcpy code by explicitly naming variable `len' andray2006-04-181-5/+6
| | | | | | | separating out each step. Inspired during miscommunication with tedu@. OK deraadt@
* Remove str2number(), use strtonum(3) instead.ray2006-04-141-44/+20
| | | | | | | | Fix some type mismatches. Replace magic numbers. Remove superfluous strlen(3) calls. Earlier diff OK kjell@, OK deraadt@