Up to [cvs.NetBSD.org] / src / lib / libc / net
Request diff between arbitrary revisions
Default branch: MAIN
Current tag: netbsd-5-1-4-RELEASE
Revision 1.91.6.1 / (download) - annotate - [select for diffs], Mon Jan 26 00:27:34 2009 UTC (15 years, 2 months ago) by snj
Branch: netbsd-5
CVS Tags: netbsd-5-2-RELEASE,
netbsd-5-2-RC1,
netbsd-5-2-3-RELEASE,
netbsd-5-2-2-RELEASE,
netbsd-5-2-1-RELEASE,
netbsd-5-2,
netbsd-5-1-RELEASE,
netbsd-5-1-RC4,
netbsd-5-1-RC3,
netbsd-5-1-RC2,
netbsd-5-1-RC1,
netbsd-5-1-5-RELEASE,
netbsd-5-1-4-RELEASE,
netbsd-5-1-3-RELEASE,
netbsd-5-1-2-RELEASE,
netbsd-5-1-1-RELEASE,
netbsd-5-1,
netbsd-5-0-RELEASE,
netbsd-5-0-RC4,
netbsd-5-0-RC3,
netbsd-5-0-RC2,
netbsd-5-0-RC1,
netbsd-5-0-2-RELEASE,
netbsd-5-0-1-RELEASE,
netbsd-5-0,
matt-nb5-pq3-base,
matt-nb5-pq3,
matt-nb5-mips64-u2-k2-k4-k7-k8-k9,
matt-nb5-mips64-u1-k1-k5,
matt-nb5-mips64-premerge-20101231,
matt-nb5-mips64-premerge-20091211,
matt-nb5-mips64-k15,
matt-nb5-mips64,
matt-nb4-mips64-k7-u2a-k9b
Changes since 1.91: +8 -3
lines
Diff to previous 1.91 (colored)
Pull up following revision(s) (requested by tls in ticket #306): lib/libc/net/getaddrinfo.c: revision 1.92 Cause getaddrinfo() without socktype specification to work correctly for numeric addresses. The documentation appears to say this works, and some other systems support it -- more importantly, why should it _not_ work? If it does not, getaddrinfo() cannot be used as a general-purpose textual to binary address conversion utility function; yet it is the only such function we have in the system, since inet_pton() requires a priori knowledge of the address family. This change also causes getaddrinfo() with NULL hint (expressly documented as working) to work properly for numeric addresses.