aboutsummaryrefslogtreecommitdiff
path: root/src/nat/gnunet-nat.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nat/gnunet-nat.c')
-rw-r--r--src/nat/gnunet-nat.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/nat/gnunet-nat.c b/src/nat/gnunet-nat.c
index 31b6a7268..275553203 100644
--- a/src/nat/gnunet-nat.c
+++ b/src/nat/gnunet-nat.c
@@ -110,6 +110,8 @@ test_finished ()
110 * a function to call whenever our set of 'valid' addresses changes. 110 * a function to call whenever our set of 'valid' addresses changes.
111 * 111 *
112 * @param cls closure, NULL 112 * @param cls closure, NULL
113 * @param app_ctx[in,out] location where the app can store stuff
114 * on add and retrieve it on remove
113 * @param add_remove #GNUNET_YES to add a new public IP address, 115 * @param add_remove #GNUNET_YES to add a new public IP address,
114 * #GNUNET_NO to remove a previous (now invalid) one 116 * #GNUNET_NO to remove a previous (now invalid) one
115 * @param ac address class the address belongs to 117 * @param ac address class the address belongs to
@@ -118,11 +120,15 @@ test_finished ()
118 */ 120 */
119static void 121static void
120address_cb (void *cls, 122address_cb (void *cls,
123 void **app_ctx,
121 int add_remove, 124 int add_remove,
122 enum GNUNET_NAT_AddressClass ac, 125 enum GNUNET_NAT_AddressClass ac,
123 const struct sockaddr *addr, 126 const struct sockaddr *addr,
124 socklen_t addrlen) 127 socklen_t addrlen)
125{ 128{
129 (void) cls;
130 (void) app_ctx;
131
126 fprintf (stdout, 132 fprintf (stdout,
127 "%s %s (%d)\n", 133 "%s %s (%d)\n",
128 add_remove ? "+" : "-", 134 add_remove ? "+" : "-",