diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-12-16 10:53:58 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-12-16 10:53:58 +0100 |
commit | 8108e41d89bb771fe8bcf887919de3f581f1cc0d (patch) | |
tree | 970c382485c663f8c8516b59e34790d33878dbfb /src/nat/gnunet-service-nat_helper.h | |
parent | f88d55e43f3d3a4468c2faa0621044ad17594e5f (diff) | |
download | gnunet-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.h | 8 |
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 | */ |
84 | int | 85 | int |
85 | GN_request_connection_reversal (const char *internal_address, | 86 | GN_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 */ |