Date: Thu, 17 Jul 2025 04:13:12 +0000 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)? Message-ID: <bug-227450-7501-yLMO2GCJv8@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-227450-7501@https.bugs.freebsd.org/bugzilla/> References: <bug-227450-7501@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=227450 --- Comment #8 from Koichiro Iwao <meta@FreeBSD.org> --- I'm on 15-CURRENT 3d5ef29825557bddc08b1171126026b051043194. I added the following debug code to gif_output(), then I got the debug output like this. Obviously, gif_output() is called even if gif is attached to a bridge. int gif_output(struct ifnet *ifp, struct mbuf *m, const struct sockaddr *dst, struct route *ro) { uint32_t af; if (ifp->if_bridge != NULL) { if (dst->sa_family == AF_INET6) { const struct sockaddr_in6 *sin6 = (const struct sockaddr_in6 *)dst; char ipstr[INET6_ADDRSTRLEN]; inet_ntop(AF_INET6, &(sin6->sin6_addr), ipstr, sizeof(ipstr)); printf("gif_output: DEBUG6 addr=%s ifname=%s\n", ipstr, ifp->if_xname); m_freem(m); return (0); } } KASSERT(ifp->if_bridge == NULL, gif_output: DEBUG6 addr=ff02:4::1:ff07:4111 ifname=gif0 gif_output: DEBUG6 addr=ff02:4::16 ifname=gif0 gif_output: DEBUG6 addr=ff02:4::16 ifname=gif0 gif_output: DEBUG6 addr=ff02:4::2 ifname=gif0 gif_output: DEBUG6 addr=ff02:4::16 ifname=gif0 gif_output: DEBUG6 addr=ff02:4::16 ifname=gif0 gif_output: DEBUG6 addr=ff02:4::2 ifname=gif0 gif_output: DEBUG6 addr=ff02:4::2 ifname=gif0 -- You are receiving this mail because: You are the assignee for the bug.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-227450-7501-yLMO2GCJv8>
