NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

bin/59047: getnameinfo(1): missing AF_LINK, AF_APPLETALK, AF_LOCAL



>Number:         59047
>Category:       bin
>Synopsis:       getnameinfo(1): missing AF_LINK, AF_APPLETALK, AF_LOCAL
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Feb 05 13:25:00 +0000 2025
>Originator:     Taylor R Campbell
>Release:        
>Organization:
The GotNameInfoundation
>Environment:
>Description:
getnameinfo(3) supports these address families; it would be nice if this were reflected in the getnameinfo(1) utility.

Also might be nice if getnameinfo(1) supported the same `-f <family>' option as getaddrinfo(1) (and it might be reasonable for getaddrinfo(1) to support the common -4/-6 abbreviations for this).  Except getnameinfo(1) now uses `-f' for NI_NOFQDN.  Maybe that should be `-F' instead?

And it would be nice if getnameinfo(1) and getaddrinfo(1) agreed on how to spell the service/port number.  Currently this is not very symmetric:

$ getaddrinfo -f inet6 -p udp -s comsat localhost
dgram inet6 udp ::1 512
$ getnameinfo -u -p 512 ::1
localhost comsat
>How-To-Repeat:
mess around with getnameinfo(1) and see how much of getnameinfo(3) it can exercise
>Fix:
Yes, please!



Home | Main Index | Thread Index | Old Index