Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | mop up resolver.3 rename; ok deraadt | jmc | 2019-08-30 | 5 | -15/+15 |
| | |||||
* | mop up for inet_net rename; ok deraadt | jmc | 2019-08-30 | 3 | -9/+9 |
| | |||||
* | Move 4 manual pages from not-a-function filenames to a correct filename, | deraadt | 2019-08-30 | 6 | -16/+16 |
| | | | | | and correct Xr. ok jmc | ||||
* | snprintf/vsnprintf return < 0 on error, rather than -1. | deraadt | 2019-07-03 | 1 | -2/+2 |
| | |||||
* | When system calls indicate an error they return -1, not some arbitrary | deraadt | 2019-06-28 | 3 | -10/+10 |
| | | | | | | 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. | ||||
* | sockatmark(3), recv(2), getsockopt(2), and connect(2) return specifically | deraadt | 2019-06-20 | 1 | -4/+4 |
| | | | | | -1 to mark failure, not arbitrary values < 0. I believe manual pages should follow the described contract precisely and accurately. | ||||
* | explicitly mention that RES_NOALIASES has no effect; | schwarze | 2019-05-13 | 1 | -3/+4 |
| | | | | | jmc@ noticed that the text wasn't completely clear; OK jmc@ | ||||
* | Xr the byteorder funcs; from tim kuijsten | jmc | 2019-02-13 | 1 | -3/+4 |
| | |||||
* | I am retiring my old email address; replace it with my OpenBSD one. | millert | 2019-01-25 | 1 | -3/+3 |
| | |||||
* | There are cases where a program doing dns requests wants to set the | otto | 2019-01-14 | 1 | -2/+4 |
| | | | | | Checking Disabled flag. Introduce a RES flag to do so. ok krw@ deraadt@ eric@ | ||||
* | Remove ethers(5) YP support bits from libc as it makes it difficult to | brynet | 2018-11-09 | 2 | -70/+8 |
| | | | | | | | | effectively use pledge(2) in some programs. approval from many, thanks! idea by & ok deraadt@ | ||||
* | Fix typo in RFC number. | tb | 2018-05-10 | 1 | -2/+2 |
| | | | | ok benno | ||||
* | reference hosts(5) instead of networks(5) | schwarze | 2018-04-28 | 1 | -3/+3 |
| | |||||
* | Remove references to the obsolete getnetent(3) and networks(5). | schwarze | 2018-04-28 | 2 | -10/+7 |
| | |||||
* | Stop talking about /etc/networks, which is no longer used, | schwarze | 2018-04-28 | 1 | -39/+38 |
| | | | | | | 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@. | ||||
* | Say that sethostent(3), gethostent(3), and endhostent(3) do nothing. | schwarze | 2018-04-28 | 1 | -50/+19 |
| | | | | | | While here, stop implying plans to support additional address families in the future, and do not call gethostbyname2(3) "advanced". OK deraadt@ guenther@ | ||||
* | To allow us to get rid of /etc/networks, make setnetent(3), | schwarze | 2018-04-28 | 1 | -75/+4 |
| | | | | | | getnetent(3), and endnetent(3) do nothing, just like sethostent(3), gethostent(3), and endhostent(3) years ago. OK deraadt@ guenther@ | ||||
* | Adjust references for sysctl(3) to sysctl(2) | deraadt | 2018-01-12 | 1 | -4/+4 |
| | |||||
* | Add the missing STANDARDS section (kettenis@ noticed that these are | schwarze | 2017-11-28 | 1 | -6/+14 |
| | | | | | POSIX functions) and turn the weird DIAGNOSTICS section into a normal RETURN VALUES section while here. | ||||
* | update the little endian processor list to give it a chance of matching | tedu | 2017-07-08 | 2 | -6/+6 |
| | | | | what the reader is using. | ||||
* | make the description strings match the code | deraadt | 2017-05-03 | 1 | -10/+10 |
| | |||||
* | Remove "len < 0" check; len is socklen_t (uint32_t) so can't be | millert | 2017-04-27 | 1 | -2/+2 |
| | | | | negative. Quiets a warning from clang. OK bluhm@ | ||||
* | size is unsigned so using ==0 not <=0 when checking for buffer exhaustion | millert | 2017-03-06 | 1 | -4/+4 |
| | |||||
* | Pull in a change from the bind 8 resolver that fixes a potential | millert | 2017-03-06 | 1 | -10/+16 |
| | | | | | crash when given a large hex number as part of the dotted quad. OK deraadt@ jsg@ | ||||
* | Add support for RES_USE_DNSSEC | jca | 2017-02-27 | 1 | -5/+2 |
| | | | | | | | | | | | | 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@ | ||||
* | Add EDNS0 support. | jca | 2017-02-18 | 1 | -4/+3 |
| | | | | | | | 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@ | ||||
* | in resolver(3), document that _EDNS0 and _DNSSEC are no ops; | jmc | 2017-01-24 | 1 | -6/+17 |
| | | | | | | | diff from kirill miazine while here, bump all the no op texts to one standard blurb; help/ok jca | ||||
* | Eliminate some gcc warnings about 'unused variables', mostly by | krw | 2016-12-16 | 1 | -2/+2 |
| | | | | | | adding appropriate #ifdef's around declarations. ok millert@ (with a tweak I will commit separately) | ||||
* | Nuke some trailing tabs. | krw | 2016-12-15 | 1 | -3/+3 |
| | |||||
* | Fix regressions introduce in the fix for CVE-2016-6559. | millert | 2016-12-08 | 1 | -6/+5 |
| | | | | From FreeBSD (glebius) | ||||
* | Fix a typo, decrement rem, don't increment for single digit hex bytes. | millert | 2016-12-07 | 1 | -2/+2 |
| | | | | From Henri Kemppainen | ||||
* | CVE-2016-6559: fix potential buffer overflow(s) in link_ntoa(3). | millert | 2016-12-06 | 1 | -19/+35 |
| | | | | | | | 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@ | ||||
* | Delete casts to off_t and size_t that are implied by assignments | guenther | 2016-09-21 | 4 | -11/+10 |
| | | | | | | | 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@ | ||||
* | Obvious minor fixes: | schwarze | 2016-08-05 | 2 | -36/+57 |
| | | | | | | | | * 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. | ||||
* | Make RES_OPTIONS point directly to resolv.conf(5) instead of going through | martijn | 2016-08-05 | 1 | -3/+3 |
| | | | | | | resolver(3). OK jmc@ | ||||
* | Prefer AF_* over PF_* and 'address family' over 'protocol family' | guenther | 2016-05-29 | 1 | -9/+9 |
| | | | | ok jung@ | ||||
* | rcmd(3) and rcmdsh(3) use getaddrinfo(3) not gethostbyname(3). | millert | 2016-05-28 | 2 | -9/+9 |
| | |||||
* | Use getaddrinfo() instead of the non-standard gethostbyname2(). | millert | 2016-05-28 | 1 | -5/+14 |
| | | | | OK deraadt@ jca@ jung@ florian@ | ||||
* | Remove iruserok(_sa)? and __ivaliduser(sa)? | guenther | 2016-05-23 | 2 | -90/+20 |
| | | | | ok millert@ deraadt@ | ||||
* | Eliminate __check_rhosts_file and __rcmd_errstr: they were only used by | guenther | 2016-05-23 | 1 | -5/+1 |
| | | | | | | rlogind and rshd (remember them?) ok deraadt@ | ||||
* | Remove old NeXT-specific cruft. From mmcc@ | millert | 2016-05-01 | 1 | -13/+1 |
| | |||||
* | Prefer _MUTEX_*LOCK over _THREAD_PRIVATE_MUTEX_*LOCK() when thread-specific | guenther | 2016-04-05 | 1 | -4/+4 |
| | | | | | | data isn't necessary. ok mpi@, ok&tweak natano@ | ||||
* | for some time now mandoc has not required MLINKS to function | jmc | 2016-03-30 | 1 | -54/+1 |
| | | | | | | | | | | | | 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 | ||||
* | un-vax; | jmc | 2016-03-10 | 1 | -3/+3 |
| | |||||
* | Remove NULL-checks before free() and a few related dead assignments. | mmcc | 2015-12-28 | 1 | -3/+2 |
| | | | | ok and valuable input from millert@ | ||||
* | gethostbyname2() and gethostbyaddr() need <sys/socket.h>; discussed with | tim | 2015-12-19 | 1 | -6/+8 |
| | | | | millert@ | ||||
* | tweak previous; | jmc | 2015-12-16 | 2 | -4/+5 |
| | |||||
* | Remove support for HOSTALIASES from the resolver. This "open and parse | deraadt | 2015-12-16 | 2 | -15/+6 |
| | | | | | | | | 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 | ||||
* | s/begining/beginning/g | mmcc | 2015-12-14 | 1 | -2/+2 |
| | |||||
* | syslog() here is pointless; ok millert | deraadt | 2015-11-25 | 1 | -2/+0 |
| |