Page MenuHomeFreeBSD

D3419.diff
No OneTemporary

D3419.diff

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

File Metadata

Mime Type
text/plain
Expires
Sat, Dec 21, 7:44 PM (19 h, 48 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15545804
Default Alt Text
D3419.diff (715 B)

Event Timeline