richardphibel / rpms / systemd

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