diff options
author | Christian Grothoff <christian@grothoff.org> | 2017-01-10 18:50:16 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2017-01-10 18:50:16 +0100 |
commit | 07c8655e1ee8aa603def55b018222f3244235d1e (patch) | |
tree | 705267efc5a1628532ada0786955ab32dfeff0dc /src/include/gnunet_nat_auto_service.h | |
parent | ea5a38ca2537d0892049dc3ce64576d2a9bafa97 (diff) | |
download | gnunet-07c8655e1ee8aa603def55b018222f3244235d1e.tar.gz gnunet-07c8655e1ee8aa603def55b018222f3244235d1e.zip |
fix misc compilation issues in nat-auto
Diffstat (limited to 'src/include/gnunet_nat_auto_service.h')
-rw-r--r-- | src/include/gnunet_nat_auto_service.h | 15 |
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; | |||
62 | struct GNUNET_NAT_AUTO_Test * | 58 | struct GNUNET_NAT_AUTO_Test * |
63 | GNUNET_NAT_AUTO_test_start (const struct GNUNET_CONFIGURATION_Handle *cfg, | 59 | GNUNET_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 | ||