diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-12-11 15:10:48 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-12-11 15:10:48 +0000 |
commit | f8ae79bdfd193320a1db1ff3ead82c5e19d5d4e6 (patch) | |
tree | 12acf2d9d90bc5c855b7ad0ef901e1dc44a91808 /src/transport/plugin_transport_wlan.c | |
parent | cea4dcd2549e3cec42c57e741f650578e7a039c9 (diff) | |
download | gnunet-f8ae79bdfd193320a1db1ff3ead82c5e19d5d4e6.tar.gz gnunet-f8ae79bdfd193320a1db1ff3ead82c5e19d5d4e6.zip |
-careful WLAN code cleanup
Diffstat (limited to 'src/transport/plugin_transport_wlan.c')
-rw-r--r-- | src/transport/plugin_transport_wlan.c | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/transport/plugin_transport_wlan.c b/src/transport/plugin_transport_wlan.c index b5961ae38..e2af0da36 100644 --- a/src/transport/plugin_transport_wlan.c +++ b/src/transport/plugin_transport_wlan.c | |||
@@ -399,6 +399,36 @@ struct Plugin_Session_pair | |||
399 | struct Session *session; | 399 | struct Session *session; |
400 | }; | 400 | }; |
401 | 401 | ||
402 | |||
403 | /** | ||
404 | * Header for messages which need fragmentation | ||
405 | */ | ||
406 | struct WlanHeader | ||
407 | { | ||
408 | |||
409 | struct GNUNET_MessageHeader header; | ||
410 | |||
411 | /** | ||
412 | * checksum/error correction | ||
413 | */ | ||
414 | uint32_t crc GNUNET_PACKED; | ||
415 | |||
416 | /** | ||
417 | * To whom are we talking to (set to our identity | ||
418 | * if we are still waiting for the welcome message) | ||
419 | */ | ||
420 | struct GNUNET_PeerIdentity target; | ||
421 | |||
422 | /** | ||
423 | * Where the packet came from | ||
424 | */ | ||
425 | struct GNUNET_PeerIdentity source; | ||
426 | |||
427 | // followed by payload | ||
428 | |||
429 | }; | ||
430 | |||
431 | |||
402 | /** | 432 | /** |
403 | * Information kept for each message that is yet to | 433 | * Information kept for each message that is yet to |
404 | * be transmitted. | 434 | * be transmitted. |