tech-net archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

getaddrinfo enhancement

On Fri, Jan 23, 2009 at 12:48:57AM +0000, Thor Lancelot Simon wrote:
> Module Name:  src
> Committed By: tls
> Date:         Fri Jan 23 00:48:57 UTC 2009
> Modified Files:
>       src/lib/libc/net: getaddrinfo.c
> Log Message:
> 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.


That's great, thanks!

Let's hope somebody will match your efforts, adding AF_APPLETALK,
AF_ISO, and AF_LINK address parsing to getaddrinfo().


David Young             OJC Technologies      Urbana, IL * (217) 278-3933

Home | Main Index | Thread Index | Old Index