aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-12-23 17:10:38 +0000
committerChristian Grothoff <christian@grothoff.org>2013-12-23 17:10:38 +0000
commit2cdcd2373d34ffa015fe0cdfd11d722c37520d97 (patch)
tree6de976024ba8338a54b76110290c0d1ca772d1d8 /src
parent69f9662283ade69910b500e00f491a47c1b4eb8c (diff)
downloadgnunet-2cdcd2373d34ffa015fe0cdfd11d722c37520d97.tar.gz
gnunet-2cdcd2373d34ffa015fe0cdfd11d722c37520d97.zip
-more logging and doxygen fixes
Diffstat (limited to 'src')
-rw-r--r--src/include/gnunet_ats_service.h60
-rw-r--r--src/transport/gnunet-service-transport.c6
-rw-r--r--src/transport/gnunet-service-transport_neighbours.c61
-rw-r--r--src/transport/plugin_transport_tcp.c4
4 files changed, 105 insertions, 26 deletions
diff --git a/src/include/gnunet_ats_service.h b/src/include/gnunet_ats_service.h
index 2b654b053..329d81161 100644
--- a/src/include/gnunet_ats_service.h
+++ b/src/include/gnunet_ats_service.h
@@ -531,7 +531,6 @@ struct GNUNET_ATS_SchedulingHandle;
531 531
532/** 532/**
533 * Handle for address suggestion requests 533 * Handle for address suggestion requests
534 *
535 */ 534 */
536struct GNUNET_ATS_SuggestHandle; 535struct GNUNET_ATS_SuggestHandle;
537 536
@@ -550,14 +549,14 @@ struct Session;
550 * @param bandwidth_out assigned outbound bandwidth for the connection 549 * @param bandwidth_out assigned outbound bandwidth for the connection
551 * @param bandwidth_in assigned inbound bandwidth for the connection 550 * @param bandwidth_in assigned inbound bandwidth for the connection
552 * @param ats performance data for the address (as far as known) 551 * @param ats performance data for the address (as far as known)
553 * @param ats_count number of performance records in 'ats' 552 * @param ats_count number of performance records in @a ats
554 */ 553 */
555typedef void 554typedef void
556(*GNUNET_ATS_AddressSuggestionCallback) (void *cls, 555(*GNUNET_ATS_AddressSuggestionCallback) (void *cls,
557 const struct GNUNET_HELLO_Address * address, struct Session * session, 556 const struct GNUNET_HELLO_Address *address, struct Session *session,
558 struct GNUNET_BANDWIDTH_Value32NBO bandwidth_out, 557 struct GNUNET_BANDWIDTH_Value32NBO bandwidth_out,
559 struct GNUNET_BANDWIDTH_Value32NBO bandwidth_in, 558 struct GNUNET_BANDWIDTH_Value32NBO bandwidth_in,
560 const struct GNUNET_ATS_Information * ats, uint32_t ats_count); 559 const struct GNUNET_ATS_Information *ats, uint32_t ats_count);
561 560
562/** 561/**
563 * Initialize the ATS subsystem. 562 * Initialize the ATS subsystem.
@@ -588,7 +587,8 @@ GNUNET_ATS_scheduling_done (struct GNUNET_ATS_SchedulingHandle *sh);
588 */ 587 */
589void 588void
590GNUNET_ATS_reset_backoff (struct GNUNET_ATS_SchedulingHandle *sh, 589GNUNET_ATS_reset_backoff (struct GNUNET_ATS_SchedulingHandle *sh,
591 const struct GNUNET_PeerIdentity *peer); 590 const struct GNUNET_PeerIdentity *peer);
591
592 592
593/** 593/**
594 * We would like to establish a new connection with a peer. ATS 594 * We would like to establish a new connection with a peer. ATS
@@ -600,7 +600,8 @@ GNUNET_ATS_reset_backoff (struct GNUNET_ATS_SchedulingHandle *sh,
600 */ 600 */
601struct GNUNET_ATS_SuggestHandle * 601struct GNUNET_ATS_SuggestHandle *
602GNUNET_ATS_suggest_address (struct GNUNET_ATS_SchedulingHandle *sh, 602GNUNET_ATS_suggest_address (struct GNUNET_ATS_SchedulingHandle *sh,
603 const struct GNUNET_PeerIdentity *peer); 603 const struct GNUNET_PeerIdentity *peer);
604
604 605
605/** 606/**
606 * We want to cancel ATS suggesting addresses for a peer. 607 * We want to cancel ATS suggesting addresses for a peer.
@@ -610,7 +611,8 @@ GNUNET_ATS_suggest_address (struct GNUNET_ATS_SchedulingHandle *sh,
610 */ 611 */
611void 612void
612GNUNET_ATS_suggest_address_cancel (struct GNUNET_ATS_SchedulingHandle *sh, 613GNUNET_ATS_suggest_address_cancel (struct GNUNET_ATS_SchedulingHandle *sh,
613 const struct GNUNET_PeerIdentity *peer); 614 const struct GNUNET_PeerIdentity *peer);
615
614 616
615/** 617/**
616 * Convert a ATS property to a string 618 * Convert a ATS property to a string
@@ -621,6 +623,7 @@ GNUNET_ATS_suggest_address_cancel (struct GNUNET_ATS_SchedulingHandle *sh,
621const char * 623const char *
622GNUNET_ATS_print_property_type (uint32_t type); 624GNUNET_ATS_print_property_type (uint32_t type);
623 625
626
624/** 627/**
625 * Convert a GNUNET_ATS_NetworkType to a string 628 * Convert a GNUNET_ATS_NetworkType to a string
626 * 629 *
@@ -630,6 +633,7 @@ GNUNET_ATS_print_property_type (uint32_t type);
630const char * 633const char *
631GNUNET_ATS_print_network_type (uint32_t net); 634GNUNET_ATS_print_network_type (uint32_t net);
632 635
636
633/** 637/**
634 * Returns where the address is located: LAN or WAN or ... 638 * Returns where the address is located: LAN or WAN or ...
635 * @param sh the GNUNET_ATS_SchedulingHandle handle 639 * @param sh the GNUNET_ATS_SchedulingHandle handle
@@ -639,7 +643,9 @@ GNUNET_ATS_print_network_type (uint32_t net);
639 */ 643 */
640struct GNUNET_ATS_Information 644struct GNUNET_ATS_Information
641GNUNET_ATS_address_get_type (struct GNUNET_ATS_SchedulingHandle *sh, 645GNUNET_ATS_address_get_type (struct GNUNET_ATS_SchedulingHandle *sh,
642 const struct sockaddr * addr, socklen_t addrlen); 646 const struct sockaddr * addr,
647 socklen_t addrlen);
648
643 649
644/** 650/**
645 * Test if a address and a session is known to ATS 651 * Test if a address and a session is known to ATS
@@ -647,11 +653,13 @@ GNUNET_ATS_address_get_type (struct GNUNET_ATS_SchedulingHandle *sh,
647 * @param sh the scheduling handle 653 * @param sh the scheduling handle
648 * @param address the address 654 * @param address the address
649 * @param session the session 655 * @param session the session
650 * @return GNUNET_YES or GNUNET_NO 656 * @return #GNUNET_YES or #GNUNET_NO
651 */ 657 */
652int 658int
653GNUNET_ATS_session_known (struct GNUNET_ATS_SchedulingHandle *sh, 659GNUNET_ATS_session_known (struct GNUNET_ATS_SchedulingHandle *sh,
654 const struct GNUNET_HELLO_Address *address, struct Session *session); 660 const struct GNUNET_HELLO_Address *address,
661 struct Session *session);
662
655 663
656/** 664/**
657 * We have a new address ATS should know. Addresses have to be added with this 665 * We have a new address ATS should know. Addresses have to be added with this
@@ -661,12 +669,15 @@ GNUNET_ATS_session_known (struct GNUNET_ATS_SchedulingHandle *sh,
661 * @param address the address 669 * @param address the address
662 * @param session session handle (if available) 670 * @param session session handle (if available)
663 * @param ats performance data for the address 671 * @param ats performance data for the address
664 * @param ats_count number of performance records in 'ats' 672 * @param ats_count number of performance records in @a ats
665 */ 673 */
666int 674int
667GNUNET_ATS_address_add (struct GNUNET_ATS_SchedulingHandle *sh, 675GNUNET_ATS_address_add (struct GNUNET_ATS_SchedulingHandle *sh,
668 const struct GNUNET_HELLO_Address *address, struct Session *session, 676 const struct GNUNET_HELLO_Address *address,
669 const struct GNUNET_ATS_Information *ats, uint32_t ats_count); 677 struct Session *session,
678 const struct GNUNET_ATS_Information *ats,
679 uint32_t ats_count);
680
670 681
671/** 682/**
672 * We have updated performance statistics for a given address. Note 683 * We have updated performance statistics for a given address. Note
@@ -680,13 +691,16 @@ GNUNET_ATS_address_add (struct GNUNET_ATS_SchedulingHandle *sh,
680 * @param address updated address 691 * @param address updated address
681 * @param session session handle (if available) 692 * @param session session handle (if available)
682 * @param ats performance data for the address 693 * @param ats performance data for the address
683 * @param ats_count number of performance records in 'ats' 694 * @param ats_count number of performance records in @a ats
684 * @return GNUNET_OK or GNUNET_SYSERR 695 * @return #GNUNET_OK or #GNUNET_SYSERR
685 */ 696 */
686int 697int
687GNUNET_ATS_address_update (struct GNUNET_ATS_SchedulingHandle *sh, 698GNUNET_ATS_address_update (struct GNUNET_ATS_SchedulingHandle *sh,
688 const struct GNUNET_HELLO_Address *address, struct Session *session, 699 const struct GNUNET_HELLO_Address *address,
689 const struct GNUNET_ATS_Information *ats, uint32_t ats_count); 700 struct Session *session,
701 const struct GNUNET_ATS_Information *ats,
702 uint32_t ats_count);
703
690 704
691/** 705/**
692 * An address is now in use or not used any more. 706 * An address is now in use or not used any more.
@@ -694,13 +708,15 @@ GNUNET_ATS_address_update (struct GNUNET_ATS_SchedulingHandle *sh,
694 * @param sh handle 708 * @param sh handle
695 * @param address the address 709 * @param address the address
696 * @param session session handle 710 * @param session session handle
697 * @param in_use GNUNET_YES if this address is now used, GNUNET_NO 711 * @param in_use #GNUNET_YES if this address is now used, #GNUNET_NO
698 * if address is not used any more 712 * if address is not used any more
699 */ 713 */
700void 714void
701GNUNET_ATS_address_in_use (struct GNUNET_ATS_SchedulingHandle *sh, 715GNUNET_ATS_address_in_use (struct GNUNET_ATS_SchedulingHandle *sh,
702 const struct GNUNET_HELLO_Address *address, struct Session *session, 716 const struct GNUNET_HELLO_Address *address,
703 int in_use); 717 struct Session *session,
718 int in_use);
719
704 720
705/** 721/**
706 * A session got destroyed, stop including it as a valid address. 722 * A session got destroyed, stop including it as a valid address.
@@ -711,7 +727,9 @@ GNUNET_ATS_address_in_use (struct GNUNET_ATS_SchedulingHandle *sh,
711 */ 727 */
712void 728void
713GNUNET_ATS_address_destroyed (struct GNUNET_ATS_SchedulingHandle *sh, 729GNUNET_ATS_address_destroyed (struct GNUNET_ATS_SchedulingHandle *sh,
714 const struct GNUNET_HELLO_Address *address, struct Session *session); 730 const struct GNUNET_HELLO_Address *address,
731 struct Session *session);
732
715 733
716/* ******************************** Performance API ***************************** */ 734/* ******************************** Performance API ***************************** */
717 735
diff --git a/src/transport/gnunet-service-transport.c b/src/transport/gnunet-service-transport.c
index 9399ece7d..ed7a6b81b 100644
--- a/src/transport/gnunet-service-transport.c
+++ b/src/transport/gnunet-service-transport.c
@@ -561,7 +561,11 @@ GST_ats_add_address (const struct GNUNET_HELLO_Address *address,
561 } 561 }
562 562
563 if (GNUNET_YES == GNUNET_ATS_session_known (GST_ats, address, session)) 563 if (GNUNET_YES == GNUNET_ATS_session_known (GST_ats, address, session))
564 {
565 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
566 "ATS already knows the address, not passing it on again\n");
564 return; 567 return;
568 }
565 569
566 net = papi->get_network (NULL, session); 570 net = papi->get_network (NULL, session);
567 if (GNUNET_ATS_NET_UNSPECIFIED == net) 571 if (GNUNET_ATS_NET_UNSPECIFIED == net)
@@ -754,7 +758,7 @@ ats_request_address_change (void *cls,
754 uint32_t bw_out = ntohl (bandwidth_out.value__); 758 uint32_t bw_out = ntohl (bandwidth_out.value__);
755 759
756 /* ATS tells me to disconnect from peer */ 760 /* ATS tells me to disconnect from peer */
757 if ((bw_in == 0) && (bw_out == 0)) 761 if ((0 == bw_in) && (0 == bw_out))
758 { 762 {
759 GNUNET_log (GNUNET_ERROR_TYPE_INFO, 763 GNUNET_log (GNUNET_ERROR_TYPE_INFO,
760 "ATS tells me to disconnect from peer `%s'\n", 764 "ATS tells me to disconnect from peer `%s'\n",
diff --git a/src/transport/gnunet-service-transport_neighbours.c b/src/transport/gnunet-service-transport_neighbours.c
index 2e07c4588..4e8e0af07 100644
--- a/src/transport/gnunet-service-transport_neighbours.c
+++ b/src/transport/gnunet-service-transport_neighbours.c
@@ -497,7 +497,7 @@ struct NeighbourMapEntry
497 497
498 /** 498 /**
499 * Timestamp we should include in our next CONNECT_ACK message. 499 * Timestamp we should include in our next CONNECT_ACK message.
500 * (only valid if 'send_connect_ack' is GNUNET_YES). Used to build 500 * (only valid if 'send_connect_ack' is #GNUNET_YES). Used to build
501 * our CONNECT_ACK message. 501 * our CONNECT_ACK message.
502 */ 502 */
503 struct GNUNET_TIME_Absolute connect_ack_timestamp; 503 struct GNUNET_TIME_Absolute connect_ack_timestamp;
@@ -908,6 +908,9 @@ free_neighbour (struct NeighbourMapEntry *n,
908 struct GNUNET_TRANSPORT_PluginFunctions *papi; 908 struct GNUNET_TRANSPORT_PluginFunctions *papi;
909 struct GNUNET_HELLO_Address *backup_primary; 909 struct GNUNET_HELLO_Address *backup_primary;
910 910
911 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
912 "Freeing neighbur state of peer `%s'\n",
913 GNUNET_i2s (&n->id));
911 n->is_active = NULL; /* always free'd by its own continuation! */ 914 n->is_active = NULL; /* always free'd by its own continuation! */
912 915
913 /* fail messages currently in the queue */ 916 /* fail messages currently in the queue */
@@ -1677,6 +1680,9 @@ send_session_connect (struct NeighbourAddress *na)
1677 struct GNUNET_TRANSPORT_PluginFunctions *papi; 1680 struct GNUNET_TRANSPORT_PluginFunctions *papi;
1678 struct SessionConnectMessage connect_msg; 1681 struct SessionConnectMessage connect_msg;
1679 1682
1683 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
1684 "Sending SESSION_CONNECT message to peer %s\n",
1685 GNUNET_i2s (&na->address->peer));
1680 if (NULL == (papi = GST_plugins_find (na->address->transport_name))) 1686 if (NULL == (papi = GST_plugins_find (na->address->transport_name)))
1681 { 1687 {
1682 GNUNET_break (0); 1688 GNUNET_break (0);
@@ -1733,6 +1739,9 @@ send_session_connect_ack_message (const struct GNUNET_HELLO_Address *address,
1733 struct GNUNET_TRANSPORT_PluginFunctions *papi; 1739 struct GNUNET_TRANSPORT_PluginFunctions *papi;
1734 struct SessionConnectMessage connect_msg; 1740 struct SessionConnectMessage connect_msg;
1735 1741
1742 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
1743 "Sending CONNECT_ACK to peer `%s'\n",
1744 GNUNET_i2s (peer));
1736 if (NULL == (papi = GST_plugins_find (address->transport_name))) 1745 if (NULL == (papi = GST_plugins_find (address->transport_name)))
1737 { 1746 {
1738 GNUNET_break (0); 1747 GNUNET_break (0);
@@ -1925,7 +1934,9 @@ handle_test_blacklist_cont (void *cls,
1925 GNUNET_i2s (peer), 1934 GNUNET_i2s (peer),
1926 (GNUNET_OK == result) ? "allowed" : "FORBIDDEN"); 1935 (GNUNET_OK == result) ? "allowed" : "FORBIDDEN");
1927 if (GNUNET_OK == result) 1936 if (GNUNET_OK == result)
1937 {
1928 GST_ats_add_address (bcc->na.address, bcc->na.session, NULL, 0); 1938 GST_ats_add_address (bcc->na.address, bcc->na.session, NULL, 0);
1939 }
1929 else 1940 else
1930 { 1941 {
1931 /* Blacklist disagreed on connecting to a peer with this address 1942 /* Blacklist disagreed on connecting to a peer with this address
@@ -1936,7 +1947,17 @@ handle_test_blacklist_cont (void *cls,
1936 GNUNET_ATS_address_destroyed (GST_ats, bcc->na.address, NULL); 1947 GNUNET_ATS_address_destroyed (GST_ats, bcc->na.address, NULL);
1937 } 1948 }
1938 if (NULL == (n = lookup_neighbour (peer))) 1949 if (NULL == (n = lookup_neighbour (peer)))
1950 {
1951 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
1952 "No neighbor entry for peer `%s', ignoring blacklist result\n",
1953 GNUNET_i2s (peer));
1939 goto cleanup; /* nobody left to care about new address */ 1954 goto cleanup; /* nobody left to care about new address */
1955 }
1956 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
1957 "Received blacklist result for peer `%s' in state %s/%d\n",
1958 GNUNET_i2s (peer),
1959 print_state (n->state),
1960 n->send_connect_ack);
1940 switch (n->state) 1961 switch (n->state)
1941 { 1962 {
1942 case S_NOT_CONNECTED: 1963 case S_NOT_CONNECTED:
@@ -1960,7 +1981,12 @@ handle_test_blacklist_cont (void *cls,
1960 n->connect_ack_timestamp); 1981 n->connect_ack_timestamp);
1961 } 1982 }
1962 if (GNUNET_YES != address_matches (&bcc->na, &n->primary_address)) 1983 if (GNUNET_YES != address_matches (&bcc->na, &n->primary_address))
1984 {
1985 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
1986 "Blacklist result for peer %s is for non-primary address, ignored\n",
1987 GNUNET_i2s (peer));
1963 break; /* result for an address we currently don't care about */ 1988 break; /* result for an address we currently don't care about */
1989 }
1964 if (GNUNET_OK == result) 1990 if (GNUNET_OK == result)
1965 { 1991 {
1966 n->timeout = GNUNET_TIME_relative_to_absolute (SETUP_CONNECTION_TIMEOUT); 1992 n->timeout = GNUNET_TIME_relative_to_absolute (SETUP_CONNECTION_TIMEOUT);
@@ -1989,6 +2015,9 @@ handle_test_blacklist_cont (void *cls,
1989 n->state = S_CONNECT_RECV_ATS; 2015 n->state = S_CONNECT_RECV_ATS;
1990 n->timeout = GNUNET_TIME_relative_to_absolute (ATS_RESPONSE_TIMEOUT); 2016 n->timeout = GNUNET_TIME_relative_to_absolute (ATS_RESPONSE_TIMEOUT);
1991 GNUNET_ATS_reset_backoff (GST_ats, peer); 2017 GNUNET_ATS_reset_backoff (GST_ats, peer);
2018 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
2019 "Suggesting address for peer %s to ATS\n",
2020 GNUNET_i2s (peer));
1992 n->suggest_handle = GNUNET_ATS_suggest_address (GST_ats, peer); 2021 n->suggest_handle = GNUNET_ATS_suggest_address (GST_ats, peer);
1993 break; 2022 break;
1994 case S_CONNECT_RECV_ATS: 2023 case S_CONNECT_RECV_ATS:
@@ -2057,7 +2086,11 @@ handle_test_blacklist_cont (void *cls,
2057 n->connect_ack_timestamp); 2086 n->connect_ack_timestamp);
2058 } 2087 }
2059 if (GNUNET_YES != address_matches (&bcc->na, &n->primary_address)) 2088 if (GNUNET_YES != address_matches (&bcc->na, &n->primary_address))
2089 {
2090 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
2091 "Blacklist result ignored, as it is not for our primary address\n");
2060 break; /* result for an address we currently don't care about */ 2092 break; /* result for an address we currently don't care about */
2093 }
2061 if (GNUNET_OK == result) 2094 if (GNUNET_OK == result)
2062 { 2095 {
2063 n->state = S_RECONNECT_SENT; 2096 n->state = S_RECONNECT_SENT;
@@ -2083,7 +2116,11 @@ handle_test_blacklist_cont (void *cls,
2083 break; 2116 break;
2084 case S_CONNECTED_SWITCHING_BLACKLIST: 2117 case S_CONNECTED_SWITCHING_BLACKLIST:
2085 if (GNUNET_YES != address_matches (&bcc->na, &n->alternative_address)) 2118 if (GNUNET_YES != address_matches (&bcc->na, &n->alternative_address))
2119 {
2120 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
2121 "Blacklist result ignored, as it is not for our primary address\n");
2086 break; /* result for an address we currently don't care about */ 2122 break; /* result for an address we currently don't care about */
2123 }
2087 if (GNUNET_OK == result) 2124 if (GNUNET_OK == result)
2088 { 2125 {
2089 send_session_connect (&n->alternative_address); 2126 send_session_connect (&n->alternative_address);
@@ -2146,6 +2183,9 @@ check_blacklist (const struct GNUNET_PeerIdentity *peer,
2146 struct BlackListCheckContext *bcc; 2183 struct BlackListCheckContext *bcc;
2147 struct GST_BlacklistCheck *bc; 2184 struct GST_BlacklistCheck *bc;
2148 2185
2186 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
2187 "Checking peer `%s' against blacklist\n",
2188 GNUNET_i2s (peer));
2149 bcc = GNUNET_new (struct BlackListCheckContext); 2189 bcc = GNUNET_new (struct BlackListCheckContext);
2150 bcc->na.address = GNUNET_HELLO_address_copy (address); 2190 bcc->na.address = GNUNET_HELLO_address_copy (address);
2151 bcc->na.session = session; 2191 bcc->na.session = session;
@@ -2211,6 +2251,11 @@ GST_neighbours_handle_connect (const struct GNUNET_MessageHeader *message,
2211 n->send_connect_ack = 1; 2251 n->send_connect_ack = 1;
2212 n->connect_ack_timestamp = ts; 2252 n->connect_ack_timestamp = ts;
2213 2253
2254 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
2255 "Received SESSION_CONNECT for peer `%s' in state %s/%d\n",
2256 GNUNET_i2s (peer),
2257 print_state (n->state),
2258 n->send_connect_ack);
2214 switch (n->state) 2259 switch (n->state)
2215 { 2260 {
2216 case S_NOT_CONNECTED: 2261 case S_NOT_CONNECTED:
@@ -2312,14 +2357,26 @@ GST_neighbours_switch_to_address (const struct GNUNET_PeerIdentity *peer,
2312 struct NeighbourMapEntry *n; 2357 struct NeighbourMapEntry *n;
2313 struct GNUNET_TRANSPORT_PluginFunctions *papi; 2358 struct GNUNET_TRANSPORT_PluginFunctions *papi;
2314 2359
2315 GNUNET_assert (address->transport_name != NULL); 2360 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
2361 "ATS has decided on an address for peer %s\n",
2362 GNUNET_i2s (peer));
2363 GNUNET_assert (NULL != address->transport_name);
2316 if (NULL == (n = lookup_neighbour (peer))) 2364 if (NULL == (n = lookup_neighbour (peer)))
2365 {
2366 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
2367 "Peer %s is unknown, suggestion ignored\n",
2368 GNUNET_i2s (peer));
2317 return; 2369 return;
2370 }
2318 2371
2319 /* Obtain an session for this address from plugin */ 2372 /* Obtain an session for this address from plugin */
2320 if (NULL == (papi = GST_plugins_find (address->transport_name))) 2373 if (NULL == (papi = GST_plugins_find (address->transport_name)))
2321 { 2374 {
2322 /* we don't have the plugin for this address */ 2375 /* we don't have the plugin for this address */
2376 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
2377 "Plugin `%s' is unknown, suggestion for peer %s ignored\n",
2378 address->transport_name,
2379 GNUNET_i2s (peer));
2323 GNUNET_ATS_address_destroyed (GST_ats, address, NULL); 2380 GNUNET_ATS_address_destroyed (GST_ats, address, NULL);
2324 return; 2381 return;
2325 } 2382 }
diff --git a/src/transport/plugin_transport_tcp.c b/src/transport/plugin_transport_tcp.c
index 60c9f6201..c77d82812 100644
--- a/src/transport/plugin_transport_tcp.c
+++ b/src/transport/plugin_transport_tcp.c
@@ -61,7 +61,7 @@ static uint32_t myoptions;
61struct WelcomeMessage 61struct WelcomeMessage
62{ 62{
63 /** 63 /**
64 * Type is GNUNET_MESSAGE_TYPE_TRANSPORT_TCP_WELCOME. 64 * Type is #GNUNET_MESSAGE_TYPE_TRANSPORT_TCP_WELCOME.
65 */ 65 */
66 struct GNUNET_MessageHeader header; 66 struct GNUNET_MessageHeader header;
67 67
@@ -80,7 +80,7 @@ struct WelcomeMessage
80struct TCP_NAT_ProbeMessage 80struct TCP_NAT_ProbeMessage
81{ 81{
82 /** 82 /**
83 * Type is GNUNET_MESSAGE_TYPE_TRANSPORT_TCP_NAT_PROBE. 83 * Type is #GNUNET_MESSAGE_TYPE_TRANSPORT_TCP_NAT_PROBE.
84 */ 84 */
85 struct GNUNET_MessageHeader header; 85 struct GNUNET_MessageHeader header;
86 86