diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-11-30 08:22:59 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-11-30 08:22:59 +0100 |
commit | 738cbe38dec2f275994c822631bf3aba02a6e6d0 (patch) | |
tree | db2c234c16aeda98615babac49f2af7636740b21 /src/nat/gnunet-service-nat_helper.h | |
parent | e43df97dfdb10903dd53571ab07863d95740592c (diff) | |
download | gnunet-738cbe38dec2f275994c822631bf3aba02a6e6d0.tar.gz gnunet-738cbe38dec2f275994c822631bf3aba02a6e6d0.zip |
moving basic logic for launching nat-client helper to new NAT service
Diffstat (limited to 'src/nat/gnunet-service-nat_helper.h')
-rw-r--r-- | src/nat/gnunet-service-nat_helper.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/nat/gnunet-service-nat_helper.h b/src/nat/gnunet-service-nat_helper.h index c3074d9ad..861d62c1d 100644 --- a/src/nat/gnunet-service-nat_helper.h +++ b/src/nat/gnunet-service-nat_helper.h | |||
@@ -71,4 +71,19 @@ void | |||
71 | GN_stop_gnunet_nat_server_ (struct HelperContext *h); | 71 | GN_stop_gnunet_nat_server_ (struct HelperContext *h); |
72 | 72 | ||
73 | 73 | ||
74 | /** | ||
75 | * We want to connect to a peer that is behind NAT. Run the | ||
76 | * gnunet-helper-nat-client to send dummy ICMP responses to cause | ||
77 | * that peer to connect to us (connection reversal). | ||
78 | * | ||
79 | * @param internal_address out internal address to use | ||
80 | * @param sa the address of the peer (IPv4-only) | ||
81 | * @return #GNUNET_SYSERR on error, | ||
82 | * #GNUNET_OK otherwise | ||
83 | */ | ||
84 | int | ||
85 | GN_request_connection_reversal (const char *internal_address, | ||
86 | const struct sockaddr_in *sa); | ||
87 | |||
88 | |||
74 | /* end of gnunet-service-nat_helper.h */ | 89 | /* end of gnunet-service-nat_helper.h */ |