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.h28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/nat/gnunet-service-nat_helper.h b/src/nat/gnunet-service-nat_helper.h
index 4c39a374c..e655149bc 100644
--- a/src/nat/gnunet-service-nat_helper.h
+++ b/src/nat/gnunet-service-nat_helper.h
@@ -11,12 +11,12 @@
11 WITHOUT ANY WARRANTY; without even the implied warranty of 11 WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Affero General Public License for more details. 13 Affero General Public License for more details.
14 14
15 You should have received a copy of the GNU Affero General Public License 15 You should have received a copy of the GNU Affero General Public License
16 along with this program. If not, see <http://www.gnu.org/licenses/>. 16 along with this program. If not, see <http://www.gnu.org/licenses/>.
17 17
18 SPDX-License-Identifier: AGPL3.0-or-later 18 SPDX-License-Identifier: AGPL3.0-or-later
19*/ 19 */
20 20
21/** 21/**
22 * @file nat/gnunet-service-nat_helper.h 22 * @file nat/gnunet-service-nat_helper.h
@@ -39,11 +39,11 @@ struct HelperContext;
39 * request from another peer. 39 * request from another peer.
40 * 40 *
41 * @param cls closure 41 * @param cls closure
42 * @param ra IP address of the peer who wants us to connect to it 42 * @param ra IP address of the peer who wants us to connect to it
43 */ 43 */
44typedef void 44typedef void
45(*GN_ReversalCallback) (void *cls, 45(*GN_ReversalCallback) (void *cls,
46 const struct sockaddr_in *ra); 46 const struct sockaddr_in *ra);
47 47
48 48
49/** 49/**
@@ -57,12 +57,12 @@ typedef void
57 * @return NULL on error 57 * @return NULL on error
58 */ 58 */
59struct HelperContext * 59struct HelperContext *
60GN_start_gnunet_nat_server_ (const struct in_addr *internal_address, 60GN_start_gnunet_nat_server_(const struct in_addr *internal_address,
61 GN_ReversalCallback cb, 61 GN_ReversalCallback cb,
62 void *cb_cls, 62 void *cb_cls,
63 const struct GNUNET_CONFIGURATION_Handle *cfg); 63 const struct GNUNET_CONFIGURATION_Handle *cfg);
64
64 65
65
66/** 66/**
67 * Start the gnunet-helper-nat-server and process incoming 67 * Start the gnunet-helper-nat-server and process incoming
68 * requests. 68 * requests.
@@ -70,7 +70,7 @@ GN_start_gnunet_nat_server_ (const struct in_addr *internal_address,
70 * @param h helper context to stop 70 * @param h helper context to stop
71 */ 71 */
72void 72void
73GN_stop_gnunet_nat_server_ (struct HelperContext *h); 73GN_stop_gnunet_nat_server_(struct HelperContext *h);
74 74
75 75
76/** 76/**
@@ -86,10 +86,10 @@ GN_stop_gnunet_nat_server_ (struct HelperContext *h);
86 * #GNUNET_OK otherwise 86 * #GNUNET_OK otherwise
87 */ 87 */
88int 88int
89GN_request_connection_reversal (const struct in_addr *internal_address, 89GN_request_connection_reversal(const struct in_addr *internal_address,
90 uint16_t internal_port, 90 uint16_t internal_port,
91 const struct in_addr *remote_v4, 91 const struct in_addr *remote_v4,
92 const struct GNUNET_CONFIGURATION_Handle *cfg); 92 const struct GNUNET_CONFIGURATION_Handle *cfg);
93 93
94 94
95/* end of gnunet-service-nat_helper.h */ 95/* end of gnunet-service-nat_helper.h */