aboutsummaryrefslogtreecommitdiff
path: root/src/transport
diff options
context:
space:
mode:
Diffstat (limited to 'src/transport')
-rw-r--r--src/transport/gnunet-service-transport.c15
-rw-r--r--src/transport/gnunet-service-transport_ats.c34
-rw-r--r--src/transport/gnunet-service-transport_ats.h11
-rw-r--r--src/transport/gnunet-service-transport_neighbours.c10
-rw-r--r--src/transport/plugin_transport_tcp.c46
-rw-r--r--src/transport/plugin_transport_udp.c33
-rw-r--r--src/transport/plugin_transport_wlan.c41
-rw-r--r--src/transport/test_transport_api_reliability.c16
8 files changed, 68 insertions, 138 deletions
diff --git a/src/transport/gnunet-service-transport.c b/src/transport/gnunet-service-transport.c
index b21b0c384..5126dad96 100644
--- a/src/transport/gnunet-service-transport.c
+++ b/src/transport/gnunet-service-transport.c
@@ -732,15 +732,11 @@ plugin_env_session_start (void *cls,
732 session, 732 session,
733 GNUNET_i2s (&address->peer), 733 GNUNET_i2s (&address->peer),
734 GST_plugins_a2s (address)); 734 GST_plugins_a2s (address));
735 if ( (GNUNET_YES == 735 if (GNUNET_YES ==
736 GNUNET_HELLO_address_check_option (address, 736 GNUNET_HELLO_address_check_option (address,
737 GNUNET_HELLO_ADDRESS_INFO_INBOUND)) || 737 GNUNET_HELLO_ADDRESS_INFO_INBOUND))
738 (GNUNET_NO ==
739 GST_ats_is_known (address, session) ) )
740 { 738 {
741 /* inbound is always new, but outbound MAY already be known, but 739 /* inbound is always new */
742 for example for UNIX, we have symmetric connections and thus we
743 may not know the address yet; add if necessary! */
744 GST_ats_add_address (address, 740 GST_ats_add_address (address,
745 session, 741 session,
746 ats, 742 ats,
@@ -748,6 +744,7 @@ plugin_env_session_start (void *cls,
748 } 744 }
749 else 745 else
750 { 746 {
747 /* outbound should already be known */
751 GST_ats_new_session (address, 748 GST_ats_new_session (address,
752 session); 749 session);
753 GST_ats_update_metrics (address, 750 GST_ats_update_metrics (address,
@@ -926,8 +923,8 @@ shutdown_task (void *cls,
926 const struct GNUNET_SCHEDULER_TaskContext *tc) 923 const struct GNUNET_SCHEDULER_TaskContext *tc)
927{ 924{
928 GST_neighbours_stop (); 925 GST_neighbours_stop ();
929 GST_plugins_unload ();
930 GST_validation_stop (); 926 GST_validation_stop ();
927 GST_plugins_unload ();
931 GST_ats_done (); 928 GST_ats_done ();
932 GNUNET_ATS_scheduling_done (GST_ats); 929 GNUNET_ATS_scheduling_done (GST_ats);
933 GST_ats = NULL; 930 GST_ats = NULL;
diff --git a/src/transport/gnunet-service-transport_ats.c b/src/transport/gnunet-service-transport_ats.c
index a660f252f..4fcf7c9dc 100644
--- a/src/transport/gnunet-service-transport_ats.c
+++ b/src/transport/gnunet-service-transport_ats.c
@@ -108,8 +108,6 @@ find_ai_cb (void *cls,
108 fc->ret = ai; 108 fc->ret = ai;
109 return GNUNET_NO; 109 return GNUNET_NO;
110 } 110 }
111 GNUNET_assert ( (fc->session != ai->session) ||
112 (NULL == ai->session) );
113 return GNUNET_YES; 111 return GNUNET_YES;
114} 112}
115 113
@@ -140,21 +138,6 @@ find_ai (const struct GNUNET_HELLO_Address *address,
140 138
141 139
142/** 140/**
143 * Test if ATS knows about this address.
144 *
145 * @param address the address
146 * @param session the session
147 * @return #GNUNET_YES if address is known, #GNUNET_NO if not.
148 */
149int
150GST_ats_is_known (const struct GNUNET_HELLO_Address *address,
151 struct Session *session)
152{
153 return (NULL != find_ai (address, session)) ? GNUNET_YES : GNUNET_NO;
154}
155
156
157/**
158 * Notify ATS about the new address including the network this address is 141 * Notify ATS about the new address including the network this address is
159 * located in. 142 * located in.
160 * 143 *
@@ -200,7 +183,7 @@ GST_ats_add_address (const struct GNUNET_HELLO_Address *address,
200 if (NULL == (papi = GST_plugins_find (address->transport_name))) 183 if (NULL == (papi = GST_plugins_find (address->transport_name)))
201 { 184 {
202 /* we don't have the plugin for this address */ 185 /* we don't have the plugin for this address */
203 GNUNET_assert (0); 186 GNUNET_break(0);
204 return; 187 return;
205 } 188 }
206 if (NULL != session) 189 if (NULL != session)
@@ -261,12 +244,7 @@ GST_ats_new_session (const struct GNUNET_HELLO_Address *address,
261 ai = find_ai (address, NULL); 244 ai = find_ai (address, NULL);
262 if (NULL == ai) 245 if (NULL == ai)
263 { 246 {
264 /* We may already be aware of the session, even if some other part 247 GNUNET_break (NULL != (find_ai (address, session)));
265 of the code could not tell if it just created a new session or
266 just got one recycled from the plugin; hence, we may be called
267 with "new" session even for an "old" session; in that case,
268 check that this is the case, but just ignore it. */
269 GNUNET_assert (NULL != (find_ai (address, session)));
270 return; 248 return;
271 } 249 }
272 GNUNET_break (NULL == ai->session); 250 GNUNET_break (NULL == ai->session);
@@ -352,9 +330,9 @@ GST_ats_update_metrics (const struct GNUNET_HELLO_Address *address,
352 and if we get metrics for those, they were never known to 330 and if we get metrics for those, they were never known to
353 ATS which means we end up here (however, in this 331 ATS which means we end up here (however, in this
354 case, the address must be an outbound address). */ 332 case, the address must be an outbound address). */
355 GNUNET_assert (GNUNET_YES != 333 GNUNET_break (GNUNET_YES !=
356 GNUNET_HELLO_address_check_option (address, 334 GNUNET_HELLO_address_check_option (address,
357 GNUNET_HELLO_ADDRESS_INFO_INBOUND)); 335 GNUNET_HELLO_ADDRESS_INFO_INBOUND));
358 336
359 return; 337 return;
360 } 338 }
@@ -416,7 +394,7 @@ GST_ats_expire_address (const struct GNUNET_HELLO_Address *address)
416 ai = find_ai (address, NULL); 394 ai = find_ai (address, NULL);
417 if (NULL == ai) 395 if (NULL == ai)
418 { 396 {
419 GNUNET_assert (0); 397 GNUNET_break (0);
420 return; 398 return;
421 } 399 }
422 GNUNET_assert (GNUNET_YES == 400 GNUNET_assert (GNUNET_YES ==
diff --git a/src/transport/gnunet-service-transport_ats.h b/src/transport/gnunet-service-transport_ats.h
index b203cc323..b066ad74f 100644
--- a/src/transport/gnunet-service-transport_ats.h
+++ b/src/transport/gnunet-service-transport_ats.h
@@ -51,17 +51,6 @@ GST_ats_done (void);
51 51
52 52
53/** 53/**
54 * Test if ATS knows about this address.
55 *
56 * @param address the address
57 * @param session the session
58 * @return #GNUNET_YES if address is known, #GNUNET_NO if not.
59 */
60int
61GST_ats_is_known (const struct GNUNET_HELLO_Address *address,
62 struct Session *session);
63
64/**
65 * Notify ATS about the new address including the network this address is 54 * Notify ATS about the new address including the network this address is
66 * located in. 55 * located in.
67 * 56 *
diff --git a/src/transport/gnunet-service-transport_neighbours.c b/src/transport/gnunet-service-transport_neighbours.c
index e13bca139..c7459680f 100644
--- a/src/transport/gnunet-service-transport_neighbours.c
+++ b/src/transport/gnunet-service-transport_neighbours.c
@@ -800,11 +800,11 @@ set_alternative_address (struct NeighbourMapEntry *n,
800 */ 800 */
801static void 801static void
802set_primary_address (struct NeighbourMapEntry *n, 802set_primary_address (struct NeighbourMapEntry *n,
803 const struct GNUNET_HELLO_Address *address, 803 const struct GNUNET_HELLO_Address *address,
804 struct Session *session, 804 struct Session *session,
805 struct GNUNET_BANDWIDTH_Value32NBO bandwidth_in, 805 struct GNUNET_BANDWIDTH_Value32NBO bandwidth_in,
806 struct GNUNET_BANDWIDTH_Value32NBO bandwidth_out, 806 struct GNUNET_BANDWIDTH_Value32NBO bandwidth_out,
807 int is_active) 807 int is_active)
808{ 808{
809 struct GNUNET_TRANSPORT_PluginFunctions *papi; 809 struct GNUNET_TRANSPORT_PluginFunctions *papi;
810 810
diff --git a/src/transport/plugin_transport_tcp.c b/src/transport/plugin_transport_tcp.c
index 770525f21..01a4eade8 100644
--- a/src/transport/plugin_transport_tcp.c
+++ b/src/transport/plugin_transport_tcp.c
@@ -2261,9 +2261,8 @@ handle_tcp_welcome (void *cls,
2261 struct GNUNET_ATS_Information ats; 2261 struct GNUNET_ATS_Information ats;
2262 2262
2263 2263
2264 if (0 == memcmp (&wm->clientIdentity, 2264 if (0 == memcmp (&wm->clientIdentity, plugin->env->my_identity,
2265 plugin->env->my_identity, 2265 sizeof(struct GNUNET_PeerIdentity)))
2266 sizeof(struct GNUNET_PeerIdentity)))
2267 { 2266 {
2268 /* refuse connections from ourselves */ 2267 /* refuse connections from ourselves */
2269 GNUNET_SERVER_receive_done (client, GNUNET_SYSERR); 2268 GNUNET_SERVER_receive_done (client, GNUNET_SYSERR);
@@ -2278,14 +2277,10 @@ handle_tcp_welcome (void *cls,
2278 return; 2277 return;
2279 } 2278 }
2280 2279
2281 LOG(GNUNET_ERROR_TYPE_DEBUG, 2280 LOG(GNUNET_ERROR_TYPE_DEBUG, "Received %s message from `%4s' %p\n", "WELCOME",
2282 "Received %s message from `%4s' %p\n",
2283 "WELCOME",
2284 GNUNET_i2s (&wm->clientIdentity), client); 2281 GNUNET_i2s (&wm->clientIdentity), client);
2285 GNUNET_STATISTICS_update (plugin->env->stats, 2282 GNUNET_STATISTICS_update (plugin->env->stats,
2286 gettext_noop ("# TCP WELCOME messages received"), 2283 gettext_noop ("# TCP WELCOME messages received"), 1, GNUNET_NO);
2287 1,
2288 GNUNET_NO);
2289 session = lookup_session_by_client (plugin, client); 2284 session = lookup_session_by_client (plugin, client);
2290 if (NULL != session) 2285 if (NULL != session)
2291 { 2286 {
@@ -2293,9 +2288,8 @@ handle_tcp_welcome (void *cls,
2293 { 2288 {
2294 LOG (GNUNET_ERROR_TYPE_DEBUG, 2289 LOG (GNUNET_ERROR_TYPE_DEBUG,
2295 "Found existing session %p for peer `%s'\n", 2290 "Found existing session %p for peer `%s'\n",
2296 session, 2291 session, GNUNET_a2s (vaddr, alen));
2297 GNUNET_a2s (vaddr, alen)); 2292 GNUNET_free(vaddr);
2298 GNUNET_free (vaddr);
2299 } 2293 }
2300 } 2294 }
2301 else 2295 else
@@ -2343,27 +2337,23 @@ handle_tcp_welcome (void *cls,
2343 session->ats_address_network_type = plugin->env->get_address_type (plugin->env->cls, vaddr, alen); 2337 session->ats_address_network_type = plugin->env->get_address_type (plugin->env->cls, vaddr, alen);
2344 ats.type = htonl (GNUNET_ATS_NETWORK_TYPE); 2338 ats.type = htonl (GNUNET_ATS_NETWORK_TYPE);
2345 ats.value = htonl (session->ats_address_network_type); 2339 ats.value = htonl (session->ats_address_network_type);
2346 LOG (GNUNET_ERROR_TYPE_DEBUG, 2340 LOG(GNUNET_ERROR_TYPE_DEBUG,
2347 "Creating new%s session %p for peer `%s' client %p \n", 2341 "Creating new%s session %p for peer `%s' client %p \n",
2348 GNUNET_HELLO_address_check_option (session->address, 2342 GNUNET_HELLO_address_check_option (session->address,
2349 GNUNET_HELLO_ADDRESS_INFO_INBOUND) 2343 GNUNET_HELLO_ADDRESS_INFO_INBOUND)
2350 ? " inbound" : "", 2344 ? " inbound" : "",
2351 session, 2345 session,
2352 tcp_plugin_address_to_string (NULL, 2346 tcp_plugin_address_to_string(NULL, (void *) session->address->address,
2353 (void *) session->address->address, 2347 session->address->address_length),
2354 session->address->address_length), 2348 client);
2355 client); 2349 GNUNET_free(vaddr);
2356 GNUNET_free (vaddr); 2350 GNUNET_SERVER_client_set_user_context(session->client, session);
2357 GNUNET_SERVER_client_set_user_context (session->client, session);
2358 GNUNET_CONTAINER_multipeermap_put (plugin->sessionmap, 2351 GNUNET_CONTAINER_multipeermap_put (plugin->sessionmap,
2359 &session->target, 2352 &session->target,
2360 session, 2353 session,
2361 GNUNET_CONTAINER_MULTIHASHMAPOPTION_MULTIPLE); 2354 GNUNET_CONTAINER_MULTIHASHMAPOPTION_MULTIPLE);
2362 /* Notify transport and ATS about new session */ 2355 /* Notify transport and ATS about new session */
2363 plugin->env->session_start (plugin->env->cls, 2356 plugin->env->session_start (NULL, session->address, session, &ats, 1);
2364 session->address,
2365 session,
2366 &ats, 1);
2367 notify_session_monitor (plugin, 2357 notify_session_monitor (plugin,
2368 session, 2358 session,
2369 GNUNET_TRANSPORT_SS_INIT); 2359 GNUNET_TRANSPORT_SS_INIT);
diff --git a/src/transport/plugin_transport_udp.c b/src/transport/plugin_transport_udp.c
index 5b882af26..76c9dfdec 100644
--- a/src/transport/plugin_transport_udp.c
+++ b/src/transport/plugin_transport_udp.c
@@ -1327,13 +1327,10 @@ udp_disconnect_session (void *cls,
1327 struct UDP_MessageWrapper *next; 1327 struct UDP_MessageWrapper *next;
1328 struct FindReceiveContext frc; 1328 struct FindReceiveContext frc;
1329 1329
1330 GNUNET_assert (GNUNET_YES != s->in_destroy); 1330 GNUNET_assert(GNUNET_YES != s->in_destroy);
1331 LOG(GNUNET_ERROR_TYPE_DEBUG, 1331 LOG(GNUNET_ERROR_TYPE_DEBUG, "Session %p to peer `%s' address ended\n", s,
1332 "Session %p to peer `%s' address ended\n", s,
1333 GNUNET_i2s (&s->target), 1332 GNUNET_i2s (&s->target),
1334 udp_address_to_string (NULL, 1333 udp_address_to_string (NULL, s->address->address, s->address->address_length));
1335 s->address->address,
1336 s->address->address_length));
1337 /* stop timeout task */ 1334 /* stop timeout task */
1338 if (NULL != s->timeout_task) 1335 if (NULL != s->timeout_task)
1339 { 1336 {
@@ -1408,10 +1405,10 @@ udp_disconnect_session (void *cls,
1408 } 1405 }
1409 } 1406 }
1410 1407
1411 GNUNET_assert (GNUNET_YES == 1408 GNUNET_assert(GNUNET_YES ==
1412 GNUNET_CONTAINER_multipeermap_remove (plugin->sessions, 1409 GNUNET_CONTAINER_multipeermap_remove (plugin->sessions,
1413 &s->target, 1410 &s->target,
1414 s)); 1411 s));
1415 GNUNET_STATISTICS_set (plugin->env->stats, 1412 GNUNET_STATISTICS_set (plugin->env->stats,
1416 "# UDP sessions active", 1413 "# UDP sessions active",
1417 GNUNET_CONTAINER_multipeermap_size (plugin->sessions), 1414 GNUNET_CONTAINER_multipeermap_size (plugin->sessions),
@@ -2338,8 +2335,7 @@ process_udp_message (struct Plugin *plugin,
2338 address = GNUNET_HELLO_address_allocate ( &msg->sender, PLUGIN_NAME, 2335 address = GNUNET_HELLO_address_allocate ( &msg->sender, PLUGIN_NAME,
2339 arg, args, 2336 arg, args,
2340 GNUNET_HELLO_ADDRESS_INFO_INBOUND); 2337 GNUNET_HELLO_ADDRESS_INFO_INBOUND);
2341 if ( (NULL == (s = udp_plugin_lookup_session (plugin, address))) && 2338 if (NULL == (s = udp_plugin_lookup_session (plugin, address)))
2342 (GNUNET_YES != s->in_destroy) )
2343 { 2339 {
2344 s = udp_plugin_create_session (plugin, address); 2340 s = udp_plugin_create_session (plugin, address);
2345 plugin->env->session_start (NULL, address, s, NULL, 0); 2341 plugin->env->session_start (NULL, address, s, NULL, 0);
@@ -2358,12 +2354,9 @@ process_udp_message (struct Plugin *plugin,
2358 si.arg = arg; 2354 si.arg = arg;
2359 si.args = args; 2355 si.args = args;
2360 s->rc++; 2356 s->rc++;
2361 GNUNET_SERVER_mst_receive (plugin->mst, 2357 GNUNET_SERVER_mst_receive (plugin->mst, &si, (const char *) &msg[1],
2362 &si, 2358 ntohs (msg->header.size) - sizeof(struct UDPMessage), GNUNET_YES,
2363 (const char *) &msg[1], 2359 GNUNET_NO);
2364 ntohs (msg->header.size) - sizeof(struct UDPMessage),
2365 GNUNET_YES,
2366 GNUNET_NO);
2367 s->rc--; 2360 s->rc--;
2368 if ((0 == s->rc) && (GNUNET_YES == s->in_destroy)) 2361 if ((0 == s->rc) && (GNUNET_YES == s->in_destroy))
2369 free_session (s); 2362 free_session (s);
@@ -3621,12 +3614,12 @@ libgnunet_plugin_transport_udp_done (void *cls)
3621 return NULL; 3614 return NULL;
3622 } 3615 }
3623 stop_broadcast (plugin); 3616 stop_broadcast (plugin);
3624 if (plugin->select_task != NULL) 3617 if (plugin->select_task != NULL )
3625 { 3618 {
3626 GNUNET_SCHEDULER_cancel (plugin->select_task); 3619 GNUNET_SCHEDULER_cancel (plugin->select_task);
3627 plugin->select_task = NULL; 3620 plugin->select_task = NULL;
3628 } 3621 }
3629 if (plugin->select_task_v6 != NULL) 3622 if (plugin->select_task_v6 != NULL )
3630 { 3623 {
3631 GNUNET_SCHEDULER_cancel (plugin->select_task_v6); 3624 GNUNET_SCHEDULER_cancel (plugin->select_task_v6);
3632 plugin->select_task_v6 = NULL; 3625 plugin->select_task_v6 = NULL;
diff --git a/src/transport/plugin_transport_wlan.c b/src/transport/plugin_transport_wlan.c
index 51e8991b9..b0be34346 100644
--- a/src/transport/plugin_transport_wlan.c
+++ b/src/transport/plugin_transport_wlan.c
@@ -1395,6 +1395,7 @@ process_data (void *cls,
1395 struct Plugin *plugin = cls; 1395 struct Plugin *plugin = cls;
1396 struct GNUNET_HELLO_Address *address; 1396 struct GNUNET_HELLO_Address *address;
1397 struct MacAndSession *mas = client; 1397 struct MacAndSession *mas = client;
1398 struct MacAndSession xmas;
1398 struct GNUNET_ATS_Information ats; 1399 struct GNUNET_ATS_Information ats;
1399 struct FragmentMessage *fm; 1400 struct FragmentMessage *fm;
1400 struct GNUNET_PeerIdentity tmpsource; 1401 struct GNUNET_PeerIdentity tmpsource;
@@ -1447,17 +1448,6 @@ process_data (void *cls,
1447 &mas->endpoint->wlan_addr, 1448 &mas->endpoint->wlan_addr,
1448 sizeof (mas->endpoint->wlan_addr), 1449 sizeof (mas->endpoint->wlan_addr),
1449 GNUNET_HELLO_ADDRESS_INFO_INBOUND); 1450 GNUNET_HELLO_ADDRESS_INFO_INBOUND);
1450 mas->session = lookup_session (mas->endpoint,
1451 &tmpsource);
1452 if (NULL == mas->session)
1453 {
1454 mas->session = create_session (mas->endpoint,
1455 &tmpsource);
1456 plugin->env->session_start (plugin->env->cls,
1457 address,
1458 mas->session,
1459 &ats, 1);
1460 }
1461 plugin->env->receive (plugin->env->cls, 1451 plugin->env->receive (plugin->env->cls,
1462 address, 1452 address,
1463 mas->session, 1453 mas->session,
@@ -1567,34 +1557,34 @@ process_data (void *cls,
1567 GNUNET_NO); 1557 GNUNET_NO);
1568 break; 1558 break;
1569 } 1559 }
1570 mas->session = lookup_session (mas->endpoint, 1560 xmas.endpoint = mas->endpoint;
1571 &wlanheader->sender); 1561 if (NULL == (xmas.session = lookup_session (mas->endpoint,
1572 if (NULL == mas->session) 1562 &wlanheader->sender)))
1573 { 1563 {
1574 mas->session = create_session (mas->endpoint, 1564 xmas.session = create_session (mas->endpoint,
1575 &wlanheader->sender); 1565 &wlanheader->sender);
1576 address = GNUNET_HELLO_address_allocate (&wlanheader->sender, 1566 address = GNUNET_HELLO_address_allocate (&wlanheader->sender,
1577 PLUGIN_NAME, 1567 PLUGIN_NAME,
1578 &mas->endpoint->wlan_addr, 1568 &mas->endpoint->wlan_addr,
1579 sizeof (struct WlanAddress), 1569 sizeof (struct WlanAddress),
1580 GNUNET_HELLO_ADDRESS_INFO_NONE); 1570 GNUNET_HELLO_ADDRESS_INFO_NONE);
1581 plugin->env->session_start (plugin->env->cls, 1571 plugin->env->session_start (NULL,
1582 address, 1572 address,
1583 mas->session, 1573 xmas.session,
1584 NULL, 0); 1574 NULL, 0);
1585 LOG (GNUNET_ERROR_TYPE_DEBUG, 1575 LOG (GNUNET_ERROR_TYPE_DEBUG,
1586 "Notifying transport about peer `%s''s new session %p \n", 1576 "Notifying transport about peer `%s''s new session %p \n",
1587 GNUNET_i2s (&wlanheader->sender), 1577 GNUNET_i2s (&wlanheader->sender),
1588 mas->session); 1578 xmas.session);
1589 GNUNET_HELLO_address_free (address); 1579 GNUNET_HELLO_address_free (address);
1590 } 1580 }
1591 LOG (GNUNET_ERROR_TYPE_DEBUG, 1581 LOG (GNUNET_ERROR_TYPE_DEBUG,
1592 "Processing %u bytes of DATA from peer `%s'\n", 1582 "Processing %u bytes of DATA from peer `%s'\n",
1593 (unsigned int) msize, 1583 (unsigned int) msize,
1594 GNUNET_i2s (&wlanheader->sender)); 1584 GNUNET_i2s (&wlanheader->sender));
1595 mas->session->timeout = GNUNET_TIME_relative_to_absolute (GNUNET_CONSTANTS_IDLE_CONNECTION_TIMEOUT); 1585 xmas.session->timeout = GNUNET_TIME_relative_to_absolute (GNUNET_CONSTANTS_IDLE_CONNECTION_TIMEOUT);
1596 (void) GNUNET_SERVER_mst_receive (plugin->wlan_header_payload_tokenizer, 1586 (void) GNUNET_SERVER_mst_receive (plugin->wlan_header_payload_tokenizer,
1597 mas, 1587 &xmas,
1598 (const char *) &wlanheader[1], 1588 (const char *) &wlanheader[1],
1599 msize - sizeof (struct WlanHeader), 1589 msize - sizeof (struct WlanHeader),
1600 GNUNET_YES, 1590 GNUNET_YES,
@@ -2198,12 +2188,9 @@ LIBGNUNET_PLUGIN_TRANSPORT_INIT (void *cls)
2198 GNUNET_BANDWIDTH_value_init (100 * 1024 * 2188 GNUNET_BANDWIDTH_value_init (100 * 1024 *
2199 1024 / 8), 2189 1024 / 8),
2200 100); 2190 100);
2201 plugin->fragment_data_tokenizer = GNUNET_SERVER_mst_create (&process_data, 2191 plugin->fragment_data_tokenizer = GNUNET_SERVER_mst_create (&process_data, plugin);
2202 plugin); 2192 plugin->wlan_header_payload_tokenizer = GNUNET_SERVER_mst_create (&process_data, plugin);
2203 plugin->wlan_header_payload_tokenizer = GNUNET_SERVER_mst_create (&process_data, 2193 plugin->helper_payload_tokenizer = GNUNET_SERVER_mst_create (&process_data, plugin);
2204 plugin);
2205 plugin->helper_payload_tokenizer = GNUNET_SERVER_mst_create (&process_data,
2206 plugin);
2207 plugin->beacon_task = GNUNET_SCHEDULER_add_now (&send_hello_beacon, 2194 plugin->beacon_task = GNUNET_SCHEDULER_add_now (&send_hello_beacon,
2208 plugin); 2195 plugin);
2209 2196
diff --git a/src/transport/test_transport_api_reliability.c b/src/transport/test_transport_api_reliability.c
index 903e6efdc..a727d3e6a 100644
--- a/src/transport/test_transport_api_reliability.c
+++ b/src/transport/test_transport_api_reliability.c
@@ -87,22 +87,22 @@ static int ok;
87/** 87/**
88 * Context of peer 1 88 * Context of peer 1
89 */ 89 */
90static struct PeerContext *p1; 90struct PeerContext *p1;
91 91
92/** 92/**
93 * Configuration file of peer 1 93 * Configuration file of peer 1
94 */ 94 */
95static char *cfg_file_p1; 95char *cfg_file_p1;
96 96
97/** 97/**
98 * Context of peer 2 98 * Context of peer 2
99 */ 99 */
100static struct PeerContext *p2; 100struct PeerContext *p2;
101 101
102/** 102/**
103 * Configuration file of peer 1 103 * Configuration file of peer 1
104 */ 104 */
105static char *cfg_file_p2; 105char *cfg_file_p2;
106 106
107/** 107/**
108 * Timeout task 108 * Timeout task
@@ -112,12 +112,12 @@ static struct GNUNET_SCHEDULER_Task * die_task;
112/** 112/**
113 * Transport transmit handle used 113 * Transport transmit handle used
114 */ 114 */
115static struct GNUNET_TRANSPORT_TransmitHandle *th; 115struct GNUNET_TRANSPORT_TransmitHandle *th;
116 116
117/** 117/**
118 * Transport testing handle 118 * Transport testing handle
119 */ 119 */
120static struct GNUNET_TRANSPORT_TESTING_handle *tth; 120struct GNUNET_TRANSPORT_TESTING_handle *tth;
121 121
122/* 122/*
123 * Total amount of bytes sent 123 * Total amount of bytes sent
@@ -145,9 +145,7 @@ static int msg_sent;
145static int msg_recv; 145static int msg_recv;
146 146
147static int test_connected; 147static int test_connected;
148
149static int test_sending; 148static int test_sending;
150
151static int test_send_timeout; 149static int test_send_timeout;
152 150
153 151
@@ -169,11 +167,9 @@ static GNUNET_TRANSPORT_TESTING_ConnectRequest cc;
169#define OKPP do { ok++; } while (0) 167#define OKPP do { ok++; } while (0)
170#endif 168#endif
171 169
172
173static int 170static int
174get_bit (const char *map, unsigned int bit); 171get_bit (const char *map, unsigned int bit);
175 172
176
177static void 173static void
178end () 174end ()
179{ 175{