NetBSD Problem Report #60861
From www@netbsd.org Thu Oct 8 07:45:28 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) server-digest SHA256
client-signature RSA-PSS (2048 bits) client-digest SHA256)
(Client CN "mail.netbsd.org", Issuer "YR1" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id A96F21A923C
for <gnats-bugs@gnats.NetBSD.org>; Thu, 8 Oct 2026 07:45:27 +0000 (UTC)
Message-Id: <20261008074526.647E91A923E@mollari.NetBSD.org>
Date: Thu, 8 Oct 2026 07:45:26 +0000 (UTC)
From: joe@ns1.eloisystems.com
Reply-To: joe@ns1.eloisystems.com
To: gnats-bugs@NetBSD.org
Subject: Make NPF routing syntax more robust and easily to work with old userland
X-Send-Pr-Version: www-1.0
X-From4GNATS: "joe@ns1.eloisystems.com via gnats" <gnats-admin@NetBSD.org>
>Number: 60861
>Category: kern
>Synopsis: Make NPF routing syntax more robust and easily to work with old userland
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: kern-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Oct 08 07:50:00 +0000 2026
>Last-Modified: Thu Oct 08 09:30:01 +0000 2026
>Originator: Emmanuel Nyarko
>Release: NetBSD current
>Organization:
NetBSD
>Environment:
amd64 x86_64
>Description:
In our live NPF tests with routing on NetBSD current, we realized using old userland with updated kernel sends a missing nvlist parameter to the kernel. (because we changed the nvlist identifier from "route-interface" to "interface".
only functional when users updated both userland and kernel.
also, we can easily avoid passing "interface" parameter in configuration.
>How-To-Repeat:
run kernel with via and via6 and dup-to not present on top of userland without via and via6 parameters userland
>Fix:
Yes
>Audit-Trail:
From: "Emmanuel" <joe@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/60861 CVS commit: src
Date: Thu, 8 Oct 2026 09:28:41 +0000
Module Name: src
Committed By: joe
Date: Thu Oct 8 09:28:41 UTC 2026
Modified Files:
src/lib/npf/ext_route: npfext_route.c
src/sys/net/npf: npf_ext_route.c
Log Message:
PR kern/60861
don't change nvlist name for the route interface,
let old userland still be able to access it.
also update current to use it.
No functional change intended in current.
To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/lib/npf/ext_route/npfext_route.c
cvs rdiff -u -r1.13 -r1.14 src/sys/net/npf/npf_ext_route.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.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.