]> The Tcpdump Group git mirrors - libpcap/blobdiff - linux-include/netinet/if_ether.h
use AC_DEFINE/3 to get defines into config.h.in
[libpcap] / linux-include / netinet / if_ether.h
index 4148ab83ea49d621f22c3f95751a0297ad38fa66..dd5044ab0448a2fb488b4b99c789ca09f6431369 100644 (file)
@@ -40,7 +40,7 @@
  */
 struct ether_addr {
        u_char  ether_addr_octet[6];
-};
+} __attribute__ ((packed));
 
 /*
  * Structure of a 10Mb/s Ethernet header.
@@ -49,7 +49,7 @@ struct        ether_header {
        u_char  ether_dhost[6];
        u_char  ether_shost[6];
        u_short ether_type;
-};
+} __attribute__ ((packed));
 
 #define        ETHERTYPE_PUP           0x0200  /* PUP protocol */
 #define        ETHERTYPE_IP            0x0800  /* IP protocol */
@@ -80,7 +80,7 @@ struct        ether_arp {
        u_char  arp_spa[4];     /* sender protocol address */
        u_char  arp_tha[6];     /* target hardware address */
        u_char  arp_tpa[4];     /* target protocol address */
-};
+} __attribute__ ((packed));
 #define        arp_hrd ea_hdr.ar_hrd
 #define        arp_pro ea_hdr.ar_pro
 #define        arp_hln ea_hdr.ar_hln