diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2013-05-14 08:33:14 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2013-05-14 08:33:14 +0000 |
commit | 845c1c5a2825fb8120fab349ac22113396bb5eea (patch) | |
tree | 2fdae121cf091bc7274d07f2f070a4a931ba8fb6 /src/transport/gnunet-service-transport_neighbours.c | |
parent | 72069b90f7bc3bc6a98a7ae4e447006349863b36 (diff) | |
download | gnunet-845c1c5a2825fb8120fab349ac22113396bb5eea.tar.gz gnunet-845c1c5a2825fb8120fab349ac22113396bb5eea.zip |
compile error in udp
additional debug messages for transport connections
Diffstat (limited to 'src/transport/gnunet-service-transport_neighbours.c')
-rw-r--r-- | src/transport/gnunet-service-transport_neighbours.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/transport/gnunet-service-transport_neighbours.c b/src/transport/gnunet-service-transport_neighbours.c index 8886a344c..32a0706dc 100644 --- a/src/transport/gnunet-service-transport_neighbours.c +++ b/src/transport/gnunet-service-transport_neighbours.c | |||
@@ -1840,12 +1840,16 @@ GST_neighbours_try_connect (const struct GNUNET_PeerIdentity *target) | |||
1840 | struct NeighbourMapEntry *n; | 1840 | struct NeighbourMapEntry *n; |
1841 | 1841 | ||
1842 | if (NULL == neighbours) | 1842 | if (NULL == neighbours) |
1843 | return; /* during shutdown, do nothing */ | 1843 | { |
1844 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | ||
1845 | "Asked to connect to peer `%s' during shutdown\n", | ||
1846 | GNUNET_i2s (target)); | ||
1847 | return; /* during shutdown, do nothing */ | ||
1848 | } | ||
1844 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 1849 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
1845 | "Asked to connect to peer `%s'\n", | 1850 | "Asked to connect to peer `%s'\n", |
1846 | GNUNET_i2s (target)); | 1851 | GNUNET_i2s (target)); |
1847 | if (0 == | 1852 | if (0 == memcmp (target, &GST_my_identity, sizeof (struct GNUNET_PeerIdentity))) |
1848 | memcmp (target, &GST_my_identity, sizeof (struct GNUNET_PeerIdentity))) | ||
1849 | { | 1853 | { |
1850 | /* refuse to connect to myself */ | 1854 | /* refuse to connect to myself */ |
1851 | /* FIXME: can this happen? Is this not an API violation? */ | 1855 | /* FIXME: can this happen? Is this not an API violation? */ |