Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/sun2/dev Fixed a bug where we were using ETHERMIN a...



details:   https://anonhg.NetBSD.org/src/rev/fda3dc7f9d3a
branches:  trunk
changeset: 513793:fda3dc7f9d3a
user:      fredette <fredette%NetBSD.org@localhost>
date:      Tue Aug 14 03:57:16 2001 +0000

description:
Fixed a bug where we were using ETHERMIN and ETHERMTU
where we really wanted ETHER_MIN_LEN and ETHER_MAX_LEN.

diffstat:

 sys/arch/sun2/dev/if_ecreg.h |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (20 lines):

diff -r 7f969d4b6350 -r fda3dc7f9d3a sys/arch/sun2/dev/if_ecreg.h
--- a/sys/arch/sun2/dev/if_ecreg.h      Tue Aug 14 02:57:43 2001 +0000
+++ b/sys/arch/sun2/dev/if_ecreg.h      Tue Aug 14 03:57:16 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_ecreg.h,v 1.1 2001/06/27 17:24:35 fredette Exp $    */
+/*     $NetBSD: if_ecreg.h,v 1.2 2001/08/14 03:57:16 fredette Exp $    */
 
 /*
  * Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -109,7 +109,7 @@
 #define        EC_PKT_FRERR            0x0800          /* framing error */
 #define        EC_PKT_DOFF             0x07ff          /* first free byte */
 
-#define        EC_PKT_MAXTDOFF (EC_BUF_SZ-ETHERMIN)    /* max xmit doff (min size) */
+#define        EC_PKT_MAXTDOFF (EC_BUF_SZ - (ETHER_MIN_LEN - ETHER_CRC_LEN))   /* max xmit doff (min size) */
 #define        EC_PKT_RDOFF    2                       /* packet offset in buffer */
-#define        EC_PKT_MINRDOFF (EC_PKT_RDOFF+ETHERMIN) /* min packet doff (min size) */
-#define        EC_PKT_MAXRDOFF (EC_PKT_RDOFF+ETHERMTU) /* max packet doff (max size) */
+#define        EC_PKT_MINRDOFF (EC_PKT_RDOFF + (ETHER_MIN_LEN - ETHER_CRC_LEN))        /* min packet doff (min size) */
+#define        EC_PKT_MAXRDOFF (EC_PKT_RDOFF + (ETHER_MAX_LEN - ETHER_CRC_LEN))        /* max packet doff (max size) */



Home | Main Index | Thread Index | Old Index