[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)?

[email protected]
Newsgroups gmane.os.freebsd.devel.net
Message-ID <[email protected]/bugzilla/>
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=227450

--- Comment #8 from Koichiro Iwao <[email protected]> ---
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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.