--- a/ether.h +++ b/ether.h @@ -12,7 +12,7 @@ struct ether_header { u_int8_t ether_dhost[ETHER_ADDR_LEN]; u_int8_t ether_shost[ETHER_ADDR_LEN]; u_int16_t ether_type; -}; +} __attribute__((packed)); struct vlan_8021q_header { u_int16_t priority_cfi_vid;