diff options
author | wpaul <wpaul@FreeBSD.org> | 1999-09-23 03:32:57 +0000 |
---|---|---|
committer | wpaul <wpaul@FreeBSD.org> | 1999-09-23 03:32:57 +0000 |
commit | 165d81879ead70b028b140d76d9143aefee5ce16 (patch) | |
tree | 6bbbef5ef1ef94b97c53f10e98f93f50d12e1be5 /sys/dev/ti | |
parent | 9e89242d36c564123e515222eb0c9174c38c469c (diff) | |
download | FreeBSD-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/dev/ti')
-rw-r--r-- | sys/dev/ti/if_ti.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/sys/dev/ti/if_ti.c b/sys/dev/ti/if_ti.c index 947f6c1..8748f26 100644 --- a/sys/dev/ti/if_ti.c +++ b/sys/dev/ti/if_ti.c @@ -78,7 +78,6 @@ * - Andrew Gallatin for providing FreeBSD/Alpha support. */ -#include "bpf.h" #include "vlan.h" #include <sys/param.h> @@ -96,9 +95,7 @@ #include <net/if_dl.h> #include <net/if_media.h> -#if NBPF > 0 #include <net/bpf.h> -#endif #if NVLAN > 0 #include <net/if_types.h> @@ -1728,9 +1725,7 @@ static int ti_attach(dev) if_attach(ifp); ether_ifattach(ifp); -#if NBPF > 0 bpfattach(ifp, DLT_EN10MB, sizeof(struct ether_header)); -#endif fail: splx(s); @@ -1859,7 +1854,6 @@ static void ti_rxeof(sc) eh = mtod(m, struct ether_header *); m->m_pkthdr.rcvif = ifp; -#if NBPF > 0 /* * Handle BPF listeners. Let the BPF user see the packet, but * don't pass it up to the ether_input() layer unless it's @@ -1876,7 +1870,6 @@ static void ti_rxeof(sc) continue; } } -#endif /* Remove header from mbuf and pass it on. */ m_adj(m, sizeof(struct ether_header)); @@ -2144,10 +2137,8 @@ static void ti_start(ifp) * If there's a BPF listener, bounce a copy of this frame * to him. */ -#if NBPF > 0 if (ifp->if_bpf) bpf_mtap(ifp, m_head); -#endif } /* Transmit */ |