This is the mail archive of the
glibc-bugs@sources.redhat.com
mailing list for the glibc project.
[Bug libc/296] New: POSIX => AI_NUMERICHOST and address notation validity in getaddrinfo()
- From: "a dot guru at sympatico dot ca" <sourceware-bugzilla at sources dot redhat dot com>
- To: glibc-bugs at sources dot redhat dot com
- Date: 1 Aug 2004 22:20:36 -0000
- Subject: [Bug libc/296] New: POSIX => AI_NUMERICHOST and address notation validity in getaddrinfo()
- Reply-to: sourceware-bugzilla at sources dot redhat dot com
This is for [glibc-2.3.3-200407231111],
files sysdeps/posix/getaddrinfo.c
and resolv/netdb.h.
This refers to IEEE 1003.1, 2004 Edition, "Information technology --
Portable Operating System Interface (POSIX) --
Part 2: System Interfaces", getaddrinfo().
First:
] If the AI_NUMERICHOST flag is specified, then a non-null nodename
] string supplied shall be a numeric host address string. Otherwise,
] an [EAI_NONAME] error is returned. This flag shall prevent any
] type of name resolution service (for example, the DNS) from being
] invoked.
Then:
] If the specified address family is AF_INET or AF_UNSPEC, address
] strings using Internet standard dot notation as specified in
] inet_addr() are valid.
and
] If the specified address family is AF_INET6 or AF_UNSPEC,
] standard IPv6 text forms described in inet_ntop() are valid.
This means that both inet_addr() and inet_ntop() are valid if the
specified address family is AF_UNSPEC.
Not conforming to this can negatively impact backward
compatibility in applications that have been upgraded
from using inet_addr() to using getaddrinfo().
See <http://www.opengroup.org/onlinepubs/009695399/functions/getaddrinfo.html>
and <http://www.opengroup.org/onlinepubs/009695399/basedefs/netdb.h.html>.
A proposed patch follows. I wrote it and I am putting it in the public
domain.
--
Summary: POSIX => AI_NUMERICHOST and address notation validity in
getaddrinfo()
Product: glibc
Version: 2.3.3
Status: NEW
Severity: enhancement
Priority: P2
Component: libc
AssignedTo: gotom at debian dot or dot jp
ReportedBy: a dot guru at sympatico dot ca
CC: glibc-bugs at sources dot redhat dot com
GCC build triplet: n/a
GCC host triplet: n/a
GCC target triplet: n/a
http://sources.redhat.com/bugzilla/show_bug.cgi?id=296
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.