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

Antonio Huete Jimenez tuxillo at crater.dragonflybsd.org
Fri Nov 22 17:06:45 PST 2019


commit 7fb1d94c23abb710bc7eeb91f11312c41f4ad336
Author: Antonio Huete Jimenez <tuxillo at quantumachine.net>
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(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/7fb1d94c23abb710bc7eeb91f11312c41f4ad336


-- 
DragonFly BSD source repository



More information about the Commits mailing list