bug-glibc
[Top][All Lists]
Advanced

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

sysdeps/unix/sysv/linux/net/ethernet.h


From: Bjoern A. Zeeb
Subject: sysdeps/unix/sysv/linux/net/ethernet.h
Date: Sat, 23 Jun 2001 12:20:39 +0200 (CEST)

Hi,

please cc: me because I'm not subscribed to the list. Thanks in advance.

I think sysdeps/unix/sysv/linux/net/ethernet.h contains a small
bug (see patch below).
ETH_CRC_LEN does not seem to be defined anywhere.

Same thing could be in sysdeps/mach/hurd/net/ethernet.h but I cannot
verify if it's defined somewhere in hurd.

-- 
Happy weekend.

Bjoern A. Zeeb                          bzeeb at Zabbadoz dot NeT
56 69 73 69 74                          http://www.zabbadoz.net/

--- snipp ---
--- ./glibc-2.2.3/sysdeps/unix/sysv/linux/net/ethernet.h.orig   Sat Jun 23 
11:55:53 2001
+++ ./glibc-2.2.3/sysdeps/unix/sysv/linux/net/ethernet.h        Sat Jun 23 
12:03:57 2001
@@ -53,8 +53,8 @@
 #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) \
--- snipp ---





reply via email to

[Prev in Thread] Current Thread [Next in Thread]