diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-10-07 14:15:38 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-10-07 14:15:38 +0000 |
commit | e5bd8fb4aa72717b8707a4652f14c0735acb52c4 (patch) | |
tree | 08398e22b9408cc24b6b9e6cb360fe04b9eeae05 /src/transport/gnunet-service-transport_neighbours.c | |
parent | 572bab1ace57fb9d7acbd218d6940cb1e9a0797b (diff) | |
download | gnunet-e5bd8fb4aa72717b8707a4652f14c0735acb52c4.tar.gz gnunet-e5bd8fb4aa72717b8707a4652f14c0735acb52c4.zip |
determine network scope for ATS even if we do not yet have a session and only have an address
Diffstat (limited to 'src/transport/gnunet-service-transport_neighbours.c')
-rw-r--r-- | src/transport/gnunet-service-transport_neighbours.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/transport/gnunet-service-transport_neighbours.c b/src/transport/gnunet-service-transport_neighbours.c index 01546ded4..461d2669a 100644 --- a/src/transport/gnunet-service-transport_neighbours.c +++ b/src/transport/gnunet-service-transport_neighbours.c | |||
@@ -3530,7 +3530,7 @@ GST_neighbours_handle_session_ack (const struct GNUNET_MessageHeader *message, | |||
3530 | 3530 | ||
3531 | if ( ( (GNUNET_TRANSPORT_PS_SYN_RECV_ACK != n->state) && | 3531 | if ( ( (GNUNET_TRANSPORT_PS_SYN_RECV_ACK != n->state) && |
3532 | (ACK_SEND_ACK != n->ack_state) ) || | 3532 | (ACK_SEND_ACK != n->ack_state) ) || |
3533 | (NULL == n->primary_address.address) ) | 3533 | (NULL == n->primary_address.address) ) |
3534 | { | 3534 | { |
3535 | GNUNET_log (GNUNET_ERROR_TYPE_WARNING, | 3535 | GNUNET_log (GNUNET_ERROR_TYPE_WARNING, |
3536 | "Received unexpected ACK message from peer `%s' in state %s/%s\n", | 3536 | "Received unexpected ACK message from peer `%s' in state %s/%s\n", |
@@ -3850,10 +3850,11 @@ neighbours_iterate (void *cls, | |||
3850 | * Iterate over all connected neighbours. | 3850 | * Iterate over all connected neighbours. |
3851 | * | 3851 | * |
3852 | * @param cb function to call | 3852 | * @param cb function to call |
3853 | * @param cb_cls closure for cb | 3853 | * @param cb_cls closure for @a cb |
3854 | */ | 3854 | */ |
3855 | void | 3855 | void |
3856 | GST_neighbours_iterate (GST_NeighbourIterator cb, void *cb_cls) | 3856 | GST_neighbours_iterate (GST_NeighbourIterator cb, |
3857 | void *cb_cls) | ||
3857 | { | 3858 | { |
3858 | struct IteratorContext ic; | 3859 | struct IteratorContext ic; |
3859 | 3860 | ||
@@ -3930,7 +3931,7 @@ GST_neighbours_start (unsigned int max_fds) | |||
3930 | * | 3931 | * |
3931 | * @param cls unused | 3932 | * @param cls unused |
3932 | * @param key hash of neighbour's public key (not used) | 3933 | * @param key hash of neighbour's public key (not used) |
3933 | * @param value the 'struct NeighbourMapEntry' of the neighbour | 3934 | * @param value the `struct NeighbourMapEntry` of the neighbour |
3934 | * @return #GNUNET_OK (continue to iterate) | 3935 | * @return #GNUNET_OK (continue to iterate) |
3935 | */ | 3936 | */ |
3936 | static int | 3937 | static int |