From e877f905e5fc5900c2c8dd9378e39705b21aec82 Mon Sep 17 00:00:00 2001 From: Laurent Vivier Date: Fri, 2 Aug 2024 18:10:36 +0200 Subject: udp_flow: move all udp_flow functions to udp_flow.c No code change. They need to be exported to be available by the vhost-user version of passt. Signed-off-by: Laurent Vivier Reviewed-by: David Gibson Signed-off-by: Stefano Brivio --- udp_flow.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'udp_flow.h') diff --git a/udp_flow.h b/udp_flow.h index e0736f8..12ddf03 100644 --- a/udp_flow.h +++ b/udp_flow.h @@ -21,6 +21,15 @@ struct udp_flow { int s[SIDES]; }; +struct udp_flow *udp_at_sidx(flow_sidx_t sidx); +flow_sidx_t udp_flow_from_sock(const struct ctx *c, union epoll_ref ref, + const union sockaddr_inany *s_in, + const struct timespec *now); +flow_sidx_t udp_flow_from_tap(const struct ctx *c, + uint8_t pif, sa_family_t af, + const void *saddr, const void *daddr, + in_port_t srcport, in_port_t dstport, + const struct timespec *now); bool udp_flow_timer(const struct ctx *c, struct udp_flow *uflow, const struct timespec *now); -- cgit v1.2.3