From 9ffbe0b7a13b6f086f1d8bf5c770ed0476fe040d Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Thu, 9 Jun 2011 21:11:42 +0000 Subject: pass cfg to nat --- src/nat/nat.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/nat/nat.c') diff --git a/src/nat/nat.c b/src/nat/nat.c index ca6df0573..7e83134bd 100644 --- a/src/nat/nat.c +++ b/src/nat/nat.c @@ -366,6 +366,7 @@ nat_pulse (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) * 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 @@ -373,7 +374,8 @@ nat_pulse (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) * @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) { -- cgit v1.2.3