summaryrefslogtreecommitdiff
path: root/sys/dev/isa/if_hp.c
diff options
context:
space:
mode:
authorBrad Smith <brad@cvs.openbsd.org>2004-09-28 01:02:15 +0000
committerBrad Smith <brad@cvs.openbsd.org>2004-09-28 01:02:15 +0000
commitdf92dc15996d4d7a43e2b1928bb4bf802dd7015e (patch)
tree0ad3471d277c0ce1c60250a20b0ba97360305a08 /sys/dev/isa/if_hp.c
parentb97b7651844cafe6a0e7982f6582c3b96377248e (diff)
Use ETHER_MAX_DIX_LEN
Diffstat (limited to 'sys/dev/isa/if_hp.c')
-rw-r--r--sys/dev/isa/if_hp.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/dev/isa/if_hp.c b/sys/dev/isa/if_hp.c
index 3196f3c162d..f929276038f 100644
--- a/sys/dev/isa/if_hp.c
+++ b/sys/dev/isa/if_hp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_hp.c,v 1.13 2004/09/23 17:45:16 brad Exp $ */
+/* $OpenBSD: if_hp.c,v 1.14 2004/09/28 01:02:14 brad Exp $ */
/* $NetBSD: if_hp.c,v 1.21 1995/12/24 02:31:31 mycroft Exp $ */
/* XXX THIS DRIVER IS BROKEN. IT WILL NOT EVEN COMPILE. */
@@ -96,8 +96,6 @@ struct isa_driver hpdriver =
struct mbuf *hpget();
-#define ETHER_MAX_LEN 1536
-
/*
* Ethernet software status per interface.
*
@@ -680,7 +678,7 @@ loop:
ns->ns_if.if_ipackets++;
len = ns->ns_ph.pr_sz0 + (ns->ns_ph.pr_sz1 << 8);
- if (len < ETHER_MIN_LEN || len > ETHER_MAX_LEN) {
+ if (len < ETHER_MIN_LEN || len > ETHER_MAX_DIX_LEN) {
printf("hpintr: bnry %x curr %x\n", bnry, curr);
printf("hpintr: packet hdr: %x %x %x %x\n",
ns->ns_ph.pr_status,