git: libc/getaddrinfo: Accept numeric servname for AF_INET/AF_INET6

Antonio Huete Jimenez tuxillo at
Sat Nov 16 07:59:33 PST 2019

commit ef10c7d6dc720b0eb7fe3681816e71b5160793c3
Author: Antonio Huete Jimenez <tuxillo at>
Date:   Sat Nov 16 01:57:36 2019 +0100

    libc/getaddrinfo: Accept numeric servname for AF_INET/AF_INET6
      According to RFC3493:
        If servname is null, the call shall return network-level addresses
        for the specified nodename.  If servname is not null, it is a null-
        terminated character string identifying the requested service.  This
        can be either a descriptive name or a numeric representation suitable
        for use with the address family or families.  If the specified
        address family is AF_INET, AF_INET6 or AF_UNSPEC, the service can be
        specified as a string specifying a decimal port number.
      Taken from: FreeBSD r190382

Summary of changes:
 lib/libc/net/getaddrinfo.c | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

DragonFly BSD source repository

More information about the Commits mailing list