Catch up the rest of the drivers with the ether_vlan_mtap modifications.

If these drivers are setting M_VLANTAG because they are stripping the
layer 2 802.1Q headers, then they need to be re-inserting them so any
bpf(4) peers can properly decode them.

It should be noted that this is compiled tested only.

MFC after:	3 weeks
This commit is contained in:
Christian S.J. Peron 2007-03-04 03:38:08 +00:00
parent 2c434b2cc3
commit 59a0d28bac
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=167190
10 changed files with 10 additions and 10 deletions

View File

@ -4726,7 +4726,7 @@ bce_start_locked(struct ifnet *ifp)
count++;
/* Send a copy of the frame to any BPF listeners. */
BPF_MTAP(ifp, m_head);
ETHER_BPF_MTAP(ifp, m_head);
}
if (count == 0) {

View File

@ -475,7 +475,7 @@ ixgb_start_locked(struct ifnet * ifp)
if (ifp->if_bpf)
bpf_mtap(ifp, m_head);
#else
BPF_MTAP(ifp, m_head);
ETHER_BPF_MTAP(ifp, m_head);
#endif
/* Set timeout in case hardware has problems transmitting */
ifp->if_timer = IXGB_TX_TIMEOUT;

View File

@ -2870,7 +2870,7 @@ msk_start(struct ifnet *ifp)
* If there's a BPF listener, bounce a copy of this frame
* to him.
*/
BPF_MTAP(ifp, m_head);
ETHER_BPF_MTAP(ifp, m_head);
}
if (enq > 0) {

View File

@ -1700,7 +1700,7 @@ nfe_start_locked(struct ifnet *ifp)
/* packet put in h/w queue, remove from s/w queue */
IFQ_DEQUEUE(&ifp->if_snd, m0);
BPF_MTAP(ifp, m0);
ETHER_BPF_MTAP(ifp, m0);
}
if (sc->txq.cur == old) { /* nothing sent */
return;

View File

@ -1613,7 +1613,7 @@ nge_start_locked(ifp)
* If there's a BPF listener, bounce a copy of this frame
* to him.
*/
BPF_MTAP(ifp, m_head);
ETHER_BPF_MTAP(ifp, m_head);
}

View File

@ -2214,7 +2214,7 @@ re_start(ifp)
* If there's a BPF listener, bounce a copy of this frame
* to him.
*/
BPF_MTAP(ifp, m_head);
ETHER_BPF_MTAP(ifp, m_head);
queued++;
}

View File

@ -1346,7 +1346,7 @@ stge_start_locked(struct ifnet *ifp)
* If there's a BPF listener, bounce a copy of this frame
* to him.
*/
BPF_MTAP(ifp, m_head);
ETHER_BPF_MTAP(ifp, m_head);
}
if (enq > 0) {

View File

@ -3120,7 +3120,7 @@ ti_start_locked(ifp)
* If there's a BPF listener, bounce a copy of this frame
* to him.
*/
BPF_MTAP(ifp, m_head);
ETHER_BPF_MTAP(ifp, m_head);
}
if (enq > 0) {

View File

@ -1350,7 +1350,7 @@ txp_start_locked(ifp)
ifp->if_timer = 5;
BPF_MTAP(ifp, m);
ETHER_BPF_MTAP(ifp, m);
WRITE_REG(sc, r->r_reg, TXP_IDX2OFFSET(prod));
}

View File

@ -1847,7 +1847,7 @@ vge_start(ifp)
* If there's a BPF listener, bounce a copy of this frame
* to him.
*/
BPF_MTAP(ifp, m_head);
ETHER_BPF_MTAP(ifp, m_head);
}
if (idx == sc->vge_ldata.vge_tx_prodidx) {