diff options
author | Philipp Tölke <toelke@in.tum.de> | 2011-08-10 07:56:16 +0000 |
---|---|---|
committer | Philipp Tölke <toelke@in.tum.de> | 2011-08-10 07:56:16 +0000 |
commit | 2ca5a371ce5b8605bfd579e59c3ed8da493262ac (patch) | |
tree | 17b7ada13555292bdee4737df91127780fc4e1f9 /src/transport/plugin_transport_wlan.c | |
parent | 0161f8866803dea997e6551eb5037bde8e927306 (diff) | |
download | gnunet-2ca5a371ce5b8605bfd579e59c3ed8da493262ac.tar.gz gnunet-2ca5a371ce5b8605bfd579e59c3ed8da493262ac.zip |
cast
Diffstat (limited to 'src/transport/plugin_transport_wlan.c')
-rw-r--r-- | src/transport/plugin_transport_wlan.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/transport/plugin_transport_wlan.c b/src/transport/plugin_transport_wlan.c index 2f32b53c2..80b6f2d6f 100644 --- a/src/transport/plugin_transport_wlan.c +++ b/src/transport/plugin_transport_wlan.c | |||
@@ -1356,7 +1356,7 @@ send_hello_beacon(struct Plugin * plugin) | |||
1356 | const struct GNUNET_MessageHeader *hello; | 1356 | const struct GNUNET_MessageHeader *hello; |
1357 | 1357 | ||
1358 | hello = plugin->env->get_our_hello (); | 1358 | hello = plugin->env->get_our_hello (); |
1359 | hallo_size = GNUNET_HELLO_size(hello); | 1359 | hallo_size = GNUNET_HELLO_size((struct GNUNET_HELLO_Message*)hello); |
1360 | GNUNET_assert(sizeof(struct WlanHeader) + hallo_size <= WLAN_MTU); | 1360 | GNUNET_assert(sizeof(struct WlanHeader) + hallo_size <= WLAN_MTU); |
1361 | size = sizeof(struct GNUNET_MessageHeader) + sizeof(struct Radiotap_Send) | 1361 | size = sizeof(struct GNUNET_MessageHeader) + sizeof(struct Radiotap_Send) |
1362 | + sizeof(struct ieee80211_frame) + sizeof(struct GNUNET_MessageHeader) | 1362 | + sizeof(struct ieee80211_frame) + sizeof(struct GNUNET_MessageHeader) |
@@ -1372,7 +1372,7 @@ send_hello_beacon(struct Plugin * plugin) | |||
1372 | getWlanHeader(ieeewlanheader, &bc_all_mac, plugin, size); | 1372 | getWlanHeader(ieeewlanheader, &bc_all_mac, plugin, size); |
1373 | 1373 | ||
1374 | msgheader2 = (struct GNUNET_MessageHeader*) &ieeewlanheader[1]; | 1374 | msgheader2 = (struct GNUNET_MessageHeader*) &ieeewlanheader[1]; |
1375 | msgheader2->size = htons(GNUNET_HELLO_size(hello) | 1375 | msgheader2->size = htons(GNUNET_HELLO_size((struct GNUNET_HELLO_Message*)hello) |
1376 | + sizeof(struct GNUNET_MessageHeader)); | 1376 | + sizeof(struct GNUNET_MessageHeader)); |
1377 | 1377 | ||
1378 | msgheader2->type = htons(GNUNET_MESSAGE_TYPE_WLAN_ADVERTISEMENT); | 1378 | msgheader2->type = htons(GNUNET_MESSAGE_TYPE_WLAN_ADVERTISEMENT); |