OSDN Git Service

inet: adjust handling of cacnonname in getaddrinfo
authorEd W <lists@wildgooses.com>
Mon, 16 Apr 2012 22:27:55 +0000 (23:27 +0100)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Tue, 17 Apr 2012 09:06:27 +0000 (11:06 +0200)
commit97214b87d6317d75e9a7f6dd69148724c2675e4b
treec14028a261d1fedcf9020a9dded637a65fa7936d
parentf6f98ad8665811e0d30ee130fc65d965aee6be04
inet: adjust handling of cacnonname in getaddrinfo

Posix says that canonname should use the text representation of an IP address
when a numerical nodename given
See: http://pubs.opengroup.org/onlinepubs/9699919799/functions/getaddrinfo.html

Signed-off-by: Ed Wildgoose <lists@wildgooses.com>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
libc/inet/getaddrinfo.c