opnsense-src/lib/libc/net
Mike Karels 1443613866 getaddrinfo: distinguish missing addrs from unresolvable names
Rework getaddrinfo(3) to return different error values for unresolvable
names (same as before, EAI_NONAME) and those without a requested addr
(EAI_ADDRFAMILY) when using DNS.  This is implemented via an added
error in the nsswitch layer, NS_ADDRFAMILY, which is used only by
getaddrinfo().  The error is passed through nsdispatch(3), but that
routine has no changes to handle this error.  The error originates in
the getaddrinfo DNS layer called via nsdispatch(), and is processed
by the search layer that calls nsdispatch().

While here, add a little style to returns near those that were
modified.

Reviewed in https://reviews.freebsd.org/D37139 with related changes.

Reviewed by:    bz
MFC after:      1 month
2022-11-02 11:03:31 -05:00
..
base64.c
byteorder.3
ether_addr.c
ethers.3
eui64.3
eui64.c
gai_strerror.3 gai_strerror.[c3]: re-enable EAI_ADDRFAMILY, EAI_NODATA 2022-11-02 11:03:31 -05:00
gai_strerror.c gai_strerror.[c3]: re-enable EAI_ADDRFAMILY, EAI_NODATA 2022-11-02 11:03:31 -05:00
getaddrinfo.3 getaddrinfo(3): A typo fixed 2022-09-14 05:08:45 +00:00
getaddrinfo.c getaddrinfo: distinguish missing addrs from unresolvable names 2022-11-02 11:03:31 -05:00
gethostbydns.c
gethostbyht.c
gethostbyname.3 Bump .Dd for recently modified manual pages 2022-06-27 18:20:03 +02:00
gethostbynis.c
gethostnamadr.c libc/net/gethostnamadr.c: mark write-only variables as __unused 2021-11-29 17:39:50 +02:00
getifaddrs.3
getifaddrs.c
getifmaddrs.3
getifmaddrs.c
getipnodebyname.3 Bump .Dd for recently modified manual pages 2022-06-27 18:20:03 +02:00
getnameinfo.3 Bump .Dd for recently modified manual pages 2022-06-27 18:20:03 +02:00
getnameinfo.c Retire synchronous PPP kernel driver sppp(4). 2021-10-22 11:41:36 -07:00
getnetbydns.c
getnetbyht.c
getnetbynis.c
getnetent.3 Bump .Dd for recently modified manual pages 2022-06-27 18:20:03 +02:00
getnetnamadr.c libc/net/getnetnamadr.c: Mark write-only variables as unused 2021-11-29 17:39:50 +02:00
getproto.c
getprotoent.3
getprotoent.c libc/net/getprotoent.c: Mark write-only variables as unused 2021-11-29 17:39:50 +02:00
getprotoname.c
getservent.3
getservent.c libc/net/getservent.c: Mark write-only variables as unused 2021-11-29 17:39:50 +02:00
hesiod.3 Bump .Dd for recently modified manual pages 2022-06-27 18:20:03 +02:00
hesiod.c
hosts /etc/hosts: Wording changes to better match RFC 1918 2022-03-05 16:00:59 -05:00
hosts.equiv
if_indextoname.3
if_indextoname.c if_indextoname(3): Correct the RFC in a comment 2022-04-03 13:50:15 +02:00
if_nameindex.c
if_nametoindex.c
inet.3 man pages: deprecate Internet Class A/B/C 2021-11-09 09:33:23 -06:00
inet6_opt_init.3 Correct section reference for examples in RFC3542 2021-08-01 13:55:24 +01:00
inet6_option_space.3
inet6_rth_space.3
inet6_rthdr_space.3
inet_net.3 man pages: deprecate Internet Class A/B/C 2021-11-09 09:33:23 -06:00
ip6opt.c
linkaddr.3
linkaddr.c
Makefile.inc getnetent(3): Add documentation for missing reentrant functions 2022-06-20 07:30:38 +02:00
map_v4v6.c
name6.c
netdb_private.h
networks
nscache.c
nscachedcli.c libc/net/nscachedcli.c: remove write-only variables 2021-11-29 17:39:50 +02:00
nsdispatch.3
nsdispatch.c libc: Fix build with -DNS_REREAD_CONF. 2021-12-29 17:01:05 -05:00
nslexer.l
nsparser.y
nss_backends.h
nss_compat.c
nsswitch.conf
ntoh.c
protocols
rcmd.3
rcmd.c
rcmdsh.3
rcmdsh.c
recv.c
res_config.h
resolver.3 Update SEE ALSO sections for resolver.{3,5} and hosts.5 2022-09-15 15:24:28 +02:00
rthdr.c
sctp_bindx.3
sctp_connectx.3
sctp_freepaddrs.3
sctp_getaddrlen.3
sctp_getassocid.3
sctp_getpaddrs.3
sctp_opt_info.3
sctp_recvmsg.3
sctp_send.3
sctp_sendmsg.3
sctp_sys_calls.c Revert "wpa: Import wpa_supplicant/hostapd commit 14ab4a816" 2021-12-02 14:45:04 -08:00
send.c
sockatmark.3 sockatmark(3): Add references to 4.4BSD IPC tutorials 2022-07-03 15:56:42 +02:00
sockatmark.c
sourcefilter.3
sourcefilter.c
Symbol.map
vars.c