Index: sys/net/if_loop.c =================================================================== --- sys/net/if_loop.c +++ sys/net/if_loop.c @@ -132,6 +132,7 @@ .ifat_drv = &lo_ifdrv, .ifat_dunit = unit, .ifat_mtu = LOMTU, + .ifat_nrings = 1, .ifat_flags = IFF_LOOPBACK | IFF_MULTICAST, .ifat_capabilities = IFCAP_HWCSUM | IFCAP_HWCSUM_IPV6, .ifat_capenable = IFCAP_HWCSUM | IFCAP_HWCSUM_IPV6, @@ -206,12 +207,16 @@ { u_int32_t af; struct rtentry *rt = NULL; + ifring_t *ifrs; #ifdef MAC int error; #endif M_ASSERTPKTHDR(m); /* check if we have the packet header */ + ifrs = if_getsoftc(ifp, IF_RING); + m->m_pkthdr.ifring = ifrs[0]; + if (ro != NULL) rt = ro->ro_rt; #ifdef MAC