diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2011-05-18 09:50:32 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2011-05-18 09:50:32 +0000 |
commit | 21bb30f3835f38bcb77fa5cb161e3454f5fff800 (patch) | |
tree | dba93ad61087864774f6cfa2cc238c32a331155e /src/transport/plugin_transport_wlan.c | |
parent | eb9ae4e51ff62fbb51b325fbf321aac859500586 (diff) | |
download | gnunet-21bb30f3835f38bcb77fa5cb161e3454f5fff800.tar.gz gnunet-21bb30f3835f38bcb77fa5cb161e3454f5fff800.zip |
Diffstat (limited to 'src/transport/plugin_transport_wlan.c')
-rw-r--r-- | src/transport/plugin_transport_wlan.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/src/transport/plugin_transport_wlan.c b/src/transport/plugin_transport_wlan.c index d98dc9dc8..26eda2b97 100644 --- a/src/transport/plugin_transport_wlan.c +++ b/src/transport/plugin_transport_wlan.c | |||
@@ -60,7 +60,7 @@ | |||
60 | 60 | ||
61 | #define HALLO_BEACON_SCALING_FACTOR 900 | 61 | #define HALLO_BEACON_SCALING_FACTOR 900 |
62 | 62 | ||
63 | #define DEBUG_wlan GNUNET_NO | 63 | #define DEBUG_wlan GNUNET_YES |
64 | #define DEBUG_wlan_retransmission GNUNET_NO | 64 | #define DEBUG_wlan_retransmission GNUNET_NO |
65 | 65 | ||
66 | #define MESSAGE_LENGHT_UNKNOWN -1 | 66 | #define MESSAGE_LENGHT_UNKNOWN -1 |
@@ -2043,10 +2043,7 @@ static int | |||
2043 | is_double_msg(struct Receive_Message_Queue * rx_msg, | 2043 | is_double_msg(struct Receive_Message_Queue * rx_msg, |
2044 | struct FragmentationHeader * fh) | 2044 | struct FragmentationHeader * fh) |
2045 | { | 2045 | { |
2046 | //test if bitfield is okay | 2046 | |
2047 | #if DEBUG_wlan | ||
2048 | check_message_fragment_bitfield(rx_msg); | ||
2049 | #endif | ||
2050 | 2047 | ||
2051 | return testBit((char *) &rx_msg->received_fragments, ntohs( | 2048 | return testBit((char *) &rx_msg->received_fragments, ntohs( |
2052 | fh->fragment_off_or_num)); | 2049 | fh->fragment_off_or_num)); |
@@ -2257,10 +2254,6 @@ check_rx_finished_msg(struct Plugin* plugin, | |||
2257 | return; | 2254 | return; |
2258 | } | 2255 | } |
2259 | 2256 | ||
2260 | #if DEBUG_wlan | ||
2261 | check_message_fragment_bitfield(rx_message); | ||
2262 | #endif | ||
2263 | |||
2264 | // if (rx_message->frag_tail->num == ffsl(rx_message->received_fragments)) | 2257 | // if (rx_message->frag_tail->num == ffsl(rx_message->received_fragments)) |
2265 | // { | 2258 | // { |
2266 | bitfield = ~bitfield; | 2259 | bitfield = ~bitfield; |