diff options
Diffstat (limited to 'sys/netatm/atm_cm.c')
-rw-r--r-- | sys/netatm/atm_cm.c | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/sys/netatm/atm_cm.c b/sys/netatm/atm_cm.c index f21db37..8332e83 100644 --- a/sys/netatm/atm_cm.c +++ b/sys/netatm/atm_cm.c @@ -2888,6 +2888,18 @@ atm_cm_cpcs_upper(cmd, tok, arg1, arg2) } /* + * Send the packet to the interface's bpf if this + * vc has one. + */ + if (cvp->cvc_vcc != NULL && + cvp->cvc_vcc->vc_nif != NULL) { + struct ifnet *ifp = + (struct ifnet *)cvp->cvc_vcc->vc_nif; + + BPF_MTAP(ifp, m); + } + + /* * Locate packet's connection */ cop = cvp->cvc_conn; @@ -2901,17 +2913,6 @@ atm_cm_cpcs_upper(cmd, tok, arg1, arg2) case ATM_ENC_LLC: /* - * Send the packet to the interface's bpf if this - * vc has one. - */ - if (cvp->cvc_vcc != NULL && - cvp->cvc_vcc->vc_nif != NULL) { - struct ifnet *ifp = - (struct ifnet *)cvp->cvc_vcc->vc_nif; - - BPF_MTAP(ifp, m); - } - /* * Find connection with matching LLC header */ if (KB_LEN(m) < T_ATM_LLC_MAX_LEN) { |