[Bug 238870] sys.netpfil.pf.names.names and sys.netpfil.pf.synproxy.synproxy cause panic

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Aug 22 12:11:54 UTC 2019


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

--- Comment #15 from Hans Petter Selasky <hselasky at FreeBSD.org> ---
Try this:

        struct ifnet *ifp;
        struct epoch_tracker et;

        while (1) {
            NET_EPOCH_ENTER(et);
            CK_STAILQ_FOREACH(ifp, &V_ifnet, if_link) {
                if (ifp->if_home_vnet != ifp->if_vnet)
                    break;
            }
            NET_EPOCH_EXIT(et);
            if (ifp == NULL)
                  break;
            if_vmove(ifp, ifp->if_home_vnet);
        }

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-testing mailing list