]> The Tcpdump Group git mirrors - tcpdump/blobdiff - linux-include/netinet/if_ether.h
Move AFS info into man page
[tcpdump] / linux-include / netinet / if_ether.h
index 4148ab83ea49d621f22c3f95751a0297ad38fa66..f99e9ccda3c3e14e173f651209926db6c2258964 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;
 };
 
@@ -55,6 +60,7 @@ struct        ether_header {
 #define        ETHERTYPE_IP            0x0800  /* IP protocol */
 #define ETHERTYPE_ARP          0x0806  /* Addr. resolution protocol */
 #define ETHERTYPE_REVARP       0x8035  /* reverse Addr. resolution protocol */
+#define ETHERTYPE_IPV6         0x86dd  /* IPv6 */
 
 /*
  * The ETHERTYPE_NTRAILER packet types starting at ETHERTYPE_TRAIL have