diff options
author | Supriti Singh <supritisingh08@gmail.com> | 2014-02-17 15:57:11 +0000 |
---|---|---|
committer | Supriti Singh <supritisingh08@gmail.com> | 2014-02-17 15:57:11 +0000 |
commit | 85755103143297d41ccf63c68492822e9b951495 (patch) | |
tree | 2e670cf704d6d4c377406e0551135e1f7af4324f /src/dht/gnunet-service-dht_neighbours.c | |
parent | 1d6824b116658d2490aaa1a5d1662e3857e86d3f (diff) | |
download | gnunet-85755103143297d41ccf63c68492822e9b951495.tar.gz gnunet-85755103143297d41ccf63c68492822e9b951495.zip |
1.Modified struct PeerTrailSetupMessage and PeerTrailSetupResultMessage.
2.Handling trail setup result message.
Diffstat (limited to 'src/dht/gnunet-service-dht_neighbours.c')
-rw-r--r-- | src/dht/gnunet-service-dht_neighbours.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dht/gnunet-service-dht_neighbours.c b/src/dht/gnunet-service-dht_neighbours.c index 0ee29ec49..0cf46f562 100644 --- a/src/dht/gnunet-service-dht_neighbours.c +++ b/src/dht/gnunet-service-dht_neighbours.c | |||
@@ -645,7 +645,7 @@ handle_core_connect (void *cls, const struct GNUNET_PeerIdentity *peer) | |||
645 | struct PeerInfo *ret; | 645 | struct PeerInfo *ret; |
646 | struct GNUNET_HashCode phash; | 646 | struct GNUNET_HashCode phash; |
647 | int peer_bucket; | 647 | int peer_bucket; |
648 | 648 | ||
649 | /* Check for connect to self message */ | 649 | /* Check for connect to self message */ |
650 | if (0 == memcmp (&my_identity, peer, sizeof (struct GNUNET_PeerIdentity))) | 650 | if (0 == memcmp (&my_identity, peer, sizeof (struct GNUNET_PeerIdentity))) |
651 | return; | 651 | return; |
@@ -784,7 +784,7 @@ core_transmit_notify (void *cls, size_t size, void *buf) | |||
784 | struct P2PPendingMessage *pending; | 784 | struct P2PPendingMessage *pending; |
785 | size_t off; | 785 | size_t off; |
786 | size_t msize; | 786 | size_t msize; |
787 | 787 | ||
788 | peer->th = NULL; | 788 | peer->th = NULL; |
789 | while ((NULL != (pending = peer->head)) && | 789 | while ((NULL != (pending = peer->head)) && |
790 | (0 == GNUNET_TIME_absolute_get_remaining (pending->timeout).rel_value_us)) | 790 | (0 == GNUNET_TIME_absolute_get_remaining (pending->timeout).rel_value_us)) |