From 8bff5aab5bce71b4d8b92cb9dc575054ae68b9db Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Wed, 4 Mar 2015 16:11:31 -0800 Subject: Define ETH_ALEN in generic . --- sysdeps/generic/netinet/if_ether.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sysdeps/generic') diff --git a/sysdeps/generic/netinet/if_ether.h b/sysdeps/generic/netinet/if_ether.h index 24ffd8b5ba..54dbf47ef8 100644 --- a/sysdeps/generic/netinet/if_ether.h +++ b/sysdeps/generic/netinet/if_ether.h @@ -16,17 +16,17 @@ . */ #ifndef __NETINET_IF_ETHER_H - #define __NETINET_IF_ETHER_H 1 -#include #include +#define ETH_ALEN 6 /* Octets in one ethernet address. */ + /* This is a name for the 48 bit ethernet address available on many systems. */ struct ether_addr { - u_int8_t ether_addr_octet[6]; + u_int8_t ether_addr_octet[ETH_ALEN]; } __attribute__ ((__packed__)); #endif /* netinet/if_ether.h */ -- cgit 1.4.1