aboutsummaryrefslogtreecommitdiff
path: root/src/nat/gnunet-service-nat_helper.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2016-11-30 08:22:59 +0100
committerChristian Grothoff <christian@grothoff.org>2016-11-30 08:22:59 +0100
commit738cbe38dec2f275994c822631bf3aba02a6e6d0 (patch)
treedb2c234c16aeda98615babac49f2af7636740b21 /src/nat/gnunet-service-nat_helper.h
parente43df97dfdb10903dd53571ab07863d95740592c (diff)
downloadgnunet-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.h15
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
71GN_stop_gnunet_nat_server_ (struct HelperContext *h); 71GN_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 */
84int
85GN_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 */