aboutsummaryrefslogtreecommitdiff
path: root/src/setup/gnunet-setup-transport.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/setup/gnunet-setup-transport.c')
-rw-r--r--src/setup/gnunet-setup-transport.c21
1 files changed, 14 insertions, 7 deletions
diff --git a/src/setup/gnunet-setup-transport.c b/src/setup/gnunet-setup-transport.c
index c43640b5..6064410c 100644
--- a/src/setup/gnunet-setup-transport.c
+++ b/src/setup/gnunet-setup-transport.c
@@ -142,7 +142,7 @@ next_phase (struct GNUNET_SetupAutoContext *ac);
142/** 142/**
143 * Update the ICMP server button based on the result. 143 * Update the ICMP server button based on the result.
144 * 144 *
145 * @param on GNUNET_YES to enable, GNUNET_NO to disable 145 * @param on #GNUNET_YES to enable, #GNUNET_NO to disable
146 */ 146 */
147static void 147static void
148update_icmp_server_enable_button (int on) 148update_icmp_server_enable_button (int on)
@@ -166,10 +166,12 @@ update_icmp_server_enable_button (int on)
166 * Clean up and update GUI (with success). 166 * Clean up and update GUI (with success).
167 * 167 *
168 * @param cls closure (unused) 168 * @param cls closure (unused)
169 * @param success currently always GNUNET_OK 169 * @param success currently always #GNUNET_OK
170 * @param emsg error message, NULL on success
170 */ 171 */
171static void 172static void
172result_callback (void *cls, int success) 173result_callback (void *cls, int success,
174 const char *emsg)
173{ 175{
174 struct GNUNET_SetupAutoContext *ac = cls; 176 struct GNUNET_SetupAutoContext *ac = cls;
175 177
@@ -197,7 +199,8 @@ result_callback (void *cls, int success)
197 * @param tc scheduler callback 199 * @param tc scheduler callback
198 */ 200 */
199static void 201static void
200fail_timeout (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) 202fail_timeout (void *cls,
203 const struct GNUNET_SCHEDULER_TaskContext *tc)
201{ 204{
202 struct GNUNET_SetupAutoContext *ac = cls; 205 struct GNUNET_SetupAutoContext *ac = cls;
203 206
@@ -221,7 +224,8 @@ fail_timeout (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
221 * @param tc scheduler context 224 * @param tc scheduler context
222 */ 225 */
223static void 226static void
224reversal_test (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) 227reversal_test (void *cls,
228 const struct GNUNET_SCHEDULER_TaskContext *tc)
225{ 229{
226 struct GNUNET_SetupAutoContext *ac = cls; 230 struct GNUNET_SetupAutoContext *ac = cls;
227 231
@@ -257,9 +261,12 @@ test_online (struct GNUNET_SetupAutoContext *ac)
257 * 261 *
258 * @param cls closure with our setup context 262 * @param cls closure with our setup context
259 * @param addr the address, NULL on errors 263 * @param addr the address, NULL on errors
264 * @param emsg error message, NULL on success
260 */ 265 */
261static void 266static void
262set_external_ipv4 (void *cls, const struct in_addr *addr) 267set_external_ipv4 (void *cls,
268 const struct in_addr *addr,
269 const char *emsg)
263{ 270{
264 struct GNUNET_SetupAutoContext *ac = cls; 271 struct GNUNET_SetupAutoContext *ac = cls;
265 char buf[INET_ADDRSTRLEN]; 272 char buf[INET_ADDRSTRLEN];
@@ -325,7 +332,7 @@ test_external_ip (struct GNUNET_SetupAutoContext *ac)
325 * @param broadcast_addr the broadcast address (can be NULL for unknown or unassigned) 332 * @param broadcast_addr the broadcast address (can be NULL for unknown or unassigned)
326 * @param netmask the network mask (can be NULL for unknown or unassigned)) 333 * @param netmask the network mask (can be NULL for unknown or unassigned))
327 * @param addrlen length of the address 334 * @param addrlen length of the address
328 * @return GNUNET_OK to continue iteration, GNUNET_SYSERR to abort 335 * @return #GNUNET_OK to continue iteration, #GNUNET_SYSERR to abort
329 */ 336 */
330static int 337static int
331nipo (void *cls, const char *name, int isDefault, const struct sockaddr *addr, 338nipo (void *cls, const char *name, int isDefault, const struct sockaddr *addr,