| 1 | --- a/ether.h |
| 2 | +++ b/ether.h |
| 3 | @@ -12,7 +12,7 @@ struct ether_header { |
| 4 | u_int8_t ether_dhost[ETHER_ADDR_LEN]; |
| 5 | u_int8_t ether_shost[ETHER_ADDR_LEN]; |
| 6 | u_int16_t ether_type; |
| 7 | -}; |
| 8 | +} __attribute__((packed)); |
| 9 | |
| 10 | struct vlan_8021q_header { |
| 11 | u_int16_t priority_cfi_vid; |
| 12 | |