diff options
Diffstat (limited to 'src/fragmentation/fragmentation.h')
-rw-r--r-- | src/fragmentation/fragmentation.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/fragmentation/fragmentation.h b/src/fragmentation/fragmentation.h index 5a75e988b..f585eb46b 100644 --- a/src/fragmentation/fragmentation.h +++ b/src/fragmentation/fragmentation.h | |||
@@ -44,18 +44,18 @@ struct FragmentHeader | |||
44 | /** | 44 | /** |
45 | * Unique fragment ID. | 45 | * Unique fragment ID. |
46 | */ | 46 | */ |
47 | uint32_t fragment_id; | 47 | uint32_t fragment_id GNUNET_PACKED; |
48 | 48 | ||
49 | /** | 49 | /** |
50 | * Total message size of the original message. | 50 | * Total message size of the original message. |
51 | */ | 51 | */ |
52 | uint16_t total_size; | 52 | uint16_t total_size GNUNET_PACKED; |
53 | 53 | ||
54 | /** | 54 | /** |
55 | * Absolute offset (in bytes) of this fragment in the original | 55 | * Absolute offset (in bytes) of this fragment in the original |
56 | * message. Will be a multiple of the MTU. | 56 | * message. Will be a multiple of the MTU. |
57 | */ | 57 | */ |
58 | uint16_t offset; | 58 | uint16_t offset GNUNET_PACKED; |
59 | 59 | ||
60 | }; | 60 | }; |
61 | 61 | ||
@@ -74,14 +74,14 @@ struct FragmentAcknowledgement | |||
74 | /** | 74 | /** |
75 | * Unique fragment ID. | 75 | * Unique fragment ID. |
76 | */ | 76 | */ |
77 | uint32_t fragment_id; | 77 | uint32_t fragment_id GNUNET_PACKED; |
78 | 78 | ||
79 | /** | 79 | /** |
80 | * Bits that are being acknowledged, in big-endian. | 80 | * Bits that are being acknowledged, in big-endian. |
81 | * (bits that are set correspond to fragments that | 81 | * (bits that are set correspond to fragments that |
82 | * have not yet been received). | 82 | * have not yet been received). |
83 | */ | 83 | */ |
84 | uint64_t bits; | 84 | uint64_t bits GNUNET_PACKED; |
85 | 85 | ||
86 | }; | 86 | }; |
87 | GNUNET_NETWORK_STRUCT_END | 87 | GNUNET_NETWORK_STRUCT_END |