Fixed a bug where we were using ETHERMIN and ETHERMTU
where we really wanted ETHER_MIN_LEN and ETHER_MAX_LEN.
This commit is contained in:
parent
cb093d3c1d
commit
170407cf2c
|
@ -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 @@ struct ec_regs {
|
|||
#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) */
|
||||
|
|
Loading…
Reference in New Issue