summaryrefslogtreecommitdiff
path: root/sys/net/if_ef.c
diff options
context:
space:
mode:
authorSam Leffler <sam@FreeBSD.org>2003-12-28 03:56:00 +0000
committerSam Leffler <sam@FreeBSD.org>2003-12-28 03:56:00 +0000
commit437ffe182391fbcd9826ce327abbd175515b687d (patch)
treef663da0db11fcecb5ff2d3e93732492fb4d7bd29 /sys/net/if_ef.c
parentbd80d26f3b2fc205d7351ec17e029625f915a687 (diff)
Notes
Diffstat (limited to 'sys/net/if_ef.c')
-rw-r--r--sys/net/if_ef.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/sys/net/if_ef.c b/sys/net/if_ef.c
index a2396134d545..f0440de3dd1f 100644
--- a/sys/net/if_ef.c
+++ b/sys/net/if_ef.c
@@ -372,13 +372,7 @@ ef_input(struct ifnet *ifp, struct ether_header *eh, struct mbuf *m)
eifp->if_ibytes += m->m_pkthdr.len + sizeof (*eh);
m->m_pkthdr.rcvif = eifp;
- if (eifp->if_bpf) {
- struct mbuf m0;
- m0.m_next = m;
- m0.m_len = ETHER_HDR_LEN;
- m0.m_data = (char *)eh;
- BPF_MTAP(eifp, &m0);
- }
+ BPF_MTAP2(eifp, eh, ETHER_HDR_LEN, m);
/*
* Now we ready to adjust mbufs and pass them to protocol intr's
*/