summaryrefslogtreecommitdiffstats
path: root/tests-fuzz
diff options
context:
space:
mode:
authorDaniel Salzman <daniel.salzman@nic.cz>2023-01-10 10:38:19 +0100
committerDaniel Salzman <daniel.salzman@nic.cz>2023-01-13 10:29:28 +0100
commit0096ee0a22b74f637eb82f8d06eca93e46a33c7d (patch)
treeac92e73752e8fb24e9dcba5c9ea83070a059ce69 /tests-fuzz
parentdoc: update description of YP_TADDR and YP_TNET items (diff)
downloadknot-0096ee0a22b74f637eb82f8d06eca93e46a33c7d.tar.xz
knot-0096ee0a22b74f637eb82f8d06eca93e46a33c7d.zip
server: refactor and improve local and remote addresses handling
Diffstat (limited to 'tests-fuzz')
-rw-r--r--tests-fuzz/knotd_wrap/udp-handler.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests-fuzz/knotd_wrap/udp-handler.c b/tests-fuzz/knotd_wrap/udp-handler.c
index e3ec8abeb..08f3bd383 100644
--- a/tests-fuzz/knotd_wrap/udp-handler.c
+++ b/tests-fuzz/knotd_wrap/udp-handler.c
@@ -73,10 +73,11 @@ static int udp_stdin_recv(_unused_ int fd, void *d)
return rq->iov[RX].iov_len;
}
-static void udp_stdin_handle(udp_context_t *ctx, void *d)
+static void udp_stdin_handle(udp_context_t *ctx, _unused_ const iface_t *iface, void *d)
{
udp_stdin_t *rq = (udp_stdin_t *)d;
- udp_handle(ctx, STDIN_FILENO, &rq->addr, &rq->iov[RX], &rq->iov[TX], false);
+ udp_handle(ctx, STDIN_FILENO, &rq->addr, (const sockaddr_t *)&iface->addr,
+ &rq->iov[RX], &rq->iov[TX], false);
}
static void udp_stdin_send(void *d)