about summary refs log tree commit diff
path: root/src/libnm-platform/nm-linux-platform.c
diff options
context:
space:
mode:
authorMichael Biebl <biebl@debian.org>2025-11-17 17:43:40 +0100
committerMichael Biebl <biebl@debian.org>2025-11-17 17:43:40 +0100
commit011dff458e636aa67883e9216c01a2956637412b (patch)
tree7af8b848e31c5a8b4c0b59045851997c93110fbd /src/libnm-platform/nm-linux-platform.c
parentc03c7fe2f566abd8e670a250678bd2cb74ddd693 (diff)
parent01609e485803fa250413385ae209660fb7b30a2e (diff)
Update upstream source from tag 'upstream/1.54.2'
Update to upstream version '1.54.2'
with Debian dir 52dd9a929b2c60328a1676c62037220d9c4a42f6
Diffstat (limited to 'src/libnm-platform/nm-linux-platform.c')
-rw-r--r--src/libnm-platform/nm-linux-platform.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/libnm-platform/nm-linux-platform.c b/src/libnm-platform/nm-linux-platform.c
index d45893fe..0c1097c2 100644
--- a/src/libnm-platform/nm-linux-platform.c
+++ b/src/libnm-platform/nm-linux-platform.c
@@ -253,7 +253,8 @@ G_STATIC_ASSERT(RTA_MAX == (__RTA_MAX - 1));
 #define IFLA_HSR_SEQ_NR           5
 #define IFLA_HSR_VERSION          6
 #define IFLA_HSR_PROTOCOL         7
-#define __IFLA_HSR_MAX            8
+#define IFLA_HSR_INTERLINK        8
+#define __IFLA_HSR_MAX            9
 
 /*****************************************************************************/
 
@@ -5196,6 +5197,15 @@ _nl_msg_new_link_set_linkinfo(struct nl_msg *msg, NMLinkType link_type, gconstpo
             NLA_PUT_U8(msg, IFLA_HSR_MULTICAST_SPEC, props->multicast_spec);
 
         NLA_PUT_U8(msg, IFLA_HSR_PROTOCOL, props->prp);
+
+        if (!props->prp && props->protocol_version >= 0) {
+            NLA_PUT_U8(msg, IFLA_HSR_VERSION, props->protocol_version);
+        }
+
+        if (props->interlink > 0) {
+            NLA_PUT_U32(msg, IFLA_HSR_INTERLINK, props->interlink);
+        }
+
         break;
     }
     case NM_LINK_TYPE_SIT: