summaryrefslogtreecommitdiffstats
path: root/src/packet.h
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2012-03-08 23:10:36 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2012-03-08 23:10:36 +0100
commit9cd196627bef8c208bf04b5be985cedc9cde23ae (patch)
treebe5b7dc0abd81b868f23c7e078886b78b629a65c /src/packet.h
parentea75116c74feec0541ba3f64a9d1d92e9d67cf2d (diff)
downloadfastd-9cd196627bef8c208bf04b5be985cedc9cde23ae.tar
fastd-9cd196627bef8c208bf04b5be985cedc9cde23ae.zip
Fix packet struct packing
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 9ae04f7..d442d18 100644
--- a/src/packet.h
+++ b/src/packet.h
@@ -55,7 +55,7 @@ typedef enum _fastd_reply_code {
} fastd_reply_code;
-typedef struct _fastd_packet {
+typedef struct __attribute__ ((__packed__)) _fastd_packet {
#if defined(__LITTLE_ENDIAN_BITFIELD)
unsigned req_id : 6;
unsigned cp : 1;