diff options
author | Ulrich Drepper <drepper@redhat.com> | 2001-09-14 13:03:53 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2001-09-14 13:03:53 +0000 |
commit | 4707d46c98af43a0ccb9dc153dede58922746f22 (patch) | |
tree | 637094d1c2401b00f25d91af0f18e244a11af95b /sysdeps/unix/sysv/linux/net | |
parent | 66f05d2210fbf0c0bd16dc2cc7e1bfaca4a384c7 (diff) | |
download | glibc-4707d46c98af43a0ccb9dc153dede58922746f22.tar.gz glibc-4707d46c98af43a0ccb9dc153dede58922746f22.tar.xz glibc-4707d46c98af43a0ccb9dc153dede58922746f22.zip |
Correct references to ETHER_CRC_LEN.
Diffstat (limited to 'sysdeps/unix/sysv/linux/net')
-rw-r--r-- | sysdeps/unix/sysv/linux/net/ethernet.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sysdeps/unix/sysv/linux/net/ethernet.h b/sysdeps/unix/sysv/linux/net/ethernet.h index ae7b784602..7ca8e8348e 100644 --- a/sysdeps/unix/sysv/linux/net/ethernet.h +++ b/sysdeps/unix/sysv/linux/net/ethernet.h @@ -1,4 +1,4 @@ -/* Copyright (C) 1997, 1999 Free Software Foundation, Inc. +/* Copyright (C) 1997, 1999, 2001 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -53,8 +53,8 @@ struct ether_header #define ETHER_TYPE_LEN 2 /* bytes in type field */ #define ETHER_CRC_LEN 4 /* bytes in CRC field */ #define ETHER_HDR_LEN ETH_HLEN /* total octets in header */ -#define ETHER_MIN_LEN (ETH_ZLEN + ETH_CRC_LEN) /* min packet length */ -#define ETHER_MAX_LEN (ETH_FRAME_LEN + ETH_CRC_LEN) /* max packet length */ +#define ETHER_MIN_LEN (ETH_ZLEN + ETHER_CRC_LEN) /* min packet length */ +#define ETHER_MAX_LEN (ETH_FRAME_LEN + ETHER_CRC_LEN) /* max packet length */ /* make sure ethenet length is valid */ #define ETHER_IS_VALID_LEN(foo) \ @@ -69,8 +69,8 @@ struct ether_header #define ETHERTYPE_NTRAILER 16 #define ETHERMTU ETH_DATA_LEN -#define ETHERMIN (ETHER_MIN_LEN-ETHER_HDR_LEN-ETHER_CRC_LEN) +#define ETHERMIN (ETHER_MIN_LEN - ETHER_HDR_LEN - ETHER_CRC_LEN) __END_DECLS -#endif /* net/ethernet.h */ +#endif /* net/ethernet.h */ |