diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2012-09-15 03:52:08 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2012-09-15 03:52:08 +0200 |
commit | 430a8557d4421f41fbf834909f7598cfc64e3311 (patch) | |
tree | da2fa7c3e1ac3e9d41626c873f5549b07b1414b4 /src/packet.h | |
parent | 3b67cdb32fd2b8272a50f803f92311bcc556b7ba (diff) | |
download | fastd-430a8557d4421f41fbf834909f7598cfc64e3311.tar fastd-430a8557d4421f41fbf834909f7598cfc64e3311.zip |
Improve data alignment
Ensure that the actual packet data is always aligned to a multiple of 8.
Diffstat (limited to 'src/packet.h')
-rw-r--r-- | src/packet.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/packet.h b/src/packet.h index 210955d..16c37ce 100644 --- a/src/packet.h +++ b/src/packet.h @@ -30,6 +30,9 @@ #include <stdint.h> +#define PACKET_TYPE_LEN 1 + + typedef enum _fastd_packet_type { PACKET_UNKNOWN = 0, PACKET_HANDSHAKE, |