aboutsummaryrefslogtreecommitdiff
path: root/src/pt/test_gnunet_vpn.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pt/test_gnunet_vpn.c')
-rw-r--r--src/pt/test_gnunet_vpn.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/pt/test_gnunet_vpn.c b/src/pt/test_gnunet_vpn.c
index 975cb7ee0..7e83fdcd1 100644
--- a/src/pt/test_gnunet_vpn.c
+++ b/src/pt/test_gnunet_vpn.c
@@ -357,7 +357,7 @@ run (void *cls, const struct GNUNET_CONFIGURATION_Handle *cfg,
357 struct in6_addr v6; 357 struct in6_addr v6;
358 void *addr; 358 void *addr;
359 enum MHD_FLAG flags; 359 enum MHD_FLAG flags;
360 360
361 vpn = GNUNET_VPN_connect (cfg); 361 vpn = GNUNET_VPN_connect (cfg);
362 GNUNET_assert (NULL != vpn); 362 GNUNET_assert (NULL != vpn);
363 flags = MHD_USE_DEBUG; 363 flags = MHD_USE_DEBUG;
@@ -366,8 +366,8 @@ run (void *cls, const struct GNUNET_CONFIGURATION_Handle *cfg,
366 mhd = 366 mhd =
367 MHD_start_daemon (flags, PORT, NULL, NULL, &mhd_ahc, NULL, 367 MHD_start_daemon (flags, PORT, NULL, NULL, &mhd_ahc, NULL,
368 MHD_OPTION_END); 368 MHD_OPTION_END);
369 369
370 370
371 GNUNET_assert (NULL != mhd); 371 GNUNET_assert (NULL != mhd);
372 mhd_main (); 372 mhd_main ();
373 addr = NULL; 373 addr = NULL;
@@ -384,7 +384,7 @@ run (void *cls, const struct GNUNET_CONFIGURATION_Handle *cfg,
384 default: 384 default:
385 GNUNET_assert (0); 385 GNUNET_assert (0);
386 } 386 }
387 rr = GNUNET_VPN_redirect_to_ip (vpn, src_af, dest_af, addr, 387 rr = GNUNET_VPN_redirect_to_ip (vpn, src_af, dest_af, addr,
388 GNUNET_TIME_UNIT_FOREVER_ABS, &allocation_cb, 388 GNUNET_TIME_UNIT_FOREVER_ABS, &allocation_cb,
389 NULL); 389 NULL);
390 ctrl_c_task_id = 390 ctrl_c_task_id =
@@ -436,7 +436,7 @@ main (int argc, char *const *argv)
436 return 1; 436 return 1;
437 } 437 }
438 type++; 438 type++;
439 /* on Windows, .exe is suffixed to these binaries, 439 /* on Windows, .exe is suffixed to these binaries,
440 * thus cease comparison after the 6th char. 440 * thus cease comparison after the 6th char.
441 */ 441 */
442 if (0 == strncmp (type, "4_to_6",6)) 442 if (0 == strncmp (type, "4_to_6",6))
@@ -468,7 +468,7 @@ main (int argc, char *const *argv)
468 fprintf (stderr, "invalid binary suffix `%s'\n", type); 468 fprintf (stderr, "invalid binary suffix `%s'\n", type);
469 return 1; 469 return 1;
470 } 470 }
471 if ((GNUNET_OK != GNUNET_NETWORK_test_pf (src_af)) || 471 if ((GNUNET_OK != GNUNET_NETWORK_test_pf (src_af)) ||
472 (GNUNET_OK != GNUNET_NETWORK_test_pf (dest_af))) 472 (GNUNET_OK != GNUNET_NETWORK_test_pf (dest_af)))
473 { 473 {
474 fprintf (stderr, 474 fprintf (stderr,
@@ -483,8 +483,8 @@ main (int argc, char *const *argv)
483 if (0 != 483 if (0 !=
484 GNUNET_TESTING_peer_run ("test-gnunet-vpn", "test_gnunet_vpn.conf", &run, 484 GNUNET_TESTING_peer_run ("test-gnunet-vpn", "test_gnunet_vpn.conf", &run,
485 NULL)) 485 NULL))
486 return 1; 486 return 1;
487 GNUNET_DISK_directory_remove ("/tmp/gnunet-test-vpn"); 487 GNUNET_DISK_directory_remove ("/tmp/gnunet-test-vpn");
488 return global_ret; 488 return global_ret;
489} 489}
490 490