diff options
Diffstat (limited to 'src/transport')
-rw-r--r-- | src/transport/gnunet-service-transport.c | 2 | ||||
-rw-r--r-- | src/transport/gnunet-service-transport_hello.c | 3 | ||||
-rw-r--r-- | src/transport/gnunet-service-transport_hello.h | 7 |
3 files changed, 3 insertions, 9 deletions
diff --git a/src/transport/gnunet-service-transport.c b/src/transport/gnunet-service-transport.c index d8733fbb3..537f99dcf 100644 --- a/src/transport/gnunet-service-transport.c +++ b/src/transport/gnunet-service-transport.c | |||
@@ -92,7 +92,7 @@ transmit_our_hello (void *cls, const struct GNUNET_PeerIdentity *target, | |||
92 | const struct GNUNET_MessageHeader *hello = cls; | 92 | const struct GNUNET_MessageHeader *hello = cls; |
93 | 93 | ||
94 | GST_neighbours_send (target, (const char *) hello, ntohs (hello->size), | 94 | GST_neighbours_send (target, (const char *) hello, ntohs (hello->size), |
95 | GST_HELLO_ADDRESS_EXPIRATION, NULL, NULL); | 95 | GNUNET_CONSTANTS_HELLO_ADDRESS_EXPIRATION, NULL, NULL); |
96 | } | 96 | } |
97 | 97 | ||
98 | 98 | ||
diff --git a/src/transport/gnunet-service-transport_hello.c b/src/transport/gnunet-service-transport_hello.c index 2793ce5eb..a1c721857 100644 --- a/src/transport/gnunet-service-transport_hello.c +++ b/src/transport/gnunet-service-transport_hello.c | |||
@@ -24,6 +24,7 @@ | |||
24 | * @author Christian Grothoff | 24 | * @author Christian Grothoff |
25 | */ | 25 | */ |
26 | #include "platform.h" | 26 | #include "platform.h" |
27 | #include "gnunet_constants.h" | ||
27 | #include "gnunet_hello_lib.h" | 28 | #include "gnunet_hello_lib.h" |
28 | #include "gnunet_peerinfo_service.h" | 29 | #include "gnunet_peerinfo_service.h" |
29 | #include "gnunet_statistics_service.h" | 30 | #include "gnunet_statistics_service.h" |
@@ -165,7 +166,7 @@ refresh_hello_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
165 | hello_task = GNUNET_SCHEDULER_NO_TASK; | 166 | hello_task = GNUNET_SCHEDULER_NO_TASK; |
166 | gc.addr_pos = oal_head; | 167 | gc.addr_pos = oal_head; |
167 | gc.expiration = | 168 | gc.expiration = |
168 | GNUNET_TIME_relative_to_absolute (GST_HELLO_ADDRESS_EXPIRATION); | 169 | GNUNET_TIME_relative_to_absolute (GNUNET_CONSTANTS_HELLO_ADDRESS_EXPIRATION); |
169 | GNUNET_free (our_hello); | 170 | GNUNET_free (our_hello); |
170 | our_hello = GNUNET_HELLO_create (&GST_my_public_key, &address_generator, &gc); | 171 | our_hello = GNUNET_HELLO_create (&GST_my_public_key, &address_generator, &gc); |
171 | #if DEBUG_TRANSPORT | 172 | #if DEBUG_TRANSPORT |
diff --git a/src/transport/gnunet-service-transport_hello.h b/src/transport/gnunet-service-transport_hello.h index 153b7447e..8d15ec6b5 100644 --- a/src/transport/gnunet-service-transport_hello.h +++ b/src/transport/gnunet-service-transport_hello.h | |||
@@ -31,13 +31,6 @@ | |||
31 | #include "gnunet_util_lib.h" | 31 | #include "gnunet_util_lib.h" |
32 | 32 | ||
33 | 33 | ||
34 | /** | ||
35 | * After how long do we expire an address in a HELLO that we just | ||
36 | * validated? This value is also used for our own addresses when we | ||
37 | * create a HELLO. | ||
38 | */ | ||
39 | #define GST_HELLO_ADDRESS_EXPIRATION GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_HOURS, 12) | ||
40 | |||
41 | 34 | ||
42 | /** | 35 | /** |
43 | * Signature of a function to call whenever our hello changes. | 36 | * Signature of a function to call whenever our hello changes. |