This helps to export them and use them with vhost-user version of udp.c There is only one code change: pass s_in rather than udp_meta_t to udp_flow_from_sock() as udp_meta_t is specific to the socket version of udp.c Otherwise, only code move Signed-off-by: Laurent Vivier <lvivier(a)redhat.com> Laurent Vivier (2): udp_flow: Remove udp_meta_t from the parameters of udp_flow_from_sock() udp_flow: move all udp_flow functions to udp_flow.c Makefile | 2 +- udp.c | 264 +-------------------------------------------------- udp_flow.c | 274 +++++++++++++++++++++++++++++++++++++++++++++++++++++ udp_flow.h | 9 ++ 4 files changed, 286 insertions(+), 263 deletions(-) create mode 100644 udp_flow.c -- 2.45.2