diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-01-30 12:31:32 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-01-30 12:31:32 +0000 |
commit | 90f58ddd04c673a34e1e817f1ba0a83241eb78a8 (patch) | |
tree | 5ad9ec3579391dd1e2c8dfa6c83ed1ab4d13499d /src/include/gnunet_tun_lib.h | |
parent | 5cc2c89cdcb6d8fb2b848f61e3caf001dfd40fb4 (diff) | |
download | gnunet-90f58ddd04c673a34e1e817f1ba0a83241eb78a8.tar.gz gnunet-90f58ddd04c673a34e1e817f1ba0a83241eb78a8.zip |
-adding a few more packed statments
Diffstat (limited to 'src/include/gnunet_tun_lib.h')
-rw-r--r-- | src/include/gnunet_tun_lib.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/include/gnunet_tun_lib.h b/src/include/gnunet_tun_lib.h index 2a66b67e7..61eb86389 100644 --- a/src/include/gnunet_tun_lib.h +++ b/src/include/gnunet_tun_lib.h | |||
@@ -56,12 +56,12 @@ struct GNUNET_TUN_Layer2PacketHeader | |||
56 | /** | 56 | /** |
57 | * Some flags (unused). | 57 | * Some flags (unused). |
58 | */ | 58 | */ |
59 | uint16_t flags; | 59 | uint16_t flags GNUNET_PACKED; |
60 | 60 | ||
61 | /** | 61 | /** |
62 | * Here we get an ETH_P_-number. | 62 | * Here we get an ETH_P_-number. |
63 | */ | 63 | */ |
64 | uint16_t proto; | 64 | uint16_t proto GNUNET_PACKED; |
65 | }; | 65 | }; |
66 | 66 | ||
67 | 67 | ||
@@ -179,35 +179,35 @@ struct GNUNET_TUN_DnsHeader | |||
179 | struct GNUNET_TUN_IcmpHeader { | 179 | struct GNUNET_TUN_IcmpHeader { |
180 | uint8_t type; | 180 | uint8_t type; |
181 | uint8_t code; | 181 | uint8_t code; |
182 | uint16_t crc; | 182 | uint16_t crc GNUNET_PACKED; |
183 | 183 | ||
184 | union { | 184 | union { |
185 | /** | 185 | /** |
186 | * ICMP Echo (request/reply) | 186 | * ICMP Echo (request/reply) |
187 | */ | 187 | */ |
188 | struct { | 188 | struct { |
189 | uint16_t identifier; | 189 | uint16_t identifier GNUNET_PACKED; |
190 | uint16_t sequence_number; | 190 | uint16_t sequence_number GNUNET_PACKED; |
191 | } echo; | 191 | } echo; |
192 | 192 | ||
193 | /** | 193 | /** |
194 | * ICMP Destination Unreachable (RFC 1191) | 194 | * ICMP Destination Unreachable (RFC 1191) |
195 | */ | 195 | */ |
196 | struct ih_pmtu { | 196 | struct ih_pmtu { |
197 | uint16_t empty; | 197 | uint16_t empty GNUNET_PACKED; |
198 | uint16_t next_hop_mtu; | 198 | uint16_t next_hop_mtu GNUNET_PACKED; |
199 | /* followed by original IP header + first 8 bytes of original IP datagram */ | 199 | /* followed by original IP header + first 8 bytes of original IP datagram */ |
200 | } destination_unreachable; | 200 | } destination_unreachable; |
201 | 201 | ||
202 | /** | 202 | /** |
203 | * ICMP Redirect | 203 | * ICMP Redirect |
204 | */ | 204 | */ |
205 | struct in_addr redirect_gateway_address; | 205 | struct in_addr redirect_gateway_address GNUNET_PACKED; |
206 | 206 | ||
207 | /** | 207 | /** |
208 | * MTU for packets that are too big (IPv6). | 208 | * MTU for packets that are too big (IPv6). |
209 | */ | 209 | */ |
210 | uint32_t packet_too_big_mtu; | 210 | uint32_t packet_too_big_mtu GNUNET_PACKED; |
211 | 211 | ||
212 | } quench; | 212 | } quench; |
213 | 213 | ||