aboutsummaryrefslogtreecommitdiff
path: root/src/nat/gnunet-service-nat_helper.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/nat/gnunet-service-nat_helper.h')
-rw-r--r--src/nat/gnunet-service-nat_helper.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/nat/gnunet-service-nat_helper.h b/src/nat/gnunet-service-nat_helper.h
index d9294d949..e2f7e3355 100644
--- a/src/nat/gnunet-service-nat_helper.h
+++ b/src/nat/gnunet-service-nat_helper.h
@@ -53,12 +53,14 @@ typedef void
53 * @param internal_address 53 * @param internal_address
54 * @param cb function to call if we receive a request 54 * @param cb function to call if we receive a request
55 * @param cb_cls closure for @a cb 55 * @param cb_cls closure for @a cb
56 * @param cfg Handle to the GNUnet configuration
56 * @return NULL on error 57 * @return NULL on error
57 */ 58 */
58struct HelperContext * 59struct HelperContext *
59GN_start_gnunet_nat_server_ (const struct in_addr *internal_address, 60GN_start_gnunet_nat_server_ (const struct in_addr *internal_address,
60 GN_ReversalCallback cb, 61 GN_ReversalCallback cb,
61 void *cb_cls); 62 void *cb_cls,
63 const struct GNUNET_CONFIGURATION_Handle *cfg);
62 64
63 65
64/** 66/**
@@ -77,15 +79,17 @@ GN_stop_gnunet_nat_server_ (struct HelperContext *h);
77 * that peer to connect to us (connection reversal). 79 * that peer to connect to us (connection reversal).
78 * 80 *
79 * @param internal_address out internal address to use 81 * @param internal_address out internal address to use
80 * @param internal_port internal port to use 82 * @param internal_port port to use
81 * @param remote_v4 the address of the peer (IPv4-only) 83 * @param remote_v4 the address of the peer (IPv4-only)
84 * @param cfg handle to the GNUnet configuration
82 * @return #GNUNET_SYSERR on error, 85 * @return #GNUNET_SYSERR on error,
83 * #GNUNET_OK otherwise 86 * #GNUNET_OK otherwise
84 */ 87 */
85int 88int
86GN_request_connection_reversal (const struct in_addr *internal_address, 89GN_request_connection_reversal (const struct in_addr *internal_address,
87 uint16_t internal_port, 90 uint16_t internal_port,
88 const struct in_addr *sa); 91 const struct in_addr *remote_v4,
92 const struct GNUNET_CONFIGURATION_Handle *cfg);
89 93
90 94
91/* end of gnunet-service-nat_helper.h */ 95/* end of gnunet-service-nat_helper.h */