aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_nat_lib.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-06-09 21:11:42 +0000
committerChristian Grothoff <christian@grothoff.org>2011-06-09 21:11:42 +0000
commit9ffbe0b7a13b6f086f1d8bf5c770ed0476fe040d (patch)
tree13a3cc30307a6fb712305cec45a22849b978dc0b /src/include/gnunet_nat_lib.h
parent16ff0278c95bcc70dcf0eff25a411f03887bda7c (diff)
pass cfg to nat
Diffstat (limited to 'src/include/gnunet_nat_lib.h')
-rw-r--r--src/include/gnunet_nat_lib.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/include/gnunet_nat_lib.h b/src/include/gnunet_nat_lib.h
index 6d158930a2..14da4e6842 100644
--- a/src/include/gnunet_nat_lib.h
+++ b/src/include/gnunet_nat_lib.h
@@ -57,6 +57,7 @@ struct GNUNET_NAT_Handle;
* of the local host's addresses should the external port be mapped. The port
* is taken from the corresponding sockaddr_in[6] field.
*
+ * @param cfg configuration to use
* @param addr the local address packets should be redirected to
* @param addrlen actual lenght of the address
* @param callback function to call everytime the public IP address changes
@@ -64,7 +65,8 @@ struct GNUNET_NAT_Handle;
* @return NULL on error, otherwise handle that can be used to unregister
*/
struct GNUNET_NAT_Handle *
-GNUNET_NAT_register (const struct sockaddr *addr,
+GNUNET_NAT_register (const struct GNUNET_CONFIGURATION_Handle *cfg,
+ const struct sockaddr *addr,
socklen_t addrlen,
GNUNET_NAT_AddressCallback callback,
void *callback_cls);