From fa21035b4e2f11d2c8f90174690853600b670e2d Mon Sep 17 00:00:00 2001 From: archie Date: Sun, 14 May 2000 02:18:43 +0000 Subject: Move code to handle BPF and bridging for incoming Ethernet packets out of the individual drivers and into the common routine ether_input(). Also, remove the (incomplete) hack for matching ethernet headers in the ip_fw code. The good news: net result of 1016 lines removed, and this should make bridging now work with *all* Ethernet drivers. The bad news: it's nearly impossible to test every driver, especially for bridging, and I was unable to get much testing help on the mailing lists. Reviewed by: freebsd-net --- sys/dev/cs/if_cs.c | 7 ------- 1 file changed, 7 deletions(-) (limited to 'sys/dev/cs') diff --git a/sys/dev/cs/if_cs.c b/sys/dev/cs/if_cs.c index 99ae8a4..2801b26 100644 --- a/sys/dev/cs/if_cs.c +++ b/sys/dev/cs/if_cs.c @@ -62,10 +62,6 @@ #include -#ifdef BRIDGE -#include -#endif - #include #include @@ -952,9 +948,6 @@ cs_get_packet(struct cs_softc *sc) eh = mtod(m, struct ether_header *); - if (ifp->if_bpf) - bpf_mtap(ifp, m); - #ifdef CS_DEBUG for (i=0;im_data+i))); -- cgit v1.1