summaryrefslogtreecommitdiffstats
path: root/sys/i386/isa/if_wi.c
diff options
context:
space:
mode:
authorwpaul <wpaul@FreeBSD.org>1999-09-23 03:32:57 +0000
committerwpaul <wpaul@FreeBSD.org>1999-09-23 03:32:57 +0000
commit165d81879ead70b028b140d76d9143aefee5ce16 (patch)
tree6bbbef5ef1ef94b97c53f10e98f93f50d12e1be5 /sys/i386/isa/if_wi.c
parent9e89242d36c564123e515222eb0c9174c38c469c (diff)
downloadFreeBSD-src-165d81879ead70b028b140d76d9143aefee5ce16.zip
FreeBSD-src-165d81879ead70b028b140d76d9143aefee5ce16.tar.gz
As suggested by phk, unconditionalize BPF support in these drivers. Since
there are stubs compiled into the kernel if BPF support is not enabled, there aren't any problems with unresolved symbols. The modules in /modules are compiled with BPF support enabled anyway, so the most this will do is bloat GENERIC a little.
Diffstat (limited to 'sys/i386/isa/if_wi.c')
-rw-r--r--sys/i386/isa/if_wi.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/sys/i386/isa/if_wi.c b/sys/i386/isa/if_wi.c
index 73e56d7..7d5432a 100644
--- a/sys/i386/isa/if_wi.c
+++ b/sys/i386/isa/if_wi.c
@@ -67,7 +67,6 @@
#define WI_HERMES_AUTOINC_WAR /* Work around data write autoinc bug. */
#define WI_HERMES_STATS_WAR /* Work around stats counter bug. */
-#include "bpf.h"
#include "card.h"
#include "wi.h"
@@ -95,9 +94,7 @@
#include <netinet/if_ether.h>
#endif
-#if NBPF > 0
#include <net/bpf.h>
-#endif
#include <machine/clock.h>
#include <machine/md_var.h>
@@ -364,9 +361,7 @@ static int wi_attach(isa_dev)
if_attach(ifp);
ether_ifattach(ifp);
-#if NBPF > 0
bpfattach(ifp, DLT_EN10MB, sizeof(struct ether_header));
-#endif
EVENTHANDLER_REGISTER(shutdown_post_sync, wi_shutdown, sc,
SHUTDOWN_PRI_DEFAULT);
@@ -465,7 +460,6 @@ static void wi_rxeof(sc)
ifp->if_ipackets++;
-#if NBPF > 0
/* Handle BPF listeners. */
if (ifp->if_bpf) {
bpf_mtap(ifp, m);
@@ -476,7 +470,6 @@ static void wi_rxeof(sc)
return;
}
}
-#endif
/* Receive packet. */
m_adj(m, sizeof(struct ether_header));
@@ -1241,14 +1234,12 @@ static void wi_start(ifp)
m0->m_pkthdr.len + 2);
}
-#if NBPF > 0
/*
* If there's a BPF listner, bounce a copy of
* this frame to him.
*/
if (ifp->if_bpf)
bpf_mtap(ifp, m0);
-#endif
m_freem(m0);
OpenPOWER on IntegriCloud