naccyde / rpms / systemd

Forked from rpms/systemd a year ago
Clone
da2bf9
From 08c1e6e304108e8bc8beca126f50888be7575bd0 Mon Sep 17 00:00:00 2001
da2bf9
From: David Tardon <dtardon@redhat.com>
da2bf9
Date: Thu, 26 Nov 2020 16:29:10 +0100
da2bf9
Subject: [PATCH] define newly needed constants
da2bf9
da2bf9
Related: #2005008
da2bf9
---
da2bf9
 src/basic/missing.h | 23 +++++++++++++++++++++--
da2bf9
 1 file changed, 21 insertions(+), 2 deletions(-)
da2bf9
da2bf9
diff --git a/src/basic/missing.h b/src/basic/missing.h
da2bf9
index 14ad3d4914..b9376617fc 100644
da2bf9
--- a/src/basic/missing.h
da2bf9
+++ b/src/basic/missing.h
da2bf9
@@ -747,10 +747,13 @@ struct input_mask {
da2bf9
 #define IFLA_NUM_RX_QUEUES 32
da2bf9
 #define IFLA_CARRIER 33
da2bf9
 #define IFLA_PHYS_PORT_ID 34
da2bf9
-#define __IFLA_MAX 35
da2bf9
+#endif
da2bf9
+
da2bf9
+#define IFLA_PROP_LIST 52
da2bf9
+#define IFLA_ALT_IFNAME 53
da2bf9
+#define __IFLA_MAX 53
da2bf9
 
da2bf9
 #define IFLA_MAX (__IFLA_MAX - 1)
da2bf9
-#endif
da2bf9
 
da2bf9
 #if !HAVE_IFLA_BOND_AD_INFO
da2bf9
 #define IFLA_BOND_UNSPEC 0
da2bf9
@@ -1045,6 +1048,18 @@ struct input_mask {
da2bf9
 #define RTA_EXPIRES 23
da2bf9
 #endif
da2bf9
 
da2bf9
+#ifndef RTM_NEWLINKPROP
da2bf9
+#define RTM_NEWLINKPROP 108
da2bf9
+#endif
da2bf9
+
da2bf9
+#ifndef RTM_DELLINKPROP
da2bf9
+#define RTM_DELLINKPROP 109
da2bf9
+#endif
da2bf9
+
da2bf9
+#ifndef RTM_GETLINKPROP
da2bf9
+#define RTM_GETLINKPROP 110
da2bf9
+#endif
da2bf9
+
da2bf9
 #ifndef IPV6_UNICAST_IF
da2bf9
 #define IPV6_UNICAST_IF 76
da2bf9
 #endif
da2bf9
@@ -1057,6 +1072,10 @@ struct input_mask {
da2bf9
 #define IPV4_MIN_MTU 68
da2bf9
 #endif
da2bf9
 
da2bf9
+#ifndef ALTIFNAMSIZ
da2bf9
+#define ALTIFNAMSIZ 128
da2bf9
+#endif
da2bf9
+
da2bf9
 #ifndef IFF_MULTI_QUEUE
da2bf9
 #define IFF_MULTI_QUEUE 0x100
da2bf9
 #endif