aboutsummaryrefslogtreecommitdiff
path: root/src/transport/plugin_transport_wlan.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/transport/plugin_transport_wlan.c')
-rw-r--r--src/transport/plugin_transport_wlan.c30
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 */
406struct 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.