summaryrefslogtreecommitdiff
path: root/sys/dev/ic/rtl81x9.c
diff options
context:
space:
mode:
authorJason Wright <jason@cvs.openbsd.org>2007-02-02 04:21:41 +0000
committerJason Wright <jason@cvs.openbsd.org>2007-02-02 04:21:41 +0000
commit6a91f83539b81a606795d6acb9612baef0a4e4d5 (patch)
treed0f33c57c2fe4e6f7fe1eabf895b805e8033a2b2 /sys/dev/ic/rtl81x9.c
parent8317229a7791801dbb91fb092c7389f050c00d24 (diff)
up the accepted length to ETHER_MAX_LEN + ETHER_VLAN_ENCAP_LEN on rx; from brad@
Diffstat (limited to 'sys/dev/ic/rtl81x9.c')
-rw-r--r--sys/dev/ic/rtl81x9.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ic/rtl81x9.c b/sys/dev/ic/rtl81x9.c
index 8e07123c8b2..dee5f98c208 100644
--- a/sys/dev/ic/rtl81x9.c
+++ b/sys/dev/ic/rtl81x9.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rtl81x9.c,v 1.54 2006/10/15 19:06:38 deraadt Exp $ */
+/* $OpenBSD: rtl81x9.c,v 1.55 2007/02/02 04:21:40 jason Exp $ */
/*
* Copyright (c) 1997, 1998
@@ -635,7 +635,7 @@ rl_rxeof(sc)
if (!(rxstat & RL_RXSTAT_RXOK) ||
total_len < ETHER_MIN_LEN ||
- total_len > ETHER_MAX_LEN) {
+ total_len > ETHER_MAX_LEN + ETHER_VLAN_ENCAP_LEN) {
ifp->if_ierrors++;
rl_init(sc);
bus_dmamap_sync(sc->sc_dmat, sc->sc_rx_dmamap,