summaryrefslogtreecommitdiff
path: root/lib/libc/net
AgeCommit message (Collapse)Author
2009-06-02- define EAI_OVERFLOW, as per IEEE Std 1003.1-2001(Interpretation #13)Jasper Lievisse Adriaanse
hint from claudio@, ok millert@
2009-05-06Document AI_NUMERICSERV; feedback and ok millert@Jacek Masiulaniec
2009-03-17correct argument type for swap64(); from Thomas PfaffJason McIntyre
2008-12-22The example for detecting malicious PTR records could be easily misinterpreted.Jacek Masiulaniec
Make it less ambiguous; ok gilles@ claudio@
2008-12-09fix inet_ntop(3) prototype; ok millert@ libc to be bumbed very soonOtto Moerbeek
2008-12-07Document that ethers_aton returns NULL for invalid addresses.Paul de Weerd
Suggested by and ok claudio@, ok jmc@
2008-11-24Correctly jump over routing headers and calculate the size of the if_dataClaudio Jeker
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)
2008-09-01do not overflow for large prefix len (e.g. 2147483649)Markus Friedl
report Maksymilian Arciemowicz; ok djm, deraadt
2008-08-15Add resolv.conf(5) option to force lookups by TCP: "options tcp"Damien Miller
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
2008-06-26First pass at removing clauses 3 and 4 from NetBSD licenses.Ray Lai
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@
2008-05-11garbage collect the portability bits for the removed select() support.Brad Smith
ok djm@ deraadt@
2008-04-18convert select() => poll(), saves a runtime malloc+free per retryDamien Miller
feedback deraadt@ drahn@; ok deraadt@
2008-04-16permit _ in the middle of a DNS name componentTheo de Raadt
2008-04-13Improve the libc DNS resolver ID generation algorithm to be moreDamien Miller
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@
2007-10-11use RRSIG instead of SIG for DNSSEC. ok djm@Jakob Schlyter
2007-09-17Check snprintf(3) return value for error or truncation.Moritz Jodeit
Mostly path construction, where truncation could be bad. ok and input from deraadt@ millert@ ray@
2007-09-02use calloc() to avoid malloc(n * m) overflows; checked by djm canacar jsgTheo de Raadt
2007-08-05/*FALLTHRU*/ -> /* FALLTHROUGH */Ray Lai
2007-06-12``dot'' notationJason McIntyre
is more readable than `.' notation zap some silly .Tn whilst here;
2007-06-05remove ipx-related stuff. objections nobody. major bump by kurt in a fewHenning Brauer
2007-05-31convert to new .Dd format;Jason McIntyre
2007-05-20Typos.Ray Lai
OK jmc@.
2007-05-18Remove no-op code. From tbert.Ray Lai
OK moritz@ and jaredy@
2007-05-17Improve reentrancy by not using global variable. Removes twoRay Lai
wrappers around fopen/fclose. From tbert. OK millert@, tedu@, and itojun@.
2007-05-16Wrap some functions, labels, and variables in #ifdefs correspondingRay Lai
to #ifdefs where they are used. Found by lint by bret dot lambert at gmail. OK deraadt@.
2007-05-12Use size_t for strlen results.Ray Lai
OK moritz@.
2007-05-12Clean up macros according to style. From tbert <bret dot lambert at gmail>.Ray Lai
OK moritz@ and jaredy@.
2007-05-10Use syslog_r instead of syslog in getaddrinfo. Slowly makingRay Lai
getaddrinfo reentrant. OK millert@ and deraadt@.
2007-02-18strlen(3) returns size_t, not int.Ray Lai
Suggested by itojun@ in response to my getaddrinfo fixes. OK millert@.
2007-02-18strlen(3) returns size_t.Ray Lai
OK itojun@.
2007-02-17Remove duplicate code. No functional change.Ray Lai
OK itojun@, moritz@, and millert@.
2007-02-15Remove two mutexes by replacing getservbyname() and getservbyport()Ray Lai
calls with their reentrant versions. OK millert@.
2007-02-14correct a mistake concerning ifa_data;Jason McIntyre
found by Srebrenko Sehic, corrected by millert and claudio;
2007-02-14remove size_t and int mixup. same as getaddrinfo.c 1.30 -> 1.31.Jun-ichiro itojun Hagino
2007-02-14Remove int pretending to be a size_t.Ray Lai
OK millert@.
2006-12-30RFC4291 declares that IPv6 numeric representation must have no more thanJun-ichiro itojun Hagino
4 hex digits between colons. deraadt ok
2006-12-09tweak the text on deprecated functions, after some help from tom;Jason McIntyre
2006-12-09various tweaks;Jason McIntyre
2006-12-09various tweaks; my apologies to itojun for forgetting toJason McIntyre
send him feedback for these
2006-12-09switch IPv6 advanced API from RFC2292 to RFC3542 (2292 is superseded by 3542).Jun-ichiro itojun Hagino
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.
2006-12-08return is not a function. (cosmetic)Jun-ichiro itojun Hagino
2006-11-17change semantics of ff01::/16 to interface local multicastJun-ichiro itojun Hagino
(to sync up with more recent IPv6 spec) ok from: deraadt mcbride
2006-10-21remove calls to abort(3) that can't happen anyway; fromOtto Moerbeek
<bret dot lambert at gmail.com>; ok millert@ deraadt@
2006-09-25Remove unnecessary /* NOTREACHED */ comments because our lint isRay Lai
cool and recognizes __dead, and because shorter examples are clearer. OK otto@.
2006-09-23If fgetln() != NULL, len == 0 is impossible, so remove check.Ray Lai
OK otto@ and jaredy@.
2006-04-18Clarify strlcpy code by explicitly naming variable `len' andRay Lai
separating out each step. Inspired during miscommunication with tedu@. OK deraadt@
2006-04-14Remove str2number(), use strtonum(3) instead.Ray Lai
Fix some type mismatches. Replace magic numbers. Remove superfluous strlen(3) calls. Earlier diff OK kjell@, OK deraadt@
2006-03-31(char)to{upper,lower}()Theo de Raadt
2006-03-31oldmask = sigprocmask(SIG_BLOCK, &mask, &oldmask);Theo de Raadt
is not valid code; found by lint
2006-03-22Pass size of correct variable to memset().Ray Lai
From Alexey Dobriyan. OK otto@