aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_tun_lib.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2016-08-25 12:51:21 +0000
committerChristian Grothoff <christian@grothoff.org>2016-08-25 12:51:21 +0000
commitccf6004e61a5379954aed85be6ed49ab7e886a7d (patch)
tree31b63266ea85235a126aa618126e2f836eb4eef2 /src/include/gnunet_tun_lib.h
parent182fae1b29eafe14018d45beb9613725651a779c (diff)
downloadgnunet-ccf6004e61a5379954aed85be6ed49ab7e886a7d.tar.gz
gnunet-ccf6004e61a5379954aed85be6ed49ab7e886a7d.zip
ensure binding multiple ports to the same service descriptor works (again) with the correct mapping of ports
Diffstat (limited to 'src/include/gnunet_tun_lib.h')
-rw-r--r--src/include/gnunet_tun_lib.h17
1 files changed, 16 insertions, 1 deletions
diff --git a/src/include/gnunet_tun_lib.h b/src/include/gnunet_tun_lib.h
index 9b98ab13b..822a661cf 100644
--- a/src/include/gnunet_tun_lib.h
+++ b/src/include/gnunet_tun_lib.h
@@ -910,12 +910,27 @@ GNUNET_TUN_ipv4policy2regex (const char *policy);
910 * the network. 910 * the network.
911 * 911 *
912 * @param service_name a string 912 * @param service_name a string
913 * @param hc corresponding hash 913 * @param[out] hc corresponding hash
914 */ 914 */
915void 915void
916GNUNET_TUN_service_name_to_hash (const char *service_name, 916GNUNET_TUN_service_name_to_hash (const char *service_name,
917 struct GNUNET_HashCode *hc); 917 struct GNUNET_HashCode *hc);
918 918
919
920/**
921 * Compute the CADET port given a service descriptor
922 * (returned from #GNUNET_TUN_service_name_to_hash) and
923 * a TCP/UDP port @a ip_port.
924 *
925 * @param desc service shared secret
926 * @param ip_port TCP/UDP port, use 0 for ICMP
927 * @param[out] cadet_port CADET port to use
928 */
929void
930GNUNET_TUN_compute_service_cadet_port (const struct GNUNET_HashCode *desc,
931 uint16_t ip_port,
932 struct GNUNET_HashCode *cadet_port);
933
919#endif 934#endif
920 935
921/** @} */ /* end of group */ 936/** @} */ /* end of group */