From 8108e41d89bb771fe8bcf887919de3f581f1cc0d Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Fri, 16 Dec 2016 10:53:58 +0100 Subject: add PORT to NAT configuration, generate nat.conf from nat.conf.in, implement more of new NAT service --- src/nat/gnunet-service-nat_helper.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/nat/gnunet-service-nat_helper.h') diff --git a/src/nat/gnunet-service-nat_helper.h b/src/nat/gnunet-service-nat_helper.h index 861d62c1d..d3f1a757c 100644 --- a/src/nat/gnunet-service-nat_helper.h +++ b/src/nat/gnunet-service-nat_helper.h @@ -77,13 +77,15 @@ GN_stop_gnunet_nat_server_ (struct HelperContext *h); * that peer to connect to us (connection reversal). * * @param internal_address out internal address to use - * @param sa the address of the peer (IPv4-only) + * @param internal_port internal port to use + * @param remote_v4 the address of the peer (IPv4-only) * @return #GNUNET_SYSERR on error, * #GNUNET_OK otherwise */ int -GN_request_connection_reversal (const char *internal_address, - const struct sockaddr_in *sa); +GN_request_connection_reversal (const struct in_addr *internal_address, + uint16_t internal_port, + const struct in_addr *sa); /* end of gnunet-service-nat_helper.h */ -- cgit v1.2.3