From: assar Date: Sun, 21 Nov 1999 04:05:08 +0000 (+0000) Subject: (ETHER_ADDR_LEN): add X-Git-Tag: tcpdump-3.5.1~493 X-Git-Url: https://git.tcpdump.org/tcpdump/commitdiff_plain/9ac34e10343cd1cd4d6f465dc47241f5ba0e457e (ETHER_ADDR_LEN): add --- diff --git a/linux-include/netinet/if_ether.h b/linux-include/netinet/if_ether.h index 4148ab83..98545adc 100644 --- a/linux-include/netinet/if_ether.h +++ b/linux-include/netinet/if_ether.h @@ -35,19 +35,24 @@ #include +/* + * The number of bytes in an ethernet (MAC) address. + */ +#define ETHER_ADDR_LEN 6 + /* * Ethernet address - 6 octets */ struct ether_addr { - u_char ether_addr_octet[6]; + u_char ether_addr_octet[ETHER_ADDR_LEN]; }; /* * Structure of a 10Mb/s Ethernet header. */ struct ether_header { - u_char ether_dhost[6]; - u_char ether_shost[6]; + u_char ether_dhost[ETHER_ADDR_LEN]; + u_char ether_shost[ETHER_ADDR_LEN]; u_short ether_type; };