summaryrefslogtreecommitdiff
path: root/lib/libc/net
AgeCommit message (Collapse)Author
2019-08-30mop up resolver.3 rename; ok deraadtJason McIntyre
2019-08-30mop up for inet_net rename; ok deraadtJason McIntyre
2019-08-30Move 4 manual pages from not-a-function filenames to a correct filename,Theo de Raadt
and correct Xr. ok jmc
2019-07-03snprintf/vsnprintf return < 0 on error, rather than -1.Theo de Raadt
2019-06-28When system calls indicate an error they return -1, not some arbitraryTheo de Raadt
value < 0. errno is only updated in this case. Change all (most?) callers of syscalls to follow this better, and let's see if this strictness helps us in the future.
2019-06-20sockatmark(3), recv(2), getsockopt(2), and connect(2) return specificallyTheo de Raadt
-1 to mark failure, not arbitrary values < 0. I believe manual pages should follow the described contract precisely and accurately.
2019-05-13explicitly mention that RES_NOALIASES has no effect;Ingo Schwarze
jmc@ noticed that the text wasn't completely clear; OK jmc@
2019-02-13Xr the byteorder funcs; from tim kuijstenJason McIntyre
2019-01-25I am retiring my old email address; replace it with my OpenBSD one.Todd C. Miller
2019-01-14There are cases where a program doing dns requests wants to set theOtto Moerbeek
Checking Disabled flag. Introduce a RES flag to do so. ok krw@ deraadt@ eric@
2018-11-09Remove ethers(5) YP support bits from libc as it makes it difficult toBryan Steele
effectively use pledge(2) in some programs. approval from many, thanks! idea by & ok deraadt@
2018-05-10Fix typo in RFC number.Theo Buehler
ok benno
2018-04-28reference hosts(5) instead of networks(5)Ingo Schwarze
2018-04-28Remove references to the obsolete getnetent(3) and networks(5).Ingo Schwarze
2018-04-28Stop talking about /etc/networks, which is no longer used,Ingo Schwarze
and reference gethostby*(3) and /etc/hosts instead. Say that setnetent(3), getnetent(3), and endnetent(3) now do nothing. With feedback from guenther and significant help from deraadt@.
2018-04-28Say that sethostent(3), gethostent(3), and endhostent(3) do nothing.Ingo Schwarze
While here, stop implying plans to support additional address families in the future, and do not call gethostbyname2(3) "advanced". OK deraadt@ guenther@
2018-04-28To allow us to get rid of /etc/networks, make setnetent(3),Ingo Schwarze
getnetent(3), and endnetent(3) do nothing, just like sethostent(3), gethostent(3), and endhostent(3) years ago. OK deraadt@ guenther@
2018-01-12Adjust references for sysctl(3) to sysctl(2)Theo de Raadt
2017-11-28Add the missing STANDARDS section (kettenis@ noticed that these areIngo Schwarze
POSIX functions) and turn the weird DIAGNOSTICS section into a normal RETURN VALUES section while here.
2017-07-08update the little endian processor list to give it a chance of matchingTed Unangst
what the reader is using.
2017-05-03make the description strings match the codeTheo de Raadt
2017-04-27Remove "len < 0" check; len is socklen_t (uint32_t) so can't beTodd C. Miller
negative. Quiets a warning from clang. OK bluhm@
2017-03-06size is unsigned so using ==0 not <=0 when checking for buffer exhaustionTodd C. Miller
2017-03-06Pull in a change from the bind 8 resolver that fixes a potentialTodd C. Miller
crash when given a large hex number as part of the dotted quad. OK deraadt@ jsg@
2017-02-27Add support for RES_USE_DNSSECJeremie Courreges-Anglas
RES_USE_DNSSEC is implemented by setting the DNSSEC DO bit in outgoing queries. The resolver is then supposed to set the AD bit in the reply if it managed to validate the answer through DNSSEC. Useful when the application doesn't implement validation internally. This scheme assumes that the validating resolver is trusted and that the communication channel between the validating resolver and and the client is secure. ok eric@ gilles@
2017-02-18Add EDNS0 support.Jeremie Courreges-Anglas
EDNS allows for various DNS extensions, among which UDP DNS packets size bigger than 512 bytes. The default is still to not advertize anything. ok eric@
2017-01-24in resolver(3), document that _EDNS0 and _DNSSEC are no ops;Jason McIntyre
diff from kirill miazine while here, bump all the no op texts to one standard blurb; help/ok jca
2016-12-16Eliminate some gcc warnings about 'unused variables', mostly byKenneth R Westerback
adding appropriate #ifdef's around declarations. ok millert@ (with a tweak I will commit separately)
2016-12-15Nuke some trailing tabs.Kenneth R Westerback
2016-12-08Fix regressions introduce in the fix for CVE-2016-6559.Todd C. Miller
From FreeBSD (glebius)
2016-12-07Fix a typo, decrement rem, don't increment for single digit hex bytes.Todd C. Miller
From Henri Kemppainen
2016-12-06CVE-2016-6559: fix potential buffer overflow(s) in link_ntoa(3).Todd C. Miller
A specially crafted struct sockaddr_dl argument can trigger a stack overflow of a static buffer in libc. An attacker may be able to use this to write to arbitrary locations in the data segment. From FreeBSD (glebius); OK deraadt@ mestre@
2016-09-21Delete casts to off_t and size_t that are implied by assignmentsPhilip Guenther
or prototypes. Ditto for some of the char* and void* casts too. verified no change to instructions on ILP32 (i386) and LP64 (amd64) ok natano@ abluhm@ deraadt@ millert@
2016-08-05Obvious minor fixes:Ingo Schwarze
* Add missing .Dv, .Ev, and .Fa macros. * Delete deprecated .Tn macros. * Mark up global variable names with .Va, not with .Fa or .Li. * Mark up config file commands with .Ic, not with .Fa. * Fix HISTORY, trivial to verify from the CSRG archive CD.
2016-08-05Make RES_OPTIONS point directly to resolv.conf(5) instead of going throughMartijn van Duren
resolver(3). OK jmc@
2016-05-29Prefer AF_* over PF_* and 'address family' over 'protocol family'Philip Guenther
ok jung@
2016-05-28rcmd(3) and rcmdsh(3) use getaddrinfo(3) not gethostbyname(3).Todd C. Miller
2016-05-28Use getaddrinfo() instead of the non-standard gethostbyname2().Todd C. Miller
OK deraadt@ jca@ jung@ florian@
2016-05-23Remove iruserok(_sa)? and __ivaliduser(sa)?Philip Guenther
ok millert@ deraadt@
2016-05-23Eliminate __check_rhosts_file and __rcmd_errstr: they were only used byPhilip Guenther
rlogind and rshd (remember them?) ok deraadt@
2016-05-01Remove old NeXT-specific cruft. From mmcc@Todd C. Miller
2016-04-05Prefer _MUTEX_*LOCK over _THREAD_PRIVATE_MUTEX_*LOCK() when thread-specificPhilip Guenther
data isn't necessary. ok mpi@, ok&tweak natano@
2016-03-30for some time now mandoc has not required MLINKS to functionJason McIntyre
correctly - logically complete that now by removing MLINKS from base; authors need only to ensure there is an entry in NAME for any function/ util being added. MLINKS will still work, and remain for perl to ease upgrades; ok nicm (curses) bcook (ssl) ok schwarze, who provided a lot of feedback and assistance ok tb natano jung
2016-03-10un-vax;Jason McIntyre
2015-12-28Remove NULL-checks before free() and a few related dead assignments.mmcc
ok and valuable input from millert@
2015-12-19gethostbyname2() and gethostbyaddr() need <sys/socket.h>; discussed withTim van der Molen
millert@
2015-12-16tweak previous;Jason McIntyre
2015-12-16Remove support for HOSTALIASES from the resolver. This "open and parseTheo de Raadt
any file indicated by an environment variable" feature inside the resolver is incompatible with what pledge "dns" is trying to be. It is a misguided "feature" added way back in history which almost noone uses, but everyone has to assume the risk from. ok eric florian kettenis
2015-12-14s/begining/beginning/gmmcc
2015-11-25syslog() here is pointless; ok millertTheo de Raadt