diff options
| author | John Baldwin <jhb@FreeBSD.org> | 2006-12-29 13:59:50 +0000 |
|---|---|---|
| committer | John Baldwin <jhb@FreeBSD.org> | 2006-12-29 13:59:50 +0000 |
| commit | 0dea849ae93133a4a02f0d5fd58340d3df92668b (patch) | |
| tree | 5677cbe8565b075c609dc8ea0a6087d8251a7bca /sys/dev/cx | |
| parent | 240589a9fec34f1cd809cc429f2c56147a0383bd (diff) | |
Notes
Diffstat (limited to 'sys/dev/cx')
| -rw-r--r-- | sys/dev/cx/if_cx.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/dev/cx/if_cx.c b/sys/dev/cx/if_cx.c index be136b3b2dc5..4aa98290f808 100644 --- a/sys/dev/cx/if_cx.c +++ b/sys/dev/cx/if_cx.c @@ -1195,8 +1195,7 @@ static void cx_send (drv_t *d) if (! m) return; #ifndef NETGRAPH - if (d->ifp->if_bpf) - BPF_MTAP (d->ifp, m); + BPF_MTAP (d->ifp, m); #endif len = m_length (m, NULL); if (! m->m_next) @@ -1352,8 +1351,7 @@ static void cx_receive (cx_chan_t *c, char *data, int len) m->m_pkthdr.rcvif = d->ifp; /* Check if there's a BPF listener on this interface. * If so, hand off the raw packet to bpf. */ - if (d->ifp->if_bpf) - BPF_TAP (d->ifp, data, len); + BPF_TAP (d->ifp, data, len); IF_ENQUEUE (&d->queue, m); #endif } |
