From e8f377b7d6fb42cec8b3868167b3d031f7b34785 Mon Sep 17 00:00:00 2001 From: Thomas Bushnell Date: Sun, 14 Mar 1999 23:45:24 +0000 Subject: Sun Mar 14 18:33:54 1999 Thomas Bushnell, BSG * ethernet.c (ether_filter): Use a shorter filter program. (ether_filter_len): Compute more safely. --- pfinet/ethernet.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'pfinet/ethernet.c') diff --git a/pfinet/ethernet.c b/pfinet/ethernet.c index fcdb6207..b79563ab 100644 --- a/pfinet/ethernet.c +++ b/pfinet/ethernet.c @@ -1,5 +1,5 @@ /* - Copyright (C) 1995, 1996, 1998 Free Software Foundation, Inc. + Copyright (C) 1995, 1996, 1998, 1999 Free Software Foundation, Inc. Written by Michael I. Bushnell, p/BSG. This file is part of the GNU Hurd. @@ -62,11 +62,10 @@ ethernet_set_multi (struct device *dev, int numaddrs, void *addrs) static short ether_filter[] = { NETF_PUSHLIT | NETF_NOP, - 1, - NETF_PUSHZERO | NETF_OR, + 1 }; +static int ether_filter_len = sizeof (ether_filter) / sizeof (short); -static int ether_filter_len = 3; static struct port_bucket *etherport_bucket; void -- cgit v1.2.3