diff options
author | Laurent Vivier <lvivier@redhat.com> | 2024-08-02 18:10:36 +0200 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2024-08-05 17:38:17 +0200 |
commit | e877f905e5fc5900c2c8dd9378e39705b21aec82 (patch) | |
tree | fcc5d4f184448e3c703b9b69f36c7f2b5b5d1990 /udp_flow.h | |
parent | 623ceb1f2b9051e3c6b34c99463a22a558b74674 (diff) | |
download | passt-e877f905e5fc5900c2c8dd9378e39705b21aec82.tar passt-e877f905e5fc5900c2c8dd9378e39705b21aec82.tar.gz passt-e877f905e5fc5900c2c8dd9378e39705b21aec82.tar.bz2 passt-e877f905e5fc5900c2c8dd9378e39705b21aec82.tar.lz passt-e877f905e5fc5900c2c8dd9378e39705b21aec82.tar.xz passt-e877f905e5fc5900c2c8dd9378e39705b21aec82.tar.zst passt-e877f905e5fc5900c2c8dd9378e39705b21aec82.zip |
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 <lvivier@redhat.com>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'udp_flow.h')
-rw-r--r-- | udp_flow.h | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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); |