1
0
Fork 0
mirror of https://passt.top/passt synced 2025-06-16 04:15:34 +02:00
passt/udp_vu.h
David Gibson 5221e177e1 udp: Parameterize number of datagrams handled by udp_*_reply_sock_data()
Both udp_buf_reply_sock_data() and udp_vu_reply_sock_data() internally
decide what the maximum number of datagrams they will forward is.  We have
some upcoming reasons to allow the caller to decide that instead, so make
the maximum number of datagrams a parameter for both of them.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
2025-04-07 21:31:54 +02:00

14 lines
375 B
C

// SPDX-License-Identifier: GPL-2.0-or-later
/* Copyright Red Hat
* Author: Laurent Vivier <lvivier@redhat.com>
*/
#ifndef UDP_VU_H
#define UDP_VU_H
void udp_vu_listen_sock_data(const struct ctx *c, union epoll_ref ref,
const struct timespec *now);
bool udp_vu_reply_sock_data(const struct ctx *c, int s, int n,
flow_sidx_t tosidx);
#endif /* UDP_VU_H */