Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Dec 2025 10:53:01 -0800
From:      Gleb Smirnoff <glebius@freebsd.org>
To:        Dimitry Andric <dim@freebsd.org>
Cc:        Kristof Provost <kp@freebsd.org>, src-committers@freebsd.org, dev-commits-src-all@freebsd.org, dev-commits-src-main@freebsd.org
Subject:   Re: panic: bpf_ifnet_write: ifp 0xfffff8002d492800 type 209 not supported
Message-ID:  <aUWfDcy9JmhYJFOm@cell.glebi.us>
In-Reply-To: <40C4BA5F-1207-47FF-BF37-A2F4F0BE0AB1@FreeBSD.org>
References:  <694452f3.32deb.4d0ab2a7@gitrepo.freebsd.org> <4A394DAA-1FCE-440A-8E92-88BD9B4EE087@FreeBSD.org> <aUWcl0T3GHi-6ItR@cell.glebi.us> <40C4BA5F-1207-47FF-BF37-A2F4F0BE0AB1@FreeBSD.org>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]
On Fri, Dec 19, 2025 at 07:48:42PM +0100, Dimitry Andric wrote:
D> What I'm seeing with main-n282652-4100bd6caa66 is this:
D> 
D> panic: bpf_ifnet_write: ifp 0xfffff8002d492800 type 209 not supported

This is a very different thing, but this is also mine :(

Fortunately it is a trivial miss.  Please confirm the attached
patch works.

-- 
Gleb Smirnoff

[-- Attachment #2 --]
diff --git a/sys/net/bpf_ifnet.c b/sys/net/bpf_ifnet.c
index d4fd50bd3d8e..4123e9144fe8 100644
--- a/sys/net/bpf_ifnet.c
+++ b/sys/net/bpf_ifnet.c
@@ -89,6 +89,7 @@ bpf_ifnet_write(void *arg, struct mbuf *m, struct mbuf *mc, int flags)
 	/* DLT_EN10MB */
 	case IFT_ETHER:		/* if_ethersubr.c */
 	case IFT_L2VLAN:	/* vlan(4) */
+	case IFT_BRIDGE:	/* if_bridge(4) */
 	case IFT_IEEE8023ADLAG:	/* lagg(4) */
 	case IFT_INFINIBAND:	/* if_infiniband.c */
 	{
help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?aUWfDcy9JmhYJFOm>