1 /* 2 * This file is auto-generated. Modifications will be lost. 3 * 4 * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/ 5 * for more information. 6 */ 7 #ifndef _UAPI_LINUX_SEG6_IPTUNNEL_H 8 #define _UAPI_LINUX_SEG6_IPTUNNEL_H 9 #include <linux/seg6.h> 10 enum { 11 SEG6_IPTUNNEL_UNSPEC, 12 SEG6_IPTUNNEL_SRH, 13 __SEG6_IPTUNNEL_MAX, 14 }; 15 #define SEG6_IPTUNNEL_MAX (__SEG6_IPTUNNEL_MAX - 1) 16 struct seg6_iptunnel_encap { 17 int mode; 18 struct ipv6_sr_hdr srh[]; 19 }; 20 #define SEG6_IPTUN_ENCAP_SIZE(x) ((sizeof(* x)) + (((x)->srh->hdrlen + 1) << 3)) 21 enum { 22 SEG6_IPTUN_MODE_INLINE, 23 SEG6_IPTUN_MODE_ENCAP, 24 SEG6_IPTUN_MODE_L2ENCAP, 25 SEG6_IPTUN_MODE_ENCAP_RED, 26 SEG6_IPTUN_MODE_L2ENCAP_RED, 27 }; 28 #endif 29