diff options
author | Brad Smith <brad@cvs.openbsd.org> | 2004-09-28 01:02:15 +0000 |
---|---|---|
committer | Brad Smith <brad@cvs.openbsd.org> | 2004-09-28 01:02:15 +0000 |
commit | df92dc15996d4d7a43e2b1928bb4bf802dd7015e (patch) | |
tree | 0ad3471d277c0ce1c60250a20b0ba97360305a08 /sys/dev | |
parent | b97b7651844cafe6a0e7982f6582c3b96377248e (diff) |
Use ETHER_MAX_DIX_LEN
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/isa/if_ef_isapnp.c | 4 | ||||
-rw-r--r-- | sys/dev/isa/if_hp.c | 6 |
2 files changed, 4 insertions, 6 deletions
diff --git a/sys/dev/isa/if_ef_isapnp.c b/sys/dev/isa/if_ef_isapnp.c index 072f964e71c..be226d2273b 100644 --- a/sys/dev/isa/if_ef_isapnp.c +++ b/sys/dev/isa/if_ef_isapnp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_ef_isapnp.c,v 1.16 2004/05/12 06:35:11 tedu Exp $ */ +/* $OpenBSD: if_ef_isapnp.c,v 1.17 2004/09/28 01:02:14 brad Exp $ */ /* * Copyright (c) 1999 Jason L. Wright (jason@thought.net) @@ -429,7 +429,7 @@ efinit(sc) efcompletecmd(sc, EP_COMMAND, TX_RESET); bus_space_write_2(iot, ioh, EP_COMMAND, - SET_TX_AVAIL_THRESH | (1536 >> 2)); + SET_TX_AVAIL_THRESH | (ETHER_MAX_DIX_LEN >> 2)); efsetmulti(sc); 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, |