diff options
author | Brad Smith <brad@cvs.openbsd.org> | 2004-08-05 20:06:59 +0000 |
---|---|---|
committer | Brad Smith <brad@cvs.openbsd.org> | 2004-08-05 20:06:59 +0000 |
commit | ce696c764035a6cbe1b1211f6b6da8848e1e9960 (patch) | |
tree | eeb1bef1d94811e916c41d4b513b087f81b60519 /sys/dev | |
parent | 18a8c9a37447fa5e61397f1fa9101ccf15339990 (diff) |
use ETHER_MAX_LEN.
ok mickey@
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/ic/an.c | 4 |
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; |