diff options
Diffstat (limited to 'sys/i386/isa/if_cx.c')
-rw-r--r-- | sys/i386/isa/if_cx.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/i386/isa/if_cx.c b/sys/i386/isa/if_cx.c index 392c9a2..b64f978 100644 --- a/sys/i386/isa/if_cx.c +++ b/sys/i386/isa/if_cx.c @@ -476,8 +476,7 @@ cxput (cx_chan_t *c, char b) return; } m_copydata (m, 0, len, buf); - if (c->ifp->if_bpf) - bpf_mtap (c->ifp, m); + BPF_MTAP (c->ifp, m); m_freem (m); /* Start transmitter. */ @@ -802,8 +801,7 @@ cxinput (cx_chan_t *c, void *buf, unsigned len) * Check if there's a BPF listener on this interface. * If so, hand off the raw packet to bpf. */ - if (c->ifp->if_bpf) - bpf_tap (c->ifp, buf, len); + BPF_TAP (c->ifp, buf, len); /* Count the received bytes to the subchannel, not the master. */ c->master->if_ibytes -= len + 3; |