From 115102efe9f0faef0656393b3e102e033a9aa285 Mon Sep 17 00:00:00 2001 From: Beniamino Galvani Date: Wed, 21 Dec 2022 18:47:21 +0100 Subject: [PATCH] platform: fix build failures due to missing VTI definitions Older kernel headers don't ship definitions for IFLA_VTI_*, redefine them. Fixes: 1cf8df2f35b6 ('platform: support VTI tunnels') Fixes: b669a3ae46d8 ('platform: support VTI6 tunnels') --- src/libnm-platform/nm-linux-platform.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/libnm-platform/nm-linux-platform.c b/src/libnm-platform/nm-linux-platform.c index 2f7178e381..ae074dac51 100644 --- a/src/libnm-platform/nm-linux-platform.c +++ b/src/libnm-platform/nm-linux-platform.c @@ -222,6 +222,16 @@ G_STATIC_ASSERT(RTA_MAX == (__RTA_MAX - 1)); /*****************************************************************************/ +#define IFLA_VTI_UNSPEC 0 +#define IFLA_VTI_LINK 1 +#define IFLA_VTI_IKEY 2 +#define IFLA_VTI_OKEY 3 +#define IFLA_VTI_LOCAL 4 +#define IFLA_VTI_REMOTE 5 +#define IFLA_VTI_FWMARK 6 + +/*****************************************************************************/ + #define WG_CMD_GET_DEVICE 0 #define WG_CMD_SET_DEVICE 1