Subject: CVS commit: src/lib/libc/net
To: None <>
From: Jun-ichiro itojun Hagino <>
List: source-changes
Date: 03/18/2003 01:10:27
Module Name:	src
Committed By:	itojun
Date:		Mon Mar 17 23:10:26 UTC 2003

Modified Files:
	src/lib/libc/net: getaddrinfo.c

Log Message:
From: "Jason L. Wright" <>

The man page for getaddrinfo() and RFC2553 says it should return EAI_NONAME
for the case where hostname != NULL, hostname is not a numeric string and
ai_flags has the AI_NUMERICHOST bit set.  Instead, it returns EAI_NODATA
for this case.  The diff below makes it return EAI_NONAME for this case.

This is why ntpq and ntpdc from ntp-4.1.74 can't resolve hostnames,
but work fine with numeric strings like ::1 or

To generate a diff of this commit:
cvs rdiff -r1.63 -r1.64 src/lib/libc/net/getaddrinfo.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.