Email List: Xaustin-review-lX
[All Lists]

Defect in XSH getnameinfo

To: yyyyyyyyyyyyyyy@xxxxxxxxxxxxx
Subject: Defect in XSH getnameinfo
From: yyyyyyyyyyyyy@xxxxxx
Date: Fri, 10 Feb 2006 13:15:31 GMT
Resent-date: Fri, 10 Feb 2006 14:20:01 +0000
Resent-from: Andrew Josey <yyyyyy@xxxxxxxxxxxxxxxxx>
Resent-message-id: <1060210142001.ZM16593@xxxxxx>
Resent-to: yyyyyyyyyyyyyyy@xxxxxxxxxxxxx
        Defect report from : Nandini Rao , HP

(Please direct followup comments direct to yyyyyyyyyyyyyy@xxxxxxxxxxxxx)

@ page 0 line 0 section getnameinfo comment {X/Open 25}

Problem:

Edition of Specification (Year): 2004

Defect code :  3. Clarification required

http://www.opengroup.org/onlinepubs/009695399/functions/getnameinfo.html#tag_03_232

This is a query with respect to the following snippets about the all zeroes 
ipv6 address '::' in the getnameinfo specifications:
One:
----------------------snip-------------------
Note:
    The IPv6 unspecified address ( "::" ) and the IPv6 loopback address ( "::1" 
) are not IPv4-compatible addresses. If the address is the IPv6 unspecified 
address ( "::" ), a lookup is not performed, and the [EAI_NONAME] error is 
returned. 
----------------------snip-------------------
Two:

----------------------snip-------------------
If the flag bit NI_NUMERICHOST is set, the numeric form of the address 
contained in the socket address structure pointed to by the sa argument shall 
be returned instead of its name, under all circumstances.
----------------------snip-------------------

Now these two together need some clarification as to how an implementation 
should handle the '::' address. Is it supposed to be rejected right at the 
start or only if the NI_NUMERICHOST flag is not set?

Action:

Clarification on the above as to how an implementation should handle '::'

<Prev in Thread] Current Thread [Next in Thread>