summaryrefslogtreecommitdiff
path: root/sys/dev/pci
diff options
context:
space:
mode:
authorBrad Smith <brad@cvs.openbsd.org>2006-07-30 22:58:39 +0000
committerBrad Smith <brad@cvs.openbsd.org>2006-07-30 22:58:39 +0000
commit3474ec6f49d24e4cee2045ee351462d2b8d94078 (patch)
treee30318bcc7aa235d587ea6237bb79efcded99961 /sys/dev/pci
parent5dc3e6803ec9affc1b5bb26a874e21a7a1082c79 (diff)
missed this part of the more strict receive path packet validation
routine commit.
Diffstat (limited to 'sys/dev/pci')
-rw-r--r--sys/dev/pci/if_skreg.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/pci/if_skreg.h b/sys/dev/pci/if_skreg.h
index 404c31a6a01..dfb9f11930f 100644
--- a/sys/dev/pci/if_skreg.h
+++ b/sys/dev/pci/if_skreg.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_skreg.h,v 1.34 2006/06/23 03:47:56 brad Exp $ */
+/* $OpenBSD: if_skreg.h,v 1.35 2006/07/30 22:58:38 brad Exp $ */
/*
* Copyright (c) 1997, 1998, 1999, 2000
@@ -1487,7 +1487,8 @@ struct sk_tx_desc {
* receive descriptors.
*/
#define SK_JUMBO_FRAMELEN 9018
-#define SK_JUMBO_MTU (SK_JUMBO_FRAMELEN-ETHER_HDR_LEN-ETHER_CRC_LEN)
+#define SK_JUMBO_MTU (SK_JUMBO_FRAMELEN - ETHER_HDR_LEN - ETHER_CRC_LEN)
+#define SK_MIN_FRAMELEN (ETHER_MIN_LEN - ETHER_CRC_LEN)
#define SK_JSLOTS ((SK_RX_RING_CNT / 2) * 3)
#define SK_JRAWLEN (SK_JUMBO_FRAMELEN + ETHER_ALIGN)