summaryrefslogtreecommitdiff
path: root/lib/libc/net
AgeCommit message (Collapse)Author
2015-08-30Use nanosleep instead of sleep to avoid the extra layer and simplify laterPhilip Guenther
symbol hiding ok w/tweak deraadt@
2015-06-04force reseeding if pid has changed.Eric Faurot
ok deraadt@
2015-05-14rev 1.3 introduced a check to an if statement without adding braces.Jonathan Gray
Claudio points out the size is checked by an earlier test so just remove it to restore the original handling of the partial octet case. Discussed with claudio and gilles.
2015-03-23Make rcmdsh(3) not fail if it is passed a non resolvable hostname.Alexander Hall
Instead, silently ignore the fact and instead let the underlying ssh (or $RSH) command handle it. ok millert@
2015-03-22differentiate between a failed read, returning -1, and encounteringAlexander Hall
end-of-file, returning 0, in order not to print an unrelated strerror(errno) in the latter case ok millert@
2015-03-22unmute rcmd hostname lookup failureAlexander Hall
ok millert@ jung@
2015-03-19zap #if 0'd code that's been dead since '96Alexander Hall
ok todd@
2015-02-16Amend documentation for AI_ADDRCONFIGJeremie Courreges-Anglas
ok jmc@
2015-01-29Use .Rv where appropriate, and move it to RETURN VALUES;Ingo Schwarze
remove .Tn, and a few minor macro adjustments. Patch from Kaspars at Bankovskis dot net.
2015-01-16Use ">", not ">=" when comparing length to HOST_NAME_MAX sinceTodd C. Miller
otherwise we end up needlessly replacing a NUL with a NUL. OK deraadt@
2015-01-16Replace HOST_NAME_MAX+1-1 with HOST_NAME_MAX. OK deraad@Todd C. Miller
2015-01-16Replace check for ">= HOST_NAME_MAX+1" with "> HOST_NAME_MAX".Todd C. Miller
OK deraadt@
2015-01-16Move to the <limits.h> universe.Theo de Raadt
review by millert, binary checking process with doug, concept with guenther
2014-11-05edns0 is not currently supported: confirmed by sthen and ericJason McIntyre
diff From: Mike Burns (though my fix differs a bit)
2014-10-11Userland reallocarray() audit.Doug Hogan
Avoid potential integer overflow in the size argument of malloc() and realloc() by using reallocarray() to avoid unchecked multiplication. ok deraadt@
2014-10-11Userland reallocarray() audit.Doug Hogan
Avoid potential integer overflow in the size argument of malloc() and realloc() by using reallocarray() to avoid unchecked multiplication. ok deraadt@
2014-10-10replace select with equiv poll usage.David Gwynne
looks good deraadt@ tweaks and ok millert@
2014-09-15When fopen()ing internal to libc (the API doesn't support the usePhilip Guenther
of the resulting FILE *), then pass fopen() the 'e' mode letter to mark it close-on-exec. ok miod@
2014-09-04POSIX specifies arpa/inet.h as the include file for these.Todd C. Miller
OK aja@ mikeb@
2014-08-31Make the in6addr constant declarations and definitions consistentAlexander Bluhm
in kernel and user land. OK florian@ mpi@
2014-08-31Add sockatmark()Philip Guenther
ok millert@ manpage feedback jmc@
2014-08-23unbind;Jason McIntyre
2014-07-21Switch from <sys/endian.h> or <machine/endian.h> to the new,Philip Guenther
being-standardized <endian.h> ok deraadt@ millert@ beck@
2014-07-20From ISO/IEC 9899:1999 and 9899:201x,Philip Guenther
6.11.5 - Storage-class specifiers: The placement of a storage-class specifier other than at the beginning of the declaration specifiers in a declaration is an obsolescent feature. Diff from Jean-Philippe Ouellet (jean-philippe (at) ouellet.biz)
2014-07-13tweak previous;Jason McIntyre
2014-07-13missing bracket in previous;Jason McIntyre
2014-07-13Update BUGS section.Miod Vallat
2014-07-13Split out ntoh[ls] and hton[ls] into their own manpage.Philip Guenther
Update byteorder(3) to cover the new functions in <endian.h> ok deraadt@ millert@
2014-06-13Remove deprecated RFC2292 ancillary data convenience functions.Christopher Zimmermann
They are obsoleted by the RFC3542 api. ok mpi@
2014-06-11Really remove the obsolete manpages left by earlier commitChristopher Zimmermann
which just emptied the file but didn't remove it.
2014-06-11Remove manpages about deprecated RFC2292 ancillary data convenience functions.Christopher Zimmermann
They are obsoleted by the RFC3542 api. ok mpi@
2014-05-17correctly match size and buffer. from enh at googleTed Unangst
2014-05-09Add a bit more detail about dot notation from the old inet(3) manpage.Philip Guenther
ok jmc@
2014-04-28Implement AI_ADDRCONFIGsperreault
This is a getaddrinfo() flag that is defined thusly in RFC 3493: If the AI_ADDRCONFIG flag is specified, IPv4 addresses shall be returned only if an IPv4 address is configured on the local system, and IPv6 addresses shall be returned only if an IPv6 address is configured on the local system. The loopback address is not considered for this case as valid as a configured address. For example, when using the DNS, a query for AAAA records should occur only if the node has at least one IPv6 address configured (other than IPv6 loopback) and a query for A records should occur only if the node has at least one IPv4 address configured (other than the IPv4 loopback). The flag is set by default when hints is NULL. ok Eric Faurot, Jason McIntyre
2014-04-24uses ssh these days, not rsh; ok teduJason McIntyre
2014-04-19change some rsh references to ssh. poke by jmcTed Unangst
2014-04-19zap trailing whitespace;Jason McIntyre
2014-04-19kill a stray \Theo de Raadt
2014-04-19Split inet(3) into three pages by decade: 1980s -> inet_lnaof(3),Philip Guenther
1990s -> inet_addr(3), 2000s and beyond -> inet_ntop(3). ok tedu@ (who also noted the timeline) deraadt@ jmc@
2014-04-18remove references to rshd;Jason McIntyre
2014-04-07Add some missing names to the NAME sections.Ingo Schwarze
For inet(3), go the other way, remove some bogus symlinks. Found while testing the new makewhatis(8). ok jmc@
2014-03-18Sync with the way struct ether_addr is actually defined inLawrence Teo
netinet/if_ether.h
2014-02-17replace spaces with tabs for indentationStefan Sperling
2014-02-07Fix inet6_opt_init() to only check extlen when extbuff is not NULLMartin Pieuchot
as per RFC 3542, from DragonFlyBSD via Eitan Adler. ok bluhm@
2014-02-05Always set errno when returning NULL. OK kettenis@ henning@Todd C. Miller
2014-01-21obvious .Pa fixes; found with mandocdb(8)Ingo Schwarze
2013-12-31don't try writing past the end unless we have toTed Unangst
ok gilles millert
2013-12-17inet_nsap_ntoa() and inet_nsap_addr() go away. Unused APIs from darkerTheo de Raadt
days.
2013-11-25unsigned char changes for ctypeTheo de Raadt
re-re-reviewed by krw
2013-11-25use an unsigned char instead, to avoid lots of castsTheo de Raadt