summaryrefslogtreecommitdiffstats
path: root/src/fastd.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/fastd.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/fastd.h')
-rw-r--r--src/fastd.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fastd.h b/src/fastd.h
index 06723a8..d015484 100644
--- a/src/fastd.h
+++ b/src/fastd.h
@@ -59,7 +59,7 @@ struct fastd_buffer {
size_t len;
};
-struct fastd_eth_addr {
+struct __attribute__((__packed__)) fastd_eth_addr {
uint8_t data[ETH_ALEN];
};