NetBSD Problem Report #59643
From www@netbsd.org Mon Sep 8 22:18:16 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)
client-signature RSA-PSS (2048 bits))
(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id 22FA41A923C
for <gnats-bugs@gnats.NetBSD.org>; Mon, 8 Sep 2025 22:18:16 +0000 (UTC)
Message-Id: <20250908221815.04ED51A923D@mollari.NetBSD.org>
Date: Mon, 8 Sep 2025 22:18:14 +0000 (UTC)
From: campbell+netbsd@mumble.net
Reply-To: campbell+netbsd@mumble.net
To: gnats-bugs@NetBSD.org
Subject: sockaddr_snprintf should have a generic way to show everything
X-Send-Pr-Version: www-1.0
>Number: 59643
>Category: lib
>Synopsis: sockaddr_snprintf should have a generic way to show everything
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: lib-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Sep 08 22:20:00 +0000 2025
>Last-Modified: Sun Sep 14 17:30:01 +0000 2025
>Originator: Taylor R Campbell
>Release: current, 11, 10, 9, ...
>Organization:
Socket Address Printers Ink.
>Environment:
>Description:
sockaddr_snprint should have a generic notation for all address types.
You should not have to conditionalize AF_INET/INET6/UNIX/&c.
>How-To-Repeat:
Write code like getaddrinfo(1) that prints an arbitrary sockaddr.
>Fix:
Yes, please!
>Audit-Trail:
From: "Christos Zoulas" <christos@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/59643 CVS commit: src/lib/libutil
Date: Sun, 14 Sep 2025 13:26:20 -0400
Module Name: src
Committed By: christos
Date: Sun Sep 14 17:26:20 UTC 2025
Modified Files:
src/lib/libutil: sockaddr_snprintf.3 sockaddr_snprintf.c
Log Message:
PR/59643: Taylor Campbell: Add a way to print addresses generically.
To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/lib/libutil/sockaddr_snprintf.3
cvs rdiff -u -r1.14 -r1.15 src/lib/libutil/sockaddr_snprintf.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
(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.