aboutsummaryrefslogtreecommitdiff
path: root/src/nat/gnunet-service-nat_helper.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2016-12-16 10:53:58 +0100
committerChristian Grothoff <christian@grothoff.org>2016-12-16 10:53:58 +0100
commit8108e41d89bb771fe8bcf887919de3f581f1cc0d (patch)
tree970c382485c663f8c8516b59e34790d33878dbfb /src/nat/gnunet-service-nat_helper.h
parentf88d55e43f3d3a4468c2faa0621044ad17594e5f (diff)
downloadgnunet-8108e41d89bb771fe8bcf887919de3f581f1cc0d.tar.gz
gnunet-8108e41d89bb771fe8bcf887919de3f581f1cc0d.zip
add PORT to NAT configuration, generate nat.conf from nat.conf.in, implement more of new NAT service
Diffstat (limited to 'src/nat/gnunet-service-nat_helper.h')
-rw-r--r--src/nat/gnunet-service-nat_helper.h8
1 files changed, 5 insertions, 3 deletions
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);
77 * that peer to connect to us (connection reversal). 77 * that peer to connect to us (connection reversal).
78 * 78 *
79 * @param internal_address out internal address to use 79 * @param internal_address out internal address to use
80 * @param sa the address of the peer (IPv4-only) 80 * @param internal_port internal port to use
81 * @param remote_v4 the address of the peer (IPv4-only)
81 * @return #GNUNET_SYSERR on error, 82 * @return #GNUNET_SYSERR on error,
82 * #GNUNET_OK otherwise 83 * #GNUNET_OK otherwise
83 */ 84 */
84int 85int
85GN_request_connection_reversal (const char *internal_address, 86GN_request_connection_reversal (const struct in_addr *internal_address,
86 const struct sockaddr_in *sa); 87 uint16_t internal_port,
88 const struct in_addr *sa);
87 89
88 90
89/* end of gnunet-service-nat_helper.h */ 91/* end of gnunet-service-nat_helper.h */