summaryrefslogtreecommitdiff
path: root/src/nat-auto
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2019-01-28 13:50:12 +0100
committerChristian Grothoff <christian@grothoff.org>2019-01-28 13:50:12 +0100
commit5f8301275181a3349e2df231d7e3c530d6c4d8e9 (patch)
tree0ab115475baa1af9af1765eb670a2f415ba25e5a /src/nat-auto
parent0157a38006025eecbed40d04153817a5df0d0e6a (diff)
improve NAT API: allow client to store associated data with address
Diffstat (limited to 'src/nat-auto')
-rw-r--r--src/nat-auto/nat_auto_api_test.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nat-auto/nat_auto_api_test.c b/src/nat-auto/nat_auto_api_test.c
index 42ce08721..1511d91ba 100644
--- a/src/nat-auto/nat_auto_api_test.c
+++ b/src/nat-auto/nat_auto_api_test.c
@@ -357,6 +357,8 @@ mq_error_handler (void *cls,
* Address-callback, used to send message to gnunet-nat-server.
*
* @param cls closure
+ * @param app_ctx[in,out] location where the app can store stuff
+ * on add and retrieve it on remove
* @param add_remove #GNUNET_YES to mean the new public IP address, #GNUNET_NO to mean
* the previous (now invalid) one
* @param ac address class the address belongs to
@@ -365,6 +367,7 @@ mq_error_handler (void *cls,
*/
static void
addr_cb (void *cls,
+ void **app_ctx,
int add_remove,
enum GNUNET_NAT_AddressClass ac,
const struct sockaddr *addr,
@@ -376,6 +379,7 @@ addr_cb (void *cls,
struct GNUNET_NAT_AUTO_TestMessage *msg;
const struct sockaddr_in *sa;
+ (void) app_ctx;
if (GNUNET_YES != add_remove)
return;
if (addrlen != sizeof (struct sockaddr_in))