aboutsummaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorDavid Greenman <dg@FreeBSD.org>1995-05-14 11:01:20 +0000
committerDavid Greenman <dg@FreeBSD.org>1995-05-14 11:01:20 +0000
commit14c77d8a986e432886863e9d16a2845310b2c963 (patch)
tree0bf38d0761b9f2281b46412d80594132ee381e72 /sys/dev
parent1f6583b909b279039eb2d72ba34a4d87bea40f57 (diff)
Notes
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/ed/if_ed.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/ed/if_ed.c b/sys/dev/ed/if_ed.c
index 6898dfd433a4..d4d29f87e363 100644
--- a/sys/dev/ed/if_ed.c
+++ b/sys/dev/ed/if_ed.c
@@ -13,7 +13,7 @@
* the SMC Elite Ultra (8216), the 3Com 3c503, the NE1000 and NE2000,
* and a variety of similar clones.
*
- * $Id: if_ed.c,v 1.70 1995/05/04 07:56:23 davidg Exp $
+ * $Id: if_ed.c,v 1.71 1995/05/12 22:39:40 davidg Exp $
*/
#include "ed.h"
@@ -169,8 +169,8 @@ static unsigned short ed_790_intr_mask[] = {
IRQ15
};
-#define ETHER_MIN_LEN 64
-#define ETHER_MAX_LEN 1518
+#define ETHER_MIN_LEN 60
+#define ETHER_MAX_LEN 1514
#define ETHER_ADDR_LEN 6
#define ETHER_HDR_SIZE 14
@@ -1682,7 +1682,7 @@ ed_rint(unit)
ed_pio_readmem(sc, packet_ptr, (char *) &packet_hdr,
sizeof(packet_hdr));
len = packet_hdr.count;
- if (len > ETHER_MAX_LEN) {
+ if (len > ETHER_MAX_LEN+4) { /* len includes 4 byte header */
/*
* Length is a wild value. There's a good chance that
* this was caused by the NIC being old and buggy.