aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_nat_auto_service.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/gnunet_nat_auto_service.h')
-rw-r--r--src/include/gnunet_nat_auto_service.h15
1 files changed, 4 insertions, 11 deletions
diff --git a/src/include/gnunet_nat_auto_service.h b/src/include/gnunet_nat_auto_service.h
index c458dc81a..a369c49e0 100644
--- a/src/include/gnunet_nat_auto_service.h
+++ b/src/include/gnunet_nat_auto_service.h
@@ -45,16 +45,12 @@ struct GNUNET_NAT_AUTO_Test;
45 45
46 46
47/** 47/**
48 * Start testing if NAT traversal works using the given configuration 48 * Start testing if NAT traversal works using the given configuration.
49 * (IPv4-only). The transport adapters should be down while using 49 * The transport adapters should be down while using this function.
50 * this function.
51 * 50 *
52 * @param cfg configuration for the NAT traversal 51 * @param cfg configuration for the NAT traversal
53 * @param proto protocol to test, i.e. IPPROTO_TCP or IPPROTO_UDP 52 * @param proto protocol to test, i.e. IPPROTO_TCP or IPPROTO_UDP
54 * @param bind_ip IPv4 address to bind to 53 * @param section_name configuration section to use for configuration
55 * @param bnd_port port to bind to, 0 to test connection reversal
56 * @param extern_ip IPv4 address to externally advertise
57 * @param extern_port externally advertised port to use
58 * @param report function to call with the result of the test 54 * @param report function to call with the result of the test
59 * @param report_cls closure for @a report 55 * @param report_cls closure for @a report
60 * @return handle to cancel NAT test 56 * @return handle to cancel NAT test
@@ -62,10 +58,7 @@ struct GNUNET_NAT_AUTO_Test;
62struct GNUNET_NAT_AUTO_Test * 58struct GNUNET_NAT_AUTO_Test *
63GNUNET_NAT_AUTO_test_start (const struct GNUNET_CONFIGURATION_Handle *cfg, 59GNUNET_NAT_AUTO_test_start (const struct GNUNET_CONFIGURATION_Handle *cfg,
64 uint8_t proto, 60 uint8_t proto,
65 struct in_addr bind_ip, 61 const char *section_name,
66 uint16_t bnd_port,
67 struct in_addr extern_ip,
68 uint16_t extern_port,
69 GNUNET_NAT_TestCallback report, 62 GNUNET_NAT_TestCallback report,
70 void *report_cls); 63 void *report_cls);
71 64