summaryrefslogtreecommitdiff
path: root/pfinet
diff options
context:
space:
mode:
authorThomas Bushnell <thomas@gnu.org>1999-03-14 23:45:24 +0000
committerThomas Bushnell <thomas@gnu.org>1999-03-14 23:45:24 +0000
commite8f377b7d6fb42cec8b3868167b3d031f7b34785 (patch)
treec29b4db8a1bf59d5be7ad11db0258da98092494b /pfinet
parentf40920be848d1f7a9f33db99b0ac6930ac3afbf2 (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')
-rw-r--r--pfinet/ChangeLog5
-rw-r--r--pfinet/ethernet.c7
2 files changed, 8 insertions, 4 deletions
diff --git a/pfinet/ChangeLog b/pfinet/ChangeLog
index 85269ad9..2c98ae55 100644
--- a/pfinet/ChangeLog
+++ b/pfinet/ChangeLog
@@ -1,3 +1,8 @@
+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.
+
1999-02-28 Roland McGrath <roland@baalperazim.frob.com>
* main.c (S_startup_dosync): Use ports_class_iterate.
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