NetBSD Problem Report #59047

From www@netbsd.org  Wed Feb  5 13:22:24 2025
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256
	 client-signature RSA-PSS (2048 bits) client-digest SHA256)
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id AD7B81A923A
	for <gnats-bugs@gnats.NetBSD.org>; Wed,  5 Feb 2025 13:22:24 +0000 (UTC)
Message-Id: <20250205132223.6AD6A1A923B@mollari.NetBSD.org>
Date: Wed,  5 Feb 2025 13:22:23 +0000 (UTC)
From: campbell+netbsd@mumble.net
Reply-To: campbell+netbsd@mumble.net
To: gnats-bugs@NetBSD.org
Subject: getnameinfo(1): missing AF_LINK, AF_APPLETALK, AF_LOCAL
X-Send-Pr-Version: www-1.0

>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
>Last-Modified:  Thu Feb 06 21:00:02 +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!

>Audit-Trail:
From: "Christos Zoulas" <christos@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/59047 CVS commit: src/usr.bin/getnameinfo
Date: Thu, 6 Feb 2025 15:59:00 -0500

 Module Name:	src
 Committed By:	christos
 Date:		Thu Feb  6 20:59:00 UTC 2025

 Modified Files:
 	src/usr.bin/getnameinfo: Makefile getnameinfo.1 getnameinfo.c

 Log Message:
 PR/59047: Taylor R Campbell: Add AF_LINK, AF_APPLETALK, AF_LOCAL


 To generate a diff of this commit:
 cvs rdiff -u -r1.1 -r1.2 src/usr.bin/getnameinfo/Makefile
 cvs rdiff -u -r1.4 -r1.5 src/usr.bin/getnameinfo/getnameinfo.1
 cvs rdiff -u -r1.7 -r1.8 src/usr.bin/getnameinfo/getnameinfo.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.47 2022/09/11 19:34:41 kim Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2025 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.