freebsd-nq/lib/libc/net
Hiroki Sato 20d96999a4 Make getnameinfo(3) salen requirement less strict and
document details of salen in getnameinfo(3) manual page.

getnameinfo(3) returned EAI_FAIL when salen was not equal to
the length corresponding to the value specified by sa->sa_family.
However, POSIX or RFC 3493 does not require it and RFC 4038
Sec.6.2.3 shows an example passing sizeof(struct sockaddr_storage)
to salen.

This change makes the requirement less strict by accepting
salen up to sizeof(struct sockaddr_storage).  It also includes
two more changes: one is to fix return values because both SUSv4
and RFC 3493 require EAI_FAMILY when the address length is invalid,
another is to fix sa_len dependency in PF_LOCAL.

Pointed out by:	Christophe Beauval
Reviewed by:	ae
Differential Revision:	https://reviews.freebsd.org/D14585
2018-03-15 13:46:28 +00:00
..
base64.c libc: do not include <sys/types.h> where <sys/param.h> was already included 2016-04-18 21:05:15 +00:00
byteorder.3 Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
ether_addr.c spdx: initial adoption of licensing ID tags. 2017-11-18 14:26:50 +00:00
ethers.3
eui64.3
eui64.c libc: do not include <sys/types.h> where <sys/param.h> was already included 2016-04-18 21:05:15 +00:00
gai_strerror.3
gai_strerror.c General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
getaddrinfo.3 Silently handle freeaddrinfo(NULL) for compatibility with code which 2017-09-14 19:18:24 +00:00
getaddrinfo.c Don't ignore trailing spaces after numerical IP addresses. 2017-12-20 17:44:31 +00:00
gethostbydns.c General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
gethostbyht.c General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
gethostbyname.3 mdoc style: start new sentence on new line 2017-10-04 12:58:30 +00:00
gethostbynis.c libc: further adoption of SPDX licensing ID tags. 2017-11-25 17:12:48 +00:00
gethostnamadr.c libc: further adoption of SPDX licensing ID tags. 2017-11-25 17:12:48 +00:00
getifaddrs.3 Fix ifa_data description. 2014-11-25 15:09:34 +00:00
getifaddrs.c SPDX: mostly fixes to previous changes. 2017-12-13 16:13:17 +00:00
getifmaddrs.3
getifmaddrs.c libc: further adoption of SPDX licensing ID tags. 2017-11-25 17:12:48 +00:00
getipnodebyname.3 Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
getnameinfo.3 Make getnameinfo(3) salen requirement less strict and 2018-03-15 13:46:28 +00:00
getnameinfo.c Make getnameinfo(3) salen requirement less strict and 2018-03-15 13:46:28 +00:00
getnetbydns.c General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
getnetbyht.c General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
getnetbynis.c libc: further adoption of SPDX licensing ID tags. 2017-11-25 17:12:48 +00:00
getnetent.3 Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
getnetnamadr.c libc: further adoption of SPDX licensing ID tags. 2017-11-25 17:12:48 +00:00
getproto.c General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
getprotoent.3 Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
getprotoent.c General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
getprotoname.c General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
getservent.3 Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
getservent.c General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
hesiod.3
hesiod.c libc: do not include <sys/types.h> where <sys/param.h> was already included 2016-04-18 21:05:15 +00:00
if_indextoname.3
if_indextoname.c SPDX: mostly fixes to previous changes. 2017-12-13 16:13:17 +00:00
if_nameindex.c SPDX: mostly fixes to previous changes. 2017-12-13 16:13:17 +00:00
if_nametoindex.c SPDX: mostly fixes to previous changes. 2017-12-13 16:13:17 +00:00
inet6_opt_init.3
inet6_option_space.3
inet6_rth_space.3
inet6_rthdr_space.3
inet_net.3 Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
inet.3 Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
ip6opt.c General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
linkaddr.3 Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
linkaddr.c General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
Makefile.inc Implement (ACFLAGS|CFLAGS|CXXFLAGS).SRC globally. 2016-03-26 03:46:12 +00:00
map_v4v6.c General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
name6.c General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
netdb_private.h libc: further adoption of SPDX licensing ID tags. 2017-11-25 17:12:48 +00:00
nscache.c libc: further adoption of SPDX licensing ID tags. 2017-11-25 17:12:48 +00:00
nscachedcli.c libc: further adoption of SPDX licensing ID tags. 2017-11-25 17:12:48 +00:00
nsdispatch.3 Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
nsdispatch.c libc: further adoption of SPDX licensing ID tags. 2017-11-25 17:12:48 +00:00
nslexer.l libc: further adoption of SPDX licensing ID tags. 2017-11-25 17:12:48 +00:00
nsparser.y libc: further adoption of SPDX licensing ID tags. 2017-11-25 17:12:48 +00:00
nss_backends.h libc: further adoption of SPDX licensing ID tags. 2017-11-25 17:12:48 +00:00
nss_compat.c libc: further adoption of SPDX licensing ID tags. 2017-11-25 17:12:48 +00:00
ntoh.c libc: further adoption of SPDX licensing ID tags. 2017-11-25 17:12:48 +00:00
rcmd.3 Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
rcmd.c The source strings are from the password database which guarantees 2018-01-06 12:46:04 +00:00
rcmdsh.3 Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
rcmdsh.c General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
recv.c General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
res_config.h libc: spelling fixes. 2016-04-30 01:24:24 +00:00
resolver.3 Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
rthdr.c General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
sctp_bindx.3 Don't end up manpage titles with a full stop. 2017-05-24 21:02:53 +00:00
sctp_connectx.3
sctp_freepaddrs.3
sctp_getaddrlen.3
sctp_getassocid.3 Don't end up manpage titles with a full stop. 2017-05-24 21:02:53 +00:00
sctp_getpaddrs.3
sctp_opt_info.3
sctp_recvmsg.3 sendmsg(3) -> sendmsg(2) 2016-02-29 17:19:15 +00:00
sctp_send.3 sctp_send(3): start sentences on new lines 2017-05-23 07:10:20 +00:00
sctp_sendmsg.3 sendmsg(3) -> sendmsg(2) 2016-02-29 17:19:15 +00:00
sctp_sys_calls.c General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
send.c General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
sockatmark.3
sockatmark.c libc: further adoption of SPDX licensing ID tags. 2017-11-25 17:12:48 +00:00
sourcefilter.3
sourcefilter.c libc: further adoption of SPDX licensing ID tags. 2017-11-25 17:12:48 +00:00
Symbol.map Add an SCTP symbol which was missed in 2015-03-28 09:08:57 +00:00
vars.c General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00