summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbrad <brad@openbsd.org>2004-08-05 20:06:58 +0000
committerbrad <brad@openbsd.org>2004-08-05 20:06:58 +0000
commit4f341a847ddd0e8f9b72bde3f87062718595ddea (patch)
treef6bf1984f653a08a71bb776991ce0c015f54bfd1
parentremove some separate per driver constants and use (diff)
downloadwireguard-openbsd-4f341a847ddd0e8f9b72bde3f87062718595ddea.tar.xz
wireguard-openbsd-4f341a847ddd0e8f9b72bde3f87062718595ddea.zip
use ETHER_MAX_LEN.
ok mickey@
-rw-r--r--sys/dev/ic/an.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ic/an.c b/sys/dev/ic/an.c
index cd8d2e1c647..1b714b5c4da 100644
--- a/sys/dev/ic/an.c
+++ b/sys/dev/ic/an.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: an.c,v 1.37 2004/08/05 12:43:26 miod Exp $ */
+/* $OpenBSD: an.c,v 1.38 2004/08/05 20:06:58 brad Exp $ */
/*
* Copyright (c) 1997, 1998, 1999
@@ -1112,7 +1112,7 @@ an_init_tx_ring(sc)
return (0);
for (i = 0; i < AN_TX_RING_CNT; i++) {
- if (an_alloc_nicmem(sc, 1518 + 0x44, &id))
+ if (an_alloc_nicmem(sc, ETHER_MAX_LEN + 0x44, &id))
return(ENOMEM);
sc->an_rdata.an_tx_fids[i] = id;
sc->an_rdata.an_tx_ring[i] = 0;