diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-07-18 00:44:39 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-07-18 00:44:39 +0200 |
commit | 7f4ddbcab8598e3d5e29c23ce883cdfa664408f1 (patch) | |
tree | 5f1b18463f641f24fad519e0aefb60b97d707b52 /src/transport | |
parent | 28ab2c446fba4980a8295d59fdf203a028a35dd6 (diff) | |
download | gnunet-7f4ddbcab8598e3d5e29c23ce883cdfa664408f1.tar.gz gnunet-7f4ddbcab8598e3d5e29c23ce883cdfa664408f1.zip |
merge flags into enum for GNUNET_DISK_pipe() API, fixing #6188
Diffstat (limited to 'src/transport')
-rw-r--r-- | src/transport/gnunet-communicator-tcp.c | 19 | ||||
-rw-r--r-- | src/transport/gnunet-communicator-udp.c | 3 | ||||
-rw-r--r-- | src/transport/gnunet-communicator-unix.c | 5 | ||||
-rw-r--r-- | src/transport/plugin_transport_smtp.c | 6 | ||||
-rw-r--r-- | src/transport/test_communicator_basic.c | 54 | ||||
-rw-r--r-- | src/transport/transport-testing2.c | 28 | ||||
-rw-r--r-- | src/transport/transport.h | 1 | ||||
-rw-r--r-- | src/transport/transport_api2_communication.c | 3 |
8 files changed, 68 insertions, 51 deletions
diff --git a/src/transport/gnunet-communicator-tcp.c b/src/transport/gnunet-communicator-tcp.c index e25cdf139..177b5c26c 100644 --- a/src/transport/gnunet-communicator-tcp.c +++ b/src/transport/gnunet-communicator-tcp.c | |||
@@ -577,7 +577,6 @@ struct Addresses | |||
577 | }; | 577 | }; |
578 | 578 | ||
579 | 579 | ||
580 | |||
581 | /** | 580 | /** |
582 | * Maximum queue length before we stop reading towards the transport service. | 581 | * Maximum queue length before we stop reading towards the transport service. |
583 | */ | 582 | */ |
@@ -1203,6 +1202,7 @@ queue_read (void *cls) | |||
1203 | queue_finish (queue); | 1202 | queue_finish (queue); |
1204 | } | 1203 | } |
1205 | 1204 | ||
1205 | |||
1206 | /** | 1206 | /** |
1207 | * Convert a `struct sockaddr_in6 to a `struct sockaddr *` | 1207 | * Convert a `struct sockaddr_in6 to a `struct sockaddr *` |
1208 | * | 1208 | * |
@@ -1234,6 +1234,7 @@ tcp_address_to_sockaddr_numeric_v6 (socklen_t *sock_len, struct sockaddr_in6 v6, | |||
1234 | return in; | 1234 | return in; |
1235 | } | 1235 | } |
1236 | 1236 | ||
1237 | |||
1237 | /** | 1238 | /** |
1238 | * Convert a `struct sockaddr_in4 to a `struct sockaddr *` | 1239 | * Convert a `struct sockaddr_in4 to a `struct sockaddr *` |
1239 | * | 1240 | * |
@@ -1257,6 +1258,7 @@ tcp_address_to_sockaddr_numeric_v4 (socklen_t *sock_len, struct sockaddr_in v4, | |||
1257 | return in; | 1258 | return in; |
1258 | } | 1259 | } |
1259 | 1260 | ||
1261 | |||
1260 | /** | 1262 | /** |
1261 | * Convert TCP bind specification to a `struct PortOnlyIpv4Ipv6 *` | 1263 | * Convert TCP bind specification to a `struct PortOnlyIpv4Ipv6 *` |
1262 | * | 1264 | * |
@@ -1318,6 +1320,7 @@ tcp_address_to_sockaddr_port_only (const char *bindto, unsigned int *port) | |||
1318 | return po; | 1320 | return po; |
1319 | } | 1321 | } |
1320 | 1322 | ||
1323 | |||
1321 | /** | 1324 | /** |
1322 | * This Method extracts the address part of the BINDTO string. | 1325 | * This Method extracts the address part of the BINDTO string. |
1323 | * | 1326 | * |
@@ -1344,7 +1347,8 @@ extract_address (const char *bindto) | |||
1344 | start++; /* skip over '['*/ | 1347 | start++; /* skip over '['*/ |
1345 | cp[strlen (cp) - 1] = '\0'; /* eat ']'*/ | 1348 | cp[strlen (cp) - 1] = '\0'; /* eat ']'*/ |
1346 | } | 1349 | } |
1347 | else { | 1350 | else |
1351 | { | ||
1348 | token = strtok_r (cp, "]", &rest); | 1352 | token = strtok_r (cp, "]", &rest); |
1349 | if (strlen (bindto) == strlen (token)) | 1353 | if (strlen (bindto) == strlen (token)) |
1350 | { | 1354 | { |
@@ -1362,6 +1366,7 @@ extract_address (const char *bindto) | |||
1362 | return start; | 1366 | return start; |
1363 | } | 1367 | } |
1364 | 1368 | ||
1369 | |||
1365 | /** | 1370 | /** |
1366 | * This Method extracts the port part of the BINDTO string. | 1371 | * This Method extracts the port part of the BINDTO string. |
1367 | * | 1372 | * |
@@ -1440,6 +1445,7 @@ extract_port (const char *addr_and_port) | |||
1440 | return port; | 1445 | return port; |
1441 | } | 1446 | } |
1442 | 1447 | ||
1448 | |||
1443 | /** | 1449 | /** |
1444 | * Convert TCP bind specification to a `struct sockaddr *` | 1450 | * Convert TCP bind specification to a `struct sockaddr *` |
1445 | * | 1451 | * |
@@ -2140,6 +2146,7 @@ queue_read_kx (void *cls) | |||
2140 | queue->read_task = GNUNET_SCHEDULER_add_now (&queue_read, queue); | 2146 | queue->read_task = GNUNET_SCHEDULER_add_now (&queue_read, queue); |
2141 | } | 2147 | } |
2142 | 2148 | ||
2149 | |||
2143 | /** | 2150 | /** |
2144 | * Function called by the transport service to initialize a | 2151 | * Function called by the transport service to initialize a |
2145 | * message queue given address information about another peer. | 2152 | * message queue given address information about another peer. |
@@ -2229,6 +2236,7 @@ mq_init (void *cls, const struct GNUNET_PeerIdentity *peer, const char *address) | |||
2229 | return GNUNET_OK; | 2236 | return GNUNET_OK; |
2230 | } | 2237 | } |
2231 | 2238 | ||
2239 | |||
2232 | /** | 2240 | /** |
2233 | * Iterator over all message queues to clean up. | 2241 | * Iterator over all message queues to clean up. |
2234 | * | 2242 | * |
@@ -2367,6 +2375,7 @@ nat_address_cb (void *cls, | |||
2367 | } | 2375 | } |
2368 | } | 2376 | } |
2369 | 2377 | ||
2378 | |||
2370 | /** | 2379 | /** |
2371 | * This method launch network interactions for each address we like to bind to. | 2380 | * This method launch network interactions for each address we like to bind to. |
2372 | * | 2381 | * |
@@ -2474,7 +2483,7 @@ init_socket (const struct sockaddr *addr, | |||
2474 | if (NULL == queue_map) | 2483 | if (NULL == queue_map) |
2475 | queue_map = GNUNET_CONTAINER_multipeermap_create (10, GNUNET_NO); | 2484 | queue_map = GNUNET_CONTAINER_multipeermap_create (10, GNUNET_NO); |
2476 | 2485 | ||
2477 | if (NULL == ch ) | 2486 | if (NULL == ch) |
2478 | ch = GNUNET_TRANSPORT_communicator_connect (cfg, | 2487 | ch = GNUNET_TRANSPORT_communicator_connect (cfg, |
2479 | COMMUNICATOR_CONFIG_SECTION, | 2488 | COMMUNICATOR_CONFIG_SECTION, |
2480 | COMMUNICATOR_ADDRESS_PREFIX, | 2489 | COMMUNICATOR_ADDRESS_PREFIX, |
@@ -2496,6 +2505,7 @@ init_socket (const struct sockaddr *addr, | |||
2496 | 2505 | ||
2497 | } | 2506 | } |
2498 | 2507 | ||
2508 | |||
2499 | /** | 2509 | /** |
2500 | * This method reads from the DLL addrs_head to register them at the NAT service. | 2510 | * This method reads from the DLL addrs_head to register them at the NAT service. |
2501 | */ | 2511 | */ |
@@ -2557,6 +2567,7 @@ nat_register () | |||
2557 | } | 2567 | } |
2558 | } | 2568 | } |
2559 | 2569 | ||
2570 | |||
2560 | /** | 2571 | /** |
2561 | * This method adds addresses to the DLL, that are later register at the NAT service. | 2572 | * This method adds addresses to the DLL, that are later register at the NAT service. |
2562 | */ | 2573 | */ |
@@ -2573,6 +2584,7 @@ add_addr (struct sockaddr *in, socklen_t in_len) | |||
2573 | addrs_lens++; | 2584 | addrs_lens++; |
2574 | } | 2585 | } |
2575 | 2586 | ||
2587 | |||
2576 | /** | 2588 | /** |
2577 | * This method is the callback called by the resolver API, and wraps method init_socket. | 2589 | * This method is the callback called by the resolver API, and wraps method init_socket. |
2578 | * | 2590 | * |
@@ -2625,6 +2637,7 @@ init_socket_resolv (void *cls, | |||
2625 | } | 2637 | } |
2626 | } | 2638 | } |
2627 | 2639 | ||
2640 | |||
2628 | /** | 2641 | /** |
2629 | * Setup communicator and launch network interactions. | 2642 | * Setup communicator and launch network interactions. |
2630 | * | 2643 | * |
diff --git a/src/transport/gnunet-communicator-udp.c b/src/transport/gnunet-communicator-udp.c index efbbd08a7..03c120cc9 100644 --- a/src/transport/gnunet-communicator-udp.c +++ b/src/transport/gnunet-communicator-udp.c | |||
@@ -1309,7 +1309,8 @@ handle_ack (void *cls, const struct GNUNET_PeerIdentity *pid, void *value) | |||
1309 | "Tell transport we have more acks!\n"); | 1309 | "Tell transport we have more acks!\n"); |
1310 | GNUNET_TRANSPORT_communicator_mq_update (ch, | 1310 | GNUNET_TRANSPORT_communicator_mq_update (ch, |
1311 | receiver->d_qh, | 1311 | receiver->d_qh, |
1312 | (allowed - ss->sequence_allowed), | 1312 | (allowed |
1313 | - ss->sequence_allowed), | ||
1313 | 1); | 1314 | 1); |
1314 | ss->sequence_allowed = allowed; | 1315 | ss->sequence_allowed = allowed; |
1315 | /* move ss to head to avoid discarding it anytime soon! */ | 1316 | /* move ss to head to avoid discarding it anytime soon! */ |
diff --git a/src/transport/gnunet-communicator-unix.c b/src/transport/gnunet-communicator-unix.c index 6ea0ea360..d7e18f87a 100644 --- a/src/transport/gnunet-communicator-unix.c +++ b/src/transport/gnunet-communicator-unix.c | |||
@@ -673,7 +673,8 @@ setup_queue (const struct GNUNET_PeerIdentity *target, | |||
673 | queue->qh = GNUNET_TRANSPORT_communicator_mq_add (ch, | 673 | queue->qh = GNUNET_TRANSPORT_communicator_mq_add (ch, |
674 | &queue->target, | 674 | &queue->target, |
675 | foreign_addr, | 675 | foreign_addr, |
676 | UNIX_MTU - sizeof (struct UNIXMessage), | 676 | UNIX_MTU - sizeof (struct |
677 | UNIXMessage), | ||
677 | GNUNET_TRANSPORT_QUEUE_LENGTH_UNLIMITED, | 678 | GNUNET_TRANSPORT_QUEUE_LENGTH_UNLIMITED, |
678 | 0, | 679 | 0, |
679 | GNUNET_NT_LOOPBACK, | 680 | GNUNET_NT_LOOPBACK, |
@@ -799,7 +800,7 @@ select_read_cb (void *cls) | |||
799 | /* ensure aligned access */ | 800 | /* ensure aligned access */ |
800 | memcpy (&al_hdr, currhdr, sizeof(al_hdr)); | 801 | memcpy (&al_hdr, currhdr, sizeof(al_hdr)); |
801 | if ((tsize < sizeof(struct GNUNET_MessageHeader)) || | 802 | if ((tsize < sizeof(struct GNUNET_MessageHeader)) || |
802 | (tsize != ntohs(al_hdr.size))) | 803 | (tsize != ntohs (al_hdr.size))) |
803 | { | 804 | { |
804 | GNUNET_break_op (0); | 805 | GNUNET_break_op (0); |
805 | return; | 806 | return; |
diff --git a/src/transport/plugin_transport_smtp.c b/src/transport/plugin_transport_smtp.c index 330023118..f3db4fc5a 100644 --- a/src/transport/plugin_transport_smtp.c +++ b/src/transport/plugin_transport_smtp.c | |||
@@ -174,9 +174,9 @@ listenAndDistribute (void *unused) | |||
174 | goto END; \ | 174 | goto END; \ |
175 | } \ | 175 | } \ |
176 | if (core_api->load_monitor != NULL) \ | 176 | if (core_api->load_monitor != NULL) \ |
177 | GNUNET_network_monitor_notify_transmission (core_api->load_monitor, \ | 177 | GNUNET_network_monitor_notify_transmission (core_api->load_monitor, \ |
178 | GNUNET_ND_DOWNLOAD, \ | 178 | GNUNET_ND_DOWNLOAD, \ |
179 | strlen (retl)); \ | 179 | strlen (retl)); \ |
180 | } while (0) | 180 | } while (0) |
181 | 181 | ||
182 | 182 | ||
diff --git a/src/transport/test_communicator_basic.c b/src/transport/test_communicator_basic.c index 290167960..45c268684 100644 --- a/src/transport/test_communicator_basic.c +++ b/src/transport/test_communicator_basic.c | |||
@@ -224,8 +224,8 @@ latency_timeout (void *cls) | |||
224 | } | 224 | } |
225 | 225 | ||
226 | LOG (GNUNET_ERROR_TYPE_ERROR, | 226 | LOG (GNUNET_ERROR_TYPE_ERROR, |
227 | "Latency too high. Test failed. (Phase: %d. Sent: %lu, Received: %lu)\n", | 227 | "Latency too high. Test failed. (Phase: %d. Sent: %lu, Received: %lu)\n", |
228 | phase, num_sent, num_received); | 228 | phase, num_sent, num_received); |
229 | ret = 2; | 229 | ret = 2; |
230 | GNUNET_SCHEDULER_shutdown (); | 230 | GNUNET_SCHEDULER_shutdown (); |
231 | } | 231 | } |
@@ -403,7 +403,7 @@ incoming_message_cb (void *cls, | |||
403 | if (0 != strcmp ((char*) cls, cfg_peers_name[NUM_PEERS - 1])) | 403 | if (0 != strcmp ((char*) cls, cfg_peers_name[NUM_PEERS - 1])) |
404 | { | 404 | { |
405 | LOG (GNUNET_ERROR_TYPE_WARNING, | 405 | LOG (GNUNET_ERROR_TYPE_WARNING, |
406 | "unexpected receiver...\n"); | 406 | "unexpected receiver...\n"); |
407 | return; | 407 | return; |
408 | } | 408 | } |
409 | /* Reset timeout */ | 409 | /* Reset timeout */ |
@@ -422,18 +422,18 @@ incoming_message_cb (void *cls, | |||
422 | if (num_received == BURST_PACKETS) | 422 | if (num_received == BURST_PACKETS) |
423 | { | 423 | { |
424 | LOG (GNUNET_ERROR_TYPE_MESSAGE, | 424 | LOG (GNUNET_ERROR_TYPE_MESSAGE, |
425 | "Short size packet test done.\n"); | 425 | "Short size packet test done.\n"); |
426 | char *goodput = GNUNET_STRINGS_byte_size_fancy ((SHORT_MESSAGE_SIZE | 426 | char *goodput = GNUNET_STRINGS_byte_size_fancy ((SHORT_MESSAGE_SIZE |
427 | * num_received * 1000 | 427 | * num_received * 1000 |
428 | * 1000) | 428 | * 1000) |
429 | / duration.rel_value_us); | 429 | / duration.rel_value_us); |
430 | LOG (GNUNET_ERROR_TYPE_MESSAGE, | 430 | LOG (GNUNET_ERROR_TYPE_MESSAGE, |
431 | "%lu/%lu packets in %llu us (%s/s) -- avg latency: %llu us\n", | 431 | "%lu/%lu packets in %llu us (%s/s) -- avg latency: %llu us\n", |
432 | (unsigned long) num_received, | 432 | (unsigned long) num_received, |
433 | (unsigned long) num_sent, | 433 | (unsigned long) num_sent, |
434 | (unsigned long long) duration.rel_value_us, | 434 | (unsigned long long) duration.rel_value_us, |
435 | goodput, | 435 | goodput, |
436 | (unsigned long long) avg_latency); | 436 | (unsigned long long) avg_latency); |
437 | GNUNET_free (goodput); | 437 | GNUNET_free (goodput); |
438 | start_long = GNUNET_TIME_absolute_get (); | 438 | start_long = GNUNET_TIME_absolute_get (); |
439 | phase = TP_BURST_LONG; | 439 | phase = TP_BURST_LONG; |
@@ -449,7 +449,7 @@ incoming_message_cb (void *cls, | |||
449 | if (long_message_size != payload_len) | 449 | if (long_message_size != payload_len) |
450 | { | 450 | { |
451 | LOG (GNUNET_ERROR_TYPE_WARNING, | 451 | LOG (GNUNET_ERROR_TYPE_WARNING, |
452 | "Ignoring packet with wrong length\n"); | 452 | "Ignoring packet with wrong length\n"); |
453 | return; // Ignore | 453 | return; // Ignore |
454 | } | 454 | } |
455 | num_received++; | 455 | num_received++; |
@@ -458,19 +458,19 @@ incoming_message_cb (void *cls, | |||
458 | if (num_received == BURST_PACKETS) | 458 | if (num_received == BURST_PACKETS) |
459 | { | 459 | { |
460 | LOG (GNUNET_ERROR_TYPE_MESSAGE, | 460 | LOG (GNUNET_ERROR_TYPE_MESSAGE, |
461 | "Long size packet test done.\n"); | 461 | "Long size packet test done.\n"); |
462 | char *goodput = GNUNET_STRINGS_byte_size_fancy ((long_message_size | 462 | char *goodput = GNUNET_STRINGS_byte_size_fancy ((long_message_size |
463 | * num_received * 1000 | 463 | * num_received * 1000 |
464 | * 1000) | 464 | * 1000) |
465 | / duration.rel_value_us); | 465 | / duration.rel_value_us); |
466 | 466 | ||
467 | LOG (GNUNET_ERROR_TYPE_MESSAGE, | 467 | LOG (GNUNET_ERROR_TYPE_MESSAGE, |
468 | "%lu/%lu packets in %llu us (%s/s) -- avg latency: %llu us\n", | 468 | "%lu/%lu packets in %llu us (%s/s) -- avg latency: %llu us\n", |
469 | (unsigned long) num_received, | 469 | (unsigned long) num_received, |
470 | (unsigned long) num_sent, | 470 | (unsigned long) num_sent, |
471 | (unsigned long long) duration.rel_value_us, | 471 | (unsigned long long) duration.rel_value_us, |
472 | goodput, | 472 | goodput, |
473 | (unsigned long long) avg_latency); | 473 | (unsigned long long) avg_latency); |
474 | GNUNET_free (goodput); | 474 | GNUNET_free (goodput); |
475 | ack = 0; | 475 | ack = 0; |
476 | phase = TP_SIZE_CHECK; | 476 | phase = TP_SIZE_CHECK; |
@@ -493,12 +493,12 @@ incoming_message_cb (void *cls, | |||
493 | if (num_received >= (max_size) / 10) | 493 | if (num_received >= (max_size) / 10) |
494 | { | 494 | { |
495 | LOG (GNUNET_ERROR_TYPE_MESSAGE, | 495 | LOG (GNUNET_ERROR_TYPE_MESSAGE, |
496 | "Size packet test done.\n"); | 496 | "Size packet test done.\n"); |
497 | LOG (GNUNET_ERROR_TYPE_MESSAGE, | 497 | LOG (GNUNET_ERROR_TYPE_MESSAGE, |
498 | "%lu/%lu packets -- avg latency: %llu us\n", | 498 | "%lu/%lu packets -- avg latency: %llu us\n", |
499 | (unsigned long) num_received, | 499 | (unsigned long) num_received, |
500 | (unsigned long) num_sent, | 500 | (unsigned long) num_sent, |
501 | (unsigned long long) avg_latency); | 501 | (unsigned long long) avg_latency); |
502 | num_received = 0; | 502 | num_received = 0; |
503 | num_sent = 0; | 503 | num_sent = 0; |
504 | avg_latency = 0; | 504 | avg_latency = 0; |
@@ -511,7 +511,7 @@ incoming_message_cb (void *cls, | |||
511 | break; | 511 | break; |
512 | } | 512 | } |
513 | LOG (GNUNET_ERROR_TYPE_DEBUG, | 513 | LOG (GNUNET_ERROR_TYPE_DEBUG, |
514 | "Finished\n"); | 514 | "Finished\n"); |
515 | GNUNET_SCHEDULER_shutdown (); | 515 | GNUNET_SCHEDULER_shutdown (); |
516 | } | 516 | } |
517 | break; | 517 | break; |
@@ -640,9 +640,9 @@ main (int argc, | |||
640 | &peer_id[i].public_key); | 640 | &peer_id[i].public_key); |
641 | GNUNET_free (private_key); | 641 | GNUNET_free (private_key); |
642 | LOG (GNUNET_ERROR_TYPE_INFO, | 642 | LOG (GNUNET_ERROR_TYPE_INFO, |
643 | "Identity of peer %u is %s\n", | 643 | "Identity of peer %u is %s\n", |
644 | i, | 644 | i, |
645 | GNUNET_i2s_full (&peer_id[i])); | 645 | GNUNET_i2s_full (&peer_id[i])); |
646 | } | 646 | } |
647 | LOG (GNUNET_ERROR_TYPE_MESSAGE, "Starting test...\n"); | 647 | LOG (GNUNET_ERROR_TYPE_MESSAGE, "Starting test...\n"); |
648 | GNUNET_SCHEDULER_run (&run, | 648 | GNUNET_SCHEDULER_run (&run, |
diff --git a/src/transport/transport-testing2.c b/src/transport/transport-testing2.c index 2a7a1dfcb..772ad9f2d 100644 --- a/src/transport/transport-testing2.c +++ b/src/transport/transport-testing2.c | |||
@@ -671,8 +671,8 @@ handle_update_queue_message (void *cls, | |||
671 | struct GNUNET_TRANSPORT_TESTING_TransportCommunicatorQueue *tc_queue; | 671 | struct GNUNET_TRANSPORT_TESTING_TransportCommunicatorQueue *tc_queue; |
672 | 672 | ||
673 | LOG (GNUNET_ERROR_TYPE_DEBUG, | 673 | LOG (GNUNET_ERROR_TYPE_DEBUG, |
674 | "Received queue update message for %u with q_len %"PRIu64"\n", | 674 | "Received queue update message for %u with q_len %" PRIu64 "\n", |
675 | msg->qid, GNUNET_ntohll(msg->q_len)); | 675 | msg->qid, GNUNET_ntohll (msg->q_len)); |
676 | tc_queue = tc_h->queue_head; | 676 | tc_queue = tc_h->queue_head; |
677 | if (NULL != tc_queue) | 677 | if (NULL != tc_queue) |
678 | { | 678 | { |
@@ -947,6 +947,7 @@ shutdown_nat (void *cls) | |||
947 | shutdown_process (proc); | 947 | shutdown_process (proc); |
948 | } | 948 | } |
949 | 949 | ||
950 | |||
950 | /** | 951 | /** |
951 | * @brief Task run at shutdown to kill the resolver process | 952 | * @brief Task run at shutdown to kill the resolver process |
952 | * | 953 | * |
@@ -959,6 +960,7 @@ shutdown_resolver (void *cls) | |||
959 | shutdown_process (proc); | 960 | shutdown_process (proc); |
960 | } | 961 | } |
961 | 962 | ||
963 | |||
962 | static void | 964 | static void |
963 | resolver_start (struct | 965 | resolver_start (struct |
964 | GNUNET_TRANSPORT_TESTING_TransportCommunicatorHandle *tc_h) | 966 | GNUNET_TRANSPORT_TESTING_TransportCommunicatorHandle *tc_h) |
@@ -967,16 +969,17 @@ resolver_start (struct | |||
967 | 969 | ||
968 | LOG (GNUNET_ERROR_TYPE_DEBUG, "resolver_start\n"); | 970 | LOG (GNUNET_ERROR_TYPE_DEBUG, "resolver_start\n"); |
969 | binary = GNUNET_OS_get_libexec_binary_path ("gnunet-service-resolver"); | 971 | binary = GNUNET_OS_get_libexec_binary_path ("gnunet-service-resolver"); |
970 | tc_h->resolver_proc = GNUNET_OS_start_process (GNUNET_OS_INHERIT_STD_OUT_AND_ERR | 972 | tc_h->resolver_proc = GNUNET_OS_start_process ( |
971 | | GNUNET_OS_USE_PIPE_CONTROL, | 973 | GNUNET_OS_INHERIT_STD_OUT_AND_ERR |
972 | NULL, | 974 | | GNUNET_OS_USE_PIPE_CONTROL, |
973 | NULL, | 975 | NULL, |
974 | NULL, | 976 | NULL, |
975 | binary, | 977 | NULL, |
976 | "gnunet-service-resolver", | 978 | binary, |
977 | "-c", | 979 | "gnunet-service-resolver", |
978 | tc_h->cfg_filename, | 980 | "-c", |
979 | NULL); | 981 | tc_h->cfg_filename, |
982 | NULL); | ||
980 | if (NULL == tc_h->resolver_proc) | 983 | if (NULL == tc_h->resolver_proc) |
981 | { | 984 | { |
982 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Failed to start resolver service!"); | 985 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Failed to start resolver service!"); |
@@ -987,6 +990,7 @@ resolver_start (struct | |||
987 | 990 | ||
988 | } | 991 | } |
989 | 992 | ||
993 | |||
990 | /** | 994 | /** |
991 | * @brief Start NAT | 995 | * @brief Start NAT |
992 | * | 996 | * |
diff --git a/src/transport/transport.h b/src/transport/transport.h index a64ffd5c6..dbae4ecfb 100644 --- a/src/transport/transport.h +++ b/src/transport/transport.h | |||
@@ -903,7 +903,6 @@ struct GNUNET_TRANSPORT_UpdateQueueMessage | |||
903 | }; | 903 | }; |
904 | 904 | ||
905 | 905 | ||
906 | |||
907 | /** | 906 | /** |
908 | * Remove queue, it is no longer available. | 907 | * Remove queue, it is no longer available. |
909 | */ | 908 | */ |
diff --git a/src/transport/transport_api2_communication.c b/src/transport/transport_api2_communication.c index cfa144415..d1e28cc36 100644 --- a/src/transport/transport_api2_communication.c +++ b/src/transport/transport_api2_communication.c | |||
@@ -420,6 +420,7 @@ send_add_queue (struct GNUNET_TRANSPORT_QueueHandle *qh) | |||
420 | GNUNET_MQ_send (qh->ch->mq, env); | 420 | GNUNET_MQ_send (qh->ch->mq, env); |
421 | } | 421 | } |
422 | 422 | ||
423 | |||
423 | /** | 424 | /** |
424 | * Send message to the transport service about queue @a qh | 425 | * Send message to the transport service about queue @a qh |
425 | * updated. | 426 | * updated. |
@@ -446,7 +447,6 @@ send_update_queue (struct GNUNET_TRANSPORT_QueueHandle *qh) | |||
446 | } | 447 | } |
447 | 448 | ||
448 | 449 | ||
449 | |||
450 | /** | 450 | /** |
451 | * Send message to the transport service about queue @a qh | 451 | * Send message to the transport service about queue @a qh |
452 | * being no longer available. | 452 | * being no longer available. |
@@ -1033,7 +1033,6 @@ GNUNET_TRANSPORT_communicator_mq_update ( | |||
1033 | } | 1033 | } |
1034 | 1034 | ||
1035 | 1035 | ||
1036 | |||
1037 | /** | 1036 | /** |
1038 | * Notify transport service that an MQ became unavailable due to a | 1037 | * Notify transport service that an MQ became unavailable due to a |
1039 | * disconnect or timeout. | 1038 | * disconnect or timeout. |