Changeset View
Changeset View
Standalone View
Standalone View
sys/net/if_loop.c
Context not available. | |||||
.ifat_drv = &lo_ifdrv, | .ifat_drv = &lo_ifdrv, | ||||
.ifat_dunit = unit, | .ifat_dunit = unit, | ||||
.ifat_mtu = LOMTU, | .ifat_mtu = LOMTU, | ||||
.ifat_nrings = 1, | |||||
.ifat_flags = IFF_LOOPBACK | IFF_MULTICAST, | .ifat_flags = IFF_LOOPBACK | IFF_MULTICAST, | ||||
.ifat_capabilities = IFCAP_HWCSUM | IFCAP_HWCSUM_IPV6, | .ifat_capabilities = IFCAP_HWCSUM | IFCAP_HWCSUM_IPV6, | ||||
.ifat_capenable = IFCAP_HWCSUM | IFCAP_HWCSUM_IPV6, | .ifat_capenable = IFCAP_HWCSUM | IFCAP_HWCSUM_IPV6, | ||||
Context not available. | |||||
{ | { | ||||
u_int32_t af; | u_int32_t af; | ||||
struct rtentry *rt = NULL; | struct rtentry *rt = NULL; | ||||
ifring_t *ifrs; | |||||
#ifdef MAC | #ifdef MAC | ||||
int error; | int error; | ||||
#endif | #endif | ||||
M_ASSERTPKTHDR(m); /* check if we have the packet header */ | 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) | if (ro != NULL) | ||||
rt = ro->ro_rt; | rt = ro->ro_rt; | ||||
#ifdef MAC | #ifdef MAC | ||||
Context not available. |