aboutsummaryrefslogtreecommitdiff
path: root/src/include
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
parent16ff0278c95bcc70dcf0eff25a411f03887bda7c (diff)
downloadgnunet-9ffbe0b7a13b6f086f1d8bf5c770ed0476fe040d.tar.gz
gnunet-9ffbe0b7a13b6f086f1d8bf5c770ed0476fe040d.zip
pass cfg to nat
Diffstat (limited to 'src/include')
-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 6d158930a..14da4e684 100644
--- a/src/include/gnunet_nat_lib.h
+++ b/src/include/gnunet_nat_lib.h
@@ -57,6 +57,7 @@ struct GNUNET_NAT_Handle;
57 * of the local host's addresses should the external port be mapped. The port 57 * of the local host's addresses should the external port be mapped. The port
58 * is taken from the corresponding sockaddr_in[6] field. 58 * is taken from the corresponding sockaddr_in[6] field.
59 * 59 *
60 * @param cfg configuration to use
60 * @param addr the local address packets should be redirected to 61 * @param addr the local address packets should be redirected to
61 * @param addrlen actual lenght of the address 62 * @param addrlen actual lenght of the address
62 * @param callback function to call everytime the public IP address changes 63 * @param callback function to call everytime the public IP address changes
@@ -64,7 +65,8 @@ struct GNUNET_NAT_Handle;
64 * @return NULL on error, otherwise handle that can be used to unregister 65 * @return NULL on error, otherwise handle that can be used to unregister
65 */ 66 */
66struct GNUNET_NAT_Handle * 67struct GNUNET_NAT_Handle *
67GNUNET_NAT_register (const struct sockaddr *addr, 68GNUNET_NAT_register (const struct GNUNET_CONFIGURATION_Handle *cfg,
69 const struct sockaddr *addr,
68 socklen_t addrlen, 70 socklen_t addrlen,
69 GNUNET_NAT_AddressCallback callback, 71 GNUNET_NAT_AddressCallback callback,
70 void *callback_cls); 72 void *callback_cls);