Use ETHER_BPF_MTAP so that the vlan tags are visible to bpf(4) when stacked

under a vlan.

MFC after:	3 days
This commit is contained in:
Andrew Thompson 2007-10-20 02:43:23 +00:00
parent 3565f9bc31
commit 544f714198
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=172825

View File

@ -1113,7 +1113,7 @@ lagg_start(struct ifnet *ifp)
if (m == NULL)
break;
BPF_MTAP(ifp, m);
ETHER_BPF_MTAP(ifp, m);
if (sc->sc_proto != LAGG_PROTO_NONE)
error = (*sc->sc_start)(sc, m);
@ -1145,7 +1145,7 @@ lagg_input(struct ifnet *ifp, struct mbuf *m)
}
LAGG_RLOCK(sc);
BPF_MTAP(scifp, m);
ETHER_BPF_MTAP(scifp, m);
m = (*sc->sc_input)(sc, lp, m);