hc
2023-12-08 01573e231f18eb2d99162747186f59511f56b64d
kernel/include/uapi/linux/ip_vs.h
....@@ -124,6 +124,19 @@
124124
125125 #define IP_VS_PEDATA_MAXLEN 255
126126
127
+/* Tunnel types */
128
+enum {
129
+ IP_VS_CONN_F_TUNNEL_TYPE_IPIP = 0, /* IPIP */
130
+ IP_VS_CONN_F_TUNNEL_TYPE_GUE, /* GUE */
131
+ IP_VS_CONN_F_TUNNEL_TYPE_GRE, /* GRE */
132
+ IP_VS_CONN_F_TUNNEL_TYPE_MAX,
133
+};
134
+
135
+/* Tunnel encapsulation flags */
136
+#define IP_VS_TUNNEL_ENCAP_FLAG_NOCSUM (0)
137
+#define IP_VS_TUNNEL_ENCAP_FLAG_CSUM (1 << 0)
138
+#define IP_VS_TUNNEL_ENCAP_FLAG_REMCSUM (1 << 1)
139
+
127140 /*
128141 * The struct ip_vs_service_user and struct ip_vs_dest_user are
129142 * used to set IPVS rules through setsockopt.
....@@ -392,6 +405,12 @@
392405
393406 IPVS_DEST_ATTR_STATS64, /* nested attribute for dest stats */
394407
408
+ IPVS_DEST_ATTR_TUN_TYPE, /* tunnel type */
409
+
410
+ IPVS_DEST_ATTR_TUN_PORT, /* tunnel port */
411
+
412
+ IPVS_DEST_ATTR_TUN_FLAGS, /* tunnel flags */
413
+
395414 __IPVS_DEST_ATTR_MAX,
396415 };
397416