summaryrefslogtreecommitdiffstats
path: root/tests-fuzz
diff options
context:
space:
mode:
authorLibor Peltan <libor.peltan@nic.cz>2019-12-18 09:44:16 +0100
committerDaniel Salzman <daniel.salzman@nic.cz>2020-04-21 18:43:10 +0200
commit2e8a5aa9463a4456a4cd6449e6980f34c79a393d (patch)
tree78e256dcebe81d36831fe7d49e1d3ba59fce1a5d /tests-fuzz
parentserver: ifaces are array not list (diff)
downloadknot-2e8a5aa9463a4456a4cd6449e6980f34c79a393d.tar.xz
knot-2e8a5aa9463a4456a4cd6449e6980f34c79a393d.zip
xdp: use more sockets: one per xdp_worker * iface
Diffstat (limited to 'tests-fuzz')
-rw-r--r--tests-fuzz/knotd_wrap/udp-handler.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/tests-fuzz/knotd_wrap/udp-handler.c b/tests-fuzz/knotd_wrap/udp-handler.c
index 00d70eb57..19f5082ba 100644
--- a/tests-fuzz/knotd_wrap/udp-handler.c
+++ b/tests-fuzz/knotd_wrap/udp-handler.c
@@ -60,8 +60,9 @@ static void udp_stdin_deinit(void *d)
free(d);
}
-static int udp_stdin_recv(int fd, void *d)
+static int udp_stdin_recv(int fd, void *d, void *unused)
{
+ UNUSED(unused);
udp_stdin_t *rq = (udp_stdin_t *)d;
rq->iov[RX].iov_len = fread(rq->iov[RX].iov_base, 1,
KNOT_WIRE_MAX_PKTSIZE, stdin);
@@ -72,15 +73,17 @@ static int udp_stdin_recv(int fd, void *d)
return rq->iov[RX].iov_len;
}
-static int udp_stdin_handle(udp_context_t *ctx, void *d)
+static int udp_stdin_handle(udp_context_t *ctx, void *d, void *unused)
{
+ UNUSED(unused);
udp_stdin_t *rq = (udp_stdin_t *)d;
udp_handle(ctx, STDIN_FILENO, &rq->addr, &rq->iov[RX], &rq->iov[TX]);
return 0;
}
-static int udp_stdin_send(void *d)
+static int udp_stdin_send(void *d, void *unused)
{
+ UNUSED(unused);
udp_stdin_t *rq = (udp_stdin_t *)d;
next(rq);
return 0;