summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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