From nobody Thu Jul 17 04:13:12 2025 X-Original-To: net@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4bjKKN2DKGz62QNV for ; Thu, 17 Jul 2025 04:13:12 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4bjKKN1VTVz3CVL for ; Thu, 17 Jul 2025 04:13:12 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1752725592; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=/BXgwfa02iYk+ZwNs6dg+y8l6qhVbRRPp2zy8Kaf204=; b=FWwvP83DaApNtc3Xu48aOQPxNPMaOf6m++pP2aqDWsUHqg/niV5R10/mPxuFAPnArnWkrL wr9xFaK097WaRoNQ3day5tzM2L0WpQYE8BxdlLL15m52BvVItYPkinbBa94+mW9Y4D05GG 5aLsBn6l1W/epSXV1VPRMuGG3aAzEshKATmg0oBc38fhAvX1BXwl8tDQ1wDSajE1WPtm5Z dmj4j4Qo+LjHfDRFlw7rfQ2/au91Qkrv2tS+f4s3ERoytLTb0Bg1/lt4pr/IFtTtjKpU/b QoxBjN8ui41hUwa4Km1zpoJ96ffbhgqAaZw67wfZWtBkyAH6Ff5Z8PCWxlIevw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1752725592; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=/BXgwfa02iYk+ZwNs6dg+y8l6qhVbRRPp2zy8Kaf204=; b=lYAtRiSTnxyllyrydmLg9irkWLkCaVZXGokJo6P7zmaCJ5QvUTHMCvKoAvYA1tY7bNtz11 fQ642dwsombyN9IFiMZEiVQILKSZTIme6RBZvlfOslDKj5wmLBDe+pVxUkV+v+cCzm0Ut4 l8h8izM0vJPo3Oco+R7S0uEQJVEKhbE8sFba+9dcOj0hJrp9ZRwTWSA4+CJ/KGS7Es+l6h F1qBkaAqXU3CCy/IjnjFAJHe1KeWK9eJf8uYgxWYrwShrrqdklSAZvuu6zM/XG2g1l+2h5 P4dkugXalFFqKwIJ5sBgmiPj5ZoyYVhtxr47MVv8pJ3yTG8+26vSMVgrUyJKmA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1752725592; a=rsa-sha256; cv=none; b=FiyM92S5LO/oW/7qSJVaW3blrWaSB3LLps+DiCqyty3l4GbCXVZIdu6dMDitmZrbr1iwBa DN7XYr08yYK4mcZL6i2fEyeU6pLcdsb2hD5a7dTJJ/UMQiqfIt7q7qg/P5SDtD7ru03J1Q gGlw4gHc99OBIPR0cTxOWy/PlIge5dy+5Jn/SqNKbfpZOmyErRHTuIxnpwNMF7ENs+i2j/ q636GAqUpgt7S7WcwTy+/IwSqUJdYuCVe80xage/BcEQw/d4QvWcOpzk2gV+q14FgD+aDa 52Teyb8OgUuy+NozvCYNvh4hgq7uZ1MJs1O7szc4ZFeMaCnau2c1qy4vcElWvw== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4bjKKN15pczgkL for ; Thu, 17 Jul 2025 04:13:12 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 56H4DC6j091435 for ; Thu, 17 Jul 2025 04:13:12 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 56H4DCbG091433 for net@FreeBSD.org; Thu, 17 Jul 2025 04:13:12 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: net@FreeBSD.org Subject: [Bug 227450] [patch] Should not all packets processed by gif_output be deleted, when an running instance of if_gif(4) is member of an instance of if_bridge(4)? Date: Thu, 17 Jul 2025 04:13:12 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 11.1-RELEASE X-Bugzilla-Keywords: patch X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: meta@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: net@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Networking and TCP/IP with FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-net List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-net@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D227450 --- Comment #8 from Koichiro Iwao --- I'm on 15-CURRENT 3d5ef29825557bddc08b1171126026b051043194. I added the following debug code to gif_output(), then I got the debug outp= ut like this. Obviously, gif_output() is called even if gif is attached to a bridge.=20 int gif_output(struct ifnet *ifp, struct mbuf *m, const struct sockaddr *dst, struct route *ro) { uint32_t af; if (ifp->if_bridge !=3D NULL) { if (dst->sa_family =3D=3D AF_INET6) { const struct sockaddr_in6 *sin6 =3D (const struct sockaddr_in6 *)dst; char ipstr[INET6_ADDRSTRLEN]; inet_ntop(AF_INET6, &(sin6->sin6_addr), ipstr, sizeof(ipstr)); printf("gif_output: DEBUG6 addr=3D%s ifname=3D%s\n"= , ipstr, ifp->if_xname); m_freem(m); return (0); } } KASSERT(ifp->if_bridge =3D=3D NULL, gif_output: DEBUG6 addr=3Dff02:4::1:ff07:4111 ifname=3Dgif0 gif_output: DEBUG6 addr=3Dff02:4::16 ifname=3Dgif0 gif_output: DEBUG6 addr=3Dff02:4::16 ifname=3Dgif0 gif_output: DEBUG6 addr=3Dff02:4::2 ifname=3Dgif0 gif_output: DEBUG6 addr=3Dff02:4::16 ifname=3Dgif0 gif_output: DEBUG6 addr=3Dff02:4::16 ifname=3Dgif0 gif_output: DEBUG6 addr=3Dff02:4::2 ifname=3Dgif0 gif_output: DEBUG6 addr=3Dff02:4::2 ifname=3Dgif0 --=20 You are receiving this mail because: You are the assignee for the bug.=