X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/f555c163f90c9de17ebcef8313f86404c5174ca9..f0d4fb1e2fa6cc9e81e9c65a1a433951e54bb8ed:/linux-include/netinet/if_ether.h 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; };