diff options
author | Beniamino Galvani <bgalvani@redhat.com> | 2022-12-21 18:47:21 +0100 |
---|---|---|
committer | Beniamino Galvani <bgalvani@redhat.com> | 2022-12-22 09:57:28 +0100 |
commit | 115102efe9f0faef0656393b3e102e033a9aa285 (patch) | |
tree | deacee8a1998456214c2627c63832b8cf9214412 | |
parent | f2974b1c61ce57b60aaef584b0c62f7c19a64d4f (diff) | |
download | NetworkManager-115102efe9f0faef0656393b3e102e033a9aa285.tar.gz |
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')
-rw-r--r-- | src/libnm-platform/nm-linux-platform.c | 10 |
1 files changed, 10 insertions, 0 deletions
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 |