aboutsummaryrefslogtreecommitdiff
path: root/src/transport/plugin_transport_tcp.c
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/transport/plugin_transport_tcp.c
parent0157a38006025eecbed40d04153817a5df0d0e6a (diff)
downloadgnunet-5f8301275181a3349e2df231d7e3c530d6c4d8e9.tar.gz
gnunet-5f8301275181a3349e2df231d7e3c530d6c4d8e9.zip
improve NAT API: allow client to store associated data with address
Diffstat (limited to 'src/transport/plugin_transport_tcp.c')
-rw-r--r--src/transport/plugin_transport_tcp.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/transport/plugin_transport_tcp.c b/src/transport/plugin_transport_tcp.c
index 5afea593f..d93c4423c 100644
--- a/src/transport/plugin_transport_tcp.c
+++ b/src/transport/plugin_transport_tcp.c
@@ -1430,6 +1430,8 @@ notify_session_monitor (struct Plugin *plugin,
1430 * Our external IP address/port mapping has changed. 1430 * Our external IP address/port mapping has changed.
1431 * 1431 *
1432 * @param cls closure, the `struct Plugin` 1432 * @param cls closure, the `struct Plugin`
1433 * @param app_ctx[in,out] location where the app can store stuff
1434 * on add and retrieve it on remove
1433 * @param add_remove #GNUNET_YES to mean the new public IP address, #GNUNET_NO to mean 1435 * @param add_remove #GNUNET_YES to mean the new public IP address, #GNUNET_NO to mean
1434 * the previous (now invalid) one 1436 * the previous (now invalid) one
1435 * @param ac address class the address belongs to 1437 * @param ac address class the address belongs to
@@ -1438,6 +1440,7 @@ notify_session_monitor (struct Plugin *plugin,
1438 */ 1440 */
1439static void 1441static void
1440tcp_nat_port_map_callback (void *cls, 1442tcp_nat_port_map_callback (void *cls,
1443 void **app_ctx,
1441 int add_remove, 1444 int add_remove,
1442 enum GNUNET_NAT_AddressClass ac, 1445 enum GNUNET_NAT_AddressClass ac,
1443 const struct sockaddr *addr, 1446 const struct sockaddr *addr,
@@ -1450,6 +1453,7 @@ tcp_nat_port_map_callback (void *cls,
1450 void *arg; 1453 void *arg;
1451 size_t args; 1454 size_t args;
1452 1455
1456 (void) app_ctx;
1453 LOG (GNUNET_ERROR_TYPE_INFO, 1457 LOG (GNUNET_ERROR_TYPE_INFO,
1454 "NAT notification to %s address `%s'\n", 1458 "NAT notification to %s address `%s'\n",
1455 (GNUNET_YES == add_remove) ? "add" : "remove", 1459 (GNUNET_YES == add_remove) ? "add" : "remove",