From 74d1e69716506e21b0833b416213a2cea603a074 Mon Sep 17 00:00:00 2001 From: dg Date: Wed, 30 Nov 1994 12:08:23 +0000 Subject: Fix bug I introduced that broke BPF support. Caused by a byte order problem in an if () expression. Problem fixed by removing the test for ETHERTYPE_* before passing packet to higher layers. --- sys/dev/de/if_de.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'sys/dev') diff --git a/sys/dev/de/if_de.c b/sys/dev/de/if_de.c index c2be075..d8c2038 100644 --- a/sys/dev/de/if_de.c +++ b/sys/dev/de/if_de.c @@ -21,7 +21,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: if_de.c,v 1.7 1994/11/22 09:47:31 davidg Exp $ + * $Id: if_de.c,v 1.8 1994/11/24 14:29:34 davidg Exp $ * */ @@ -397,8 +397,6 @@ tulip_rx_intr( #if NBPFILTER > 0 if (sc->tulip_bpf != NULL) { bpf_tap(sc->tulip_bpf, bufaddr, total_len); - if (eh.ether_type != ETHERTYPE_IP && eh.ether_type != ETHERTYPE_ARP) - goto next; if ((eh.ether_dhost[0] & 1) == 0 && !TULIP_ADDREQUAL(eh.ether_dhost, sc->tulip_ac.ac_enaddr)) goto next; -- cgit v1.1