]> git.puffer.fish Git - mirror/frr.git/commitdiff
include: Update `include/seg6_iptunnel.h`
authorCarmine Scarpitta <cscarpit@cisco.com>
Thu, 20 Feb 2025 08:35:18 +0000 (09:35 +0100)
committerCarmine Scarpitta <cscarpit@cisco.com>
Wed, 30 Apr 2025 15:51:25 +0000 (15:51 +0000)
This commit brings the include/seg6_iptunnel.h header fil from the
latest kernel version.

This update is needed to have the SEG6_IPTUN_MODE_ENCAP_RED enumeration
value in FRR, which is required to support SRv6 H.Encaps.Red headend
behavior.

Signed-off-by: Carmine Scarpitta <cscarpit@cisco.com>
include/linux/seg6_iptunnel.h

index 3004e982c23dc750d189d42a43cf5815b44e3802..faa43b7942524b690835a156cdfa5826a0cc6e82 100644 (file)
@@ -1,4 +1,4 @@
-/* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */
+// SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note
 /*
  *  SR-IPv6 implementation
  *
@@ -12,8 +12,8 @@
  *      2 of the License, or (at your option) any later version.
  */
 
-#ifndef _LINUX_SEG6_IPTUNNEL_H
-#define _LINUX_SEG6_IPTUNNEL_H
+#ifndef _UAPI_LINUX_SEG6_IPTUNNEL_H
+#define _UAPI_LINUX_SEG6_IPTUNNEL_H
 
 #include <linux/seg6.h>                /* For struct ipv6_sr_hdr. */
 
@@ -26,7 +26,7 @@ enum {
 
 struct seg6_iptunnel_encap {
        int mode;
-       struct ipv6_sr_hdr srh[0];
+       struct ipv6_sr_hdr srh[];
 };
 
 #define SEG6_IPTUN_ENCAP_SIZE(x) ((sizeof(*x)) + (((x)->srh->hdrlen + 1) << 3))
@@ -35,7 +35,8 @@ enum {
        SEG6_IPTUN_MODE_INLINE,
        SEG6_IPTUN_MODE_ENCAP,
        SEG6_IPTUN_MODE_L2ENCAP,
+       SEG6_IPTUN_MODE_ENCAP_RED,
+       SEG6_IPTUN_MODE_L2ENCAP_RED,
 };
 
-
 #endif