https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=227450

--- Comment #8 from Koichiro Iwao <m...@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.

Reply via email to