NetBSD Problem Report #60329

From www@netbsd.org  Sat Jun 13 16:00:27 2026
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 "R13" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 46D251A923C
	for <gnats-bugs@gnats.NetBSD.org>; Sat, 13 Jun 2026 16:00:27 +0000 (UTC)
Message-Id: <20260613160026.643541A923D@mollari.NetBSD.org>
Date: Sat, 13 Jun 2026 16:00:26 +0000 (UTC)
From: andrew.cagney@gmail.com
Reply-To: andrew.cagney@gmail.com
To: gnats-bugs@NetBSD.org
Subject: setkey -D's output is limited to 80 columns
X-Send-Pr-Version: www-1.0
X-From4GNATS: "andrew.cagney@gmail.com via gnats" <gnats-admin@NetBSD.org>

>Number:         60329
>Category:       bin
>Synopsis:       setkey -D's output is limited to 80 columns
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Jun 13 16:05:00 +0000 2026
>Originator:     cagney
>Release:        mainline
>Organization:
libreswan
>Environment:
# uname -a
NetBSD netbsd 10.1 NetBSD 10.1 (GENERIC) #0: Mon Dec 16 13:08:11 UTC 2024  mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/amd64/compile/GENERIC amd64

>Description:
... which is so '80's :-)

specifically:
```
void
ipsec_hexdump(caddr_t buf, int len)
{
	int i;

	for (i = 0; i < len; i++) {
		if (i != 0 && i % 32 == 0) printf("\n");
		if (i % 4 == 0) printf(" ");
		printf("%02x", (unsigned char)buf[i]);
	}
#if 0
	if (i % 32 != 0) printf("\n");
#endif

	return;
}
```

A way to turn this off would be nice.
>How-To-Repeat:
Feed a large key to pfkeyv2
>Fix:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.