From 610fad9542cc2f9eed5030a4d7c71dc42d13683a Mon Sep 17 00:00:00 2001 From: Matthew Bilker Date: Thu, 25 Jul 2024 10:22:24 +0000 Subject: [PATCH] system-linux: Set `ignore-df` flag on GRE tunnels This is required to make `gretap` fragment packets according to https://bugzilla.kernel.org/show_bug.cgi?id=14837 Signed-off-by: Matthew Bilker --- system-linux.c | 1 + 1 file changed, 1 insertion(+) diff --git a/system-linux.c b/system-linux.c index 0160b30..c0f0ebc 100644 --- a/system-linux.c +++ b/system-linux.c @@ -4174,6 +4174,7 @@ static int system_add_gre_tunnel(const char *name, const char *kind, ttl = 64; nla_put_u8(nlm, IFLA_GRE_PMTUDISC, set_df ? 1 : 0); + nla_put_u8(nlm, IFLA_GRE_IGNORE_DF, set_df ? 0 : 1); nla_put_u8(nlm, IFLA_GRE_TOS, tos); }