diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-06-09 21:11:42 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-06-09 21:11:42 +0000 |
commit | 9ffbe0b7a13b6f086f1d8bf5c770ed0476fe040d (patch) | |
tree | 13a3cc30307a6fb712305cec45a22849b978dc0b /src/nat/nat.c | |
parent | 16ff0278c95bcc70dcf0eff25a411f03887bda7c (diff) | |
download | gnunet-9ffbe0b7a13b6f086f1d8bf5c770ed0476fe040d.tar.gz gnunet-9ffbe0b7a13b6f086f1d8bf5c770ed0476fe040d.zip |
pass cfg to nat
Diffstat (limited to 'src/nat/nat.c')
-rw-r--r-- | src/nat/nat.c | 4 |
1 files changed, 3 insertions, 1 deletions
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) | |||
366 | * of the local host's addresses should the external port be mapped. The port | 366 | * of the local host's addresses should the external port be mapped. The port |
367 | * is taken from the corresponding sockaddr_in[6] field. | 367 | * is taken from the corresponding sockaddr_in[6] field. |
368 | * | 368 | * |
369 | * @param cfg configuration to use | ||
369 | * @param addr the local address packets should be redirected to | 370 | * @param addr the local address packets should be redirected to |
370 | * @param addrlen actual lenght of the address | 371 | * @param addrlen actual lenght of the address |
371 | * @param callback function to call everytime the public IP address changes | 372 | * @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) | |||
373 | * @return NULL on error, otherwise handle that can be used to unregister | 374 | * @return NULL on error, otherwise handle that can be used to unregister |
374 | */ | 375 | */ |
375 | struct GNUNET_NAT_Handle * | 376 | struct GNUNET_NAT_Handle * |
376 | GNUNET_NAT_register (const struct sockaddr *addr, | 377 | GNUNET_NAT_register (const struct GNUNET_CONFIGURATION_Handle *cfg, |
378 | const struct sockaddr *addr, | ||
377 | socklen_t addrlen, | 379 | socklen_t addrlen, |
378 | GNUNET_NAT_AddressCallback callback, void *callback_cls) | 380 | GNUNET_NAT_AddressCallback callback, void *callback_cls) |
379 | { | 381 | { |