aboutsummaryrefslogtreecommitdiff
path: root/src/nat
diff options
context:
space:
mode:
authorWillow Liquorice <willow@howhill.com>2022-08-31 22:50:41 +0100
committerWillow Liquorice <willow@howhill.com>2022-10-03 00:44:23 +0100
commitaa3216d58b2e8d8d28a0454818a279d4c09312a3 (patch)
tree53344f1ffbcca6b8d63c56b572106950b83dc3ee /src/nat
parent4d68c9fedf65188fec95205f39dad447e9b1ae44 (diff)
downloadgnunet-aa3216d58b2e8d8d28a0454818a279d4c09312a3.tar.gz
gnunet-aa3216d58b2e8d8d28a0454818a279d4c09312a3.zip
-DOC: Pass through NAT library
Diffstat (limited to 'src/nat')
-rw-r--r--src/nat/nat_api.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/src/nat/nat_api.c b/src/nat/nat_api.c
index 20e7b6ec6..7cf7e6bb3 100644
--- a/src/nat/nat_api.c
+++ b/src/nat/nat_api.c
@@ -362,26 +362,6 @@ do_connect (void *cls)
362} 362}
363 363
364 364
365/**
366 * Attempt to enable port redirection and detect public IP address
367 * contacting UPnP or NAT-PMP routers on the local network. Use @a
368 * addr to specify to which of the local host's addresses should the
369 * external port be mapped. The port is taken from the corresponding
370 * sockaddr_in[6] field. The NAT module should call the given @a
371 * address_callback for any 'plausible' external address.
372 *
373 * @param cfg configuration to use
374 * @param config_section name of the configuration section for optionsx
375 * @param proto protocol this is about, IPPROTO_TCP or IPPROTO_UDP
376 * @param num_addrs number of addresses in @a addrs
377 * @param addrs list of local addresses packets should be redirected to
378 * @param addrlens actual lengths of the addresses in @a addrs
379 * @param address_callback function to call every time the public IP address changes
380 * @param reversal_callback function to call if someone wants connection reversal from us,
381 * NULL if connection reversal is not supported
382 * @param callback_cls closure for callbacks
383 * @return NULL on error, otherwise handle that can be used to unregister
384 */
385struct GNUNET_NAT_Handle * 365struct GNUNET_NAT_Handle *
386GNUNET_NAT_register (const struct GNUNET_CONFIGURATION_Handle *cfg, 366GNUNET_NAT_register (const struct GNUNET_CONFIGURATION_Handle *cfg,
387 const char *config_section, 367 const char *config_section,