From 16b08367a57f5a01af05d1067e2f77b04251e9b7 Mon Sep 17 00:00:00 2001 From: Stefano Brivio Date: Mon, 26 Jul 2021 07:30:57 +0200 Subject: tap: Fill the IPv6 flow label field to represent flow association This isn't optional: TCP streams must carry a unique, hard-to-guess, non-zero label for each direction. Linux, probably among others, will otherwise refuse to associate packets in a given stream to the same connection. Signed-off-by: Stefano Brivio --- tap.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tap.h') diff --git a/tap.h b/tap.h index 385fab0..a87c121 100644 --- a/tap.h +++ b/tap.h @@ -1,5 +1,5 @@ void tap_ip_send(struct ctx *c, struct in6_addr *src, uint8_t proto, - char *in, size_t len); + char *in, size_t len, uint32_t flow); int tap_send(struct ctx *c, void *data, size_t len, int vnet_pre); void tap_handler(struct ctx *c, uint32_t events, struct timespec *now); void tap_sock_init(struct ctx *c); -- cgit v1.2.3