summaryrefslogtreecommitdiff
path: root/src/lib/libc/net (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* 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@
* (char)to{upper,lower}()deraadt2006-03-311-4/+4
|
* oldmask = sigprocmask(SIG_BLOCK, &mask, &oldmask);deraadt2006-03-311-1/+1
| | | | is not valid code; found by lint
* Pass size of correct variable to memset().ray2006-03-221-2/+2
| | | | | | From Alexey Dobriyan. OK otto@
* Include limits.h directly instead of depending on another headermillert2006-01-172-2/+4
| | | | to include it for us.
* Include <sys/param.h> instead of <sys/types.h> so we get MAXHOSTNAMELENmillert2006-01-171-2/+2
|
* Currently sys/socket.h needs sys/types.h so add #include <sys/types.h> toclaudio2005-12-303-3/+6
| | | | | the list of necessary includes. Now the manpages match reality. OK mpf@ millert@
* handle chroot and res_init calls better. diagnosis assistance from otto.tedu2005-12-221-21/+18
| | | | ok deraadt otto.
* Do not clobber errno when calling close(2) in example code.otto2005-11-151-2/+6
| | | | From form@ via mpech@
* save errno in example code. from mpech@ ok jmc@otto2005-11-131-1/+3
|
* add $OpenBSD$ tags, as requested by dtucker.espie2005-11-101-0/+1
|