diff options
author | Thomas Bushnell <thomas@gnu.org> | 1999-03-14 23:45:24 +0000 |
---|---|---|
committer | Thomas Bushnell <thomas@gnu.org> | 1999-03-14 23:45:24 +0000 |
commit | e8f377b7d6fb42cec8b3868167b3d031f7b34785 (patch) | |
tree | c29b4db8a1bf59d5be7ad11db0258da98092494b /pfinet/ethernet.c | |
parent | f40920be848d1f7a9f33db99b0ac6930ac3afbf2 (diff) |
Sun Mar 14 18:33:54 1999 Thomas Bushnell, BSG <tb@mit.edu>
* ethernet.c (ether_filter): Use a shorter filter program.
(ether_filter_len): Compute more safely.
Diffstat (limited to 'pfinet/ethernet.c')
-rw-r--r-- | pfinet/ethernet.c | 7 |
1 files changed, 3 insertions, 4 deletions
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 |