summaryrefslogtreecommitdiffstats
path: root/src/packet.h
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2013-04-22 14:08:33 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2013-04-22 14:08:33 +0200
commitadaedb9299c77e18150b685a96d51b1ce67ec423 (patch)
treeedf42edefb24dcace8a133bcf85220de8f007600 /src/packet.h
parent7b8a9acd7a3a31f5d393c1632d68379f8353e7d1 (diff)
downloadfastd-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.h2
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[];