musl/src/network
Rich Felker cabe9aa974 reject invalid address families in getaddrinfo
subsequent code assumes the address family requested is either
unspecified or one of IPv4/IPv6, and could malfunction if this
constraint is not met, so other address families should be explicitly
rejected.
2013-11-27 00:54:03 -05:00
..
__dns.c de-duplicate dn_expand, fix return value and signature, clean up 2013-08-14 17:58:20 -04:00
__dns.h initial check-in, version 0.5.0 2011-02-12 00:22:29 -05:00
__ipparse.c fix __ipparse to parse the generic numbers-and-dots IPv4 format correctly 2013-10-22 12:28:17 +00:00
accept.c use restrict everywhere it's required by c99 and/or posix 2008 2012-09-06 22:44:55 -04:00
accept4.c move accept4, dup3, and pipe2 to non-linux-specific locations 2012-09-29 17:40:42 -04:00
bind.c cleanup socketcall syscall interface to ease porting to sane(r) archs 2011-02-15 04:40:40 -05:00
connect.c overhaul pthread cancellation 2011-04-17 11:43:03 -04:00
dn_comp.c Fix dn_comp prototype and add stub 2013-11-24 09:39:30 -05:00
dn_expand.c Fix dn_expand pointer following 2013-11-23 16:23:09 -05:00
dn_skipname.c implement dn_skipname (legacy resolver function) 2013-04-04 22:36:30 -04:00
ent.c initial check-in, version 0.5.0 2011-02-12 00:22:29 -05:00
ether.c add stubs for additional legacy ether.h functions 2013-07-01 13:50:02 -04:00
freeaddrinfo.c initial check-in, version 0.5.0 2011-02-12 00:22:29 -05:00
gai_strerror.c fix wrong messages in gai_strerror 2011-08-01 00:31:15 -04:00
getaddrinfo.c reject invalid address families in getaddrinfo 2013-11-27 00:54:03 -05:00
gethostbyaddr.c dynamically allocate storage for gethostby* buffers 2013-02-02 02:07:38 -05:00
gethostbyaddr_r.c fix error returns in gethostby*_r functions 2013-02-02 01:31:10 -05:00
gethostbyname.c initial check-in, version 0.5.0 2011-02-12 00:22:29 -05:00
gethostbyname2.c dynamically allocate storage for gethostby* buffers 2013-02-02 02:07:38 -05:00
gethostbyname2_r.c fix memory leak due to double call to getaddrinfo in gethostbyname* 2013-02-02 01:32:12 -05:00
gethostbyname_r.c initial check-in, version 0.5.0 2011-02-12 00:22:29 -05:00
getifaddrs.c fix fd leak (missing close-on-exec) in getifaddrs 2013-11-20 20:34:33 -05:00
getnameinfo.c use restrict everywhere it's required by c99 and/or posix 2008 2012-09-06 22:44:55 -04:00
getpeername.c use restrict everywhere it's required by c99 and/or posix 2008 2012-09-06 22:44:55 -04:00
getservbyname.c initial check-in, version 0.5.0 2011-02-12 00:22:29 -05:00
getservbyname_r.c make getservby*_r return error code rather than -1 (and using errno) 2012-07-22 18:49:49 -04:00
getservbyport.c initial check-in, version 0.5.0 2011-02-12 00:22:29 -05:00
getservbyport_r.c make getservby*_r return error code rather than -1 (and using errno) 2012-07-22 18:49:49 -04:00
getsockname.c use restrict everywhere it's required by c99 and/or posix 2008 2012-09-06 22:44:55 -04:00
getsockopt.c use restrict everywhere it's required by c99 and/or posix 2008 2012-09-06 22:44:55 -04:00
h_errno.c fix misplaced semicolon in preprocessor directive (#undef h_errno) 2012-05-16 20:14:30 -04:00
hstrerror.c initial check-in, version 0.5.0 2011-02-12 00:22:29 -05:00
htonl.c optimize ntohl etc. in terms of bswap functions 2011-04-12 13:13:27 -04:00
htons.c optimize ntohl etc. in terms of bswap functions 2011-04-12 13:13:27 -04:00
if_freenameindex.c implement if_nameindex and if_freenameindex 2011-08-03 12:13:13 -04:00
if_indextoname.c fix missing SOCK_CLOEXEC in various functions that use sockets internally 2013-07-09 00:40:17 -04:00
if_nameindex.c fix missing SOCK_CLOEXEC in various functions that use sockets internally 2013-07-09 00:40:17 -04:00
if_nametoindex.c fix missing SOCK_CLOEXEC in various functions that use sockets internally 2013-07-09 00:40:17 -04:00
in6addr_any.c initial check-in, version 0.5.0 2011-02-12 00:22:29 -05:00
in6addr_loopback.c initial check-in, version 0.5.0 2011-02-12 00:22:29 -05:00
inet_addr.c fix regression in inet_aton due to misinterpretation of __ipparse return 2013-11-02 04:07:12 -04:00
inet_legacy.c fix regression in inet_aton due to misinterpretation of __ipparse return 2013-11-02 04:07:12 -04:00
inet_ntoa.c split inet_addr and inet_ntoa back into their own files 2013-10-21 22:05:29 -04:00
inet_ntop.c fix undefined strcpy call in inet_ntop 2013-07-25 03:30:24 -04:00
inet_pton.c fix inet_pton 2013-10-23 01:49:14 +00:00
listen.c cleanup socketcall syscall interface to ease porting to sane(r) archs 2011-02-15 04:40:40 -05:00
netname.c "implement" getnetbyaddr and getnetbyname 2011-07-12 02:52:06 -04:00
ntohl.c optimize ntohl etc. in terms of bswap functions 2011-04-12 13:13:27 -04:00
ntohs.c optimize ntohl etc. in terms of bswap functions 2011-04-12 13:13:27 -04:00
proto.c initial check-in, version 0.5.0 2011-02-12 00:22:29 -05:00
recv.c cleanup socketcall syscall interface to ease porting to sane(r) archs 2011-02-15 04:40:40 -05:00
recvfrom.c use restrict everywhere it's required by c99 and/or posix 2008 2012-09-06 22:44:55 -04:00
recvmsg.c overhaul pthread cancellation 2011-04-17 11:43:03 -04:00
res_init.c initial check-in, version 0.5.0 2011-02-12 00:22:29 -05:00
res_query.c use __h_errno_location for h_errno 2012-05-12 23:45:07 -04:00
res_state.c add _res (__res_state()) dummy 2011-04-06 15:47:26 -04:00
send.c cleanup socketcall syscall interface to ease porting to sane(r) archs 2011-02-15 04:40:40 -05:00
sendmsg.c workaround another sendmsg kernel bug on 64-bit machines 2012-07-12 21:37:54 -04:00
sendto.c overhaul pthread cancellation 2011-04-17 11:43:03 -04:00
serv.c initial check-in, version 0.5.0 2011-02-12 00:22:29 -05:00
setsockopt.c cleanup socketcall syscall interface to ease porting to sane(r) archs 2011-02-15 04:40:40 -05:00
shutdown.c cleanup socketcall syscall interface to ease porting to sane(r) archs 2011-02-15 04:40:40 -05:00
sockatmark.c cleanup socketcall syscall interface to ease porting to sane(r) archs 2011-02-15 04:40:40 -05:00
socket.c improve SOCK_NONBLOCK/SOCK_CLOEXEC fallback code 2012-11-05 14:30:15 -05:00
socketpair.c cleanup socketcall syscall interface to ease porting to sane(r) archs 2011-02-15 04:40:40 -05:00