]> The Tcpdump Group git mirrors - tcpdump/commitdiff
(ETHER_ADDR_LEN): add
authorassar <assar>
Sun, 21 Nov 1999 04:05:08 +0000 (04:05 +0000)
committerassar <assar>
Sun, 21 Nov 1999 04:05:08 +0000 (04:05 +0000)
linux-include/netinet/if_ether.h

index 4148ab83ea49d621f22c3f95751a0297ad38fa66..98545adc6576d9a1f1f634aeae452c744b27ef45 100644 (file)
 
 #include <net/if_arp.h>
 
+/*
+ * 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;
 };