hc
2023-12-11 6778948f9de86c3cfaf36725a7c87dcff9ba247f
kernel/include/uapi/linux/if_tunnel.h
....@@ -160,4 +160,24 @@
160160 };
161161
162162 #define IFLA_VTI_MAX (__IFLA_VTI_MAX - 1)
163
+
164
+#define TUNNEL_CSUM __cpu_to_be16(0x01)
165
+#define TUNNEL_ROUTING __cpu_to_be16(0x02)
166
+#define TUNNEL_KEY __cpu_to_be16(0x04)
167
+#define TUNNEL_SEQ __cpu_to_be16(0x08)
168
+#define TUNNEL_STRICT __cpu_to_be16(0x10)
169
+#define TUNNEL_REC __cpu_to_be16(0x20)
170
+#define TUNNEL_VERSION __cpu_to_be16(0x40)
171
+#define TUNNEL_NO_KEY __cpu_to_be16(0x80)
172
+#define TUNNEL_DONT_FRAGMENT __cpu_to_be16(0x0100)
173
+#define TUNNEL_OAM __cpu_to_be16(0x0200)
174
+#define TUNNEL_CRIT_OPT __cpu_to_be16(0x0400)
175
+#define TUNNEL_GENEVE_OPT __cpu_to_be16(0x0800)
176
+#define TUNNEL_VXLAN_OPT __cpu_to_be16(0x1000)
177
+#define TUNNEL_NOCACHE __cpu_to_be16(0x2000)
178
+#define TUNNEL_ERSPAN_OPT __cpu_to_be16(0x4000)
179
+
180
+#define TUNNEL_OPTIONS_PRESENT \
181
+ (TUNNEL_GENEVE_OPT | TUNNEL_VXLAN_OPT | TUNNEL_ERSPAN_OPT)
182
+
163183 #endif /* _UAPI_IF_TUNNEL_H_ */