diff --git a/sys/net/if.c b/sys/net/if.c index fe51ba5a0b6..edc7d8376bb 100644 --- a/sys/net/if.c +++ b/sys/net/if.c @@ -834,6 +834,7 @@ if_attach_internal(struct ifnet *ifp, bool vmove) MPASS(ifindex_table[ifp->if_index].ife_ifnet == ifp); #ifdef VIMAGE + CURVNET_ASSERT_SET(); ifp->if_vnet = curvnet; if (ifp->if_home_vnet == NULL) ifp->if_home_vnet = curvnet;