summaryrefslogtreecommitdiffstats
path: root/sys/i386/isa/if_cx.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/i386/isa/if_cx.c')
-rw-r--r--sys/i386/isa/if_cx.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/sys/i386/isa/if_cx.c b/sys/i386/isa/if_cx.c
index e29fb51..0983f1b 100644
--- a/sys/i386/isa/if_cx.c
+++ b/sys/i386/isa/if_cx.c
@@ -15,11 +15,13 @@
* all derivative works or modified versions.
*
* Version 1.9, Wed Oct 4 18:58:15 MSK 1995
+ *
+ * $FreeBSD$
+ *
*/
#undef DEBUG
#include "cx.h"
-#include "bpf.h"
#include "sppp.h"
#if NSPPP <= 0
#error The device 'cx' requires sppp.
@@ -36,9 +38,7 @@
#include <net/if.h>
-#if NBPF > 0
#include <net/bpf.h>
-#endif
#include <i386/isa/isa_device.h>
#define watchdog_func_t void(*)(struct ifnet *)
@@ -275,10 +275,8 @@ cxattach (struct isa_device *id)
sppp_attach (c->ifp);
if_attach (c->ifp);
sp = (struct sppp*) c->ifp;
-#if NBPF > 0
/* If BPF is in the kernel, call the attach for it. */
bpfattach (c->ifp, DLT_PPP, PPP_HEADER_LEN);
-#endif
}
}
@@ -472,10 +470,8 @@ cxput (cx_chan_t *c, char b)
return;
}
m_copydata (m, 0, len, buf);
-#if NBPF > 0
if (c->ifp->if_bpf)
bpf_mtap (c->ifp, m);
-#endif
m_freem (m);
/* Start transmitter. */
@@ -796,14 +792,12 @@ cxinput (cx_chan_t *c, void *buf, unsigned len)
printmbuf (m);
#endif
-#if NBPF > 0
/*
* 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);
-#endif
/* Count the received bytes to the subchannel, not the master. */
c->master->if_ibytes -= len + 3;
OpenPOWER on IntegriCloud