X-Git-Url: https://git.tcpdump.org/libpcap/blobdiff_plain/b11ddf8a9b0d30bf759abf01afcf2894e79857b1..ca9f99af45f80ccba087f942b5d30a8216a2ef03:/linux-include/netinet/if_ether.h?ds=sidebyside diff --git a/linux-include/netinet/if_ether.h b/linux-include/netinet/if_ether.h index 4148ab83..dd5044ab 100644 --- a/linux-include/netinet/if_ether.h +++ b/linux-include/netinet/if_ether.h @@ -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