diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2013-04-22 14:08:33 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2013-04-22 14:08:33 +0200 |
commit | adaedb9299c77e18150b685a96d51b1ce67ec423 (patch) | |
tree | edf42edefb24dcace8a133bcf85220de8f007600 /src/packet.h | |
parent | 7b8a9acd7a3a31f5d393c1632d68379f8353e7d1 (diff) | |
download | fastd-adaedb9299c77e18150b685a96d51b1ce67ec423.tar fastd-adaedb9299c77e18150b685a96d51b1ce67ec423.zip |
Miscellaneous fixes in ethernet address handling
Check the length of ethernet frames, and the fastd_eth_addr_t structure must be
packed.
Diffstat (limited to 'src/packet.h')
-rw-r--r-- | src/packet.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/packet.h b/src/packet.h index d547b0e..01f77fb 100644 --- a/src/packet.h +++ b/src/packet.h @@ -39,7 +39,7 @@ typedef enum fastd_packet_type { PACKET_DATA, } fastd_packet_type_t; -typedef struct __attribute__ ((__packed__)) fastd_packet { +typedef struct __attribute__((__packed__)) fastd_packet { uint8_t rsv1; uint16_t rsv2; uint8_t tlv_data[]; |