aboutsummaryrefslogtreecommitdiffstats
path: root/include/uapi
diff options
context:
space:
mode:
authorJacky Hu <hengqing.hu@gmail.com>2019-03-26 06:31:21 -0400
committerPablo Neira Ayuso <pablo@netfilter.org>2019-04-08 16:57:59 -0400
commit84c0d5e96f3ae20344fb3a79161eab18905dae56 (patch)
treea769ccab32b729d3b43a0ebd984f6d1697b62bda /include/uapi
parent227e1e4d0d6c5ea006864c9730f1404843d6d84a (diff)
ipvs: allow tunneling with gue encapsulation
ipip packets are blocked in some public cloud environments, this patch allows gue encapsulation with the tunneling method, which would make tunneling working in those environments. Signed-off-by: Jacky Hu <hengqing.hu@gmail.com> Acked-by: Julian Anastasov <ja@ssi.bg> Signed-off-by: Simon Horman <horms@verge.net.au> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/uapi')
-rw-r--r--include/uapi/linux/ip_vs.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/uapi/linux/ip_vs.h b/include/uapi/linux/ip_vs.h
index 1c916b2f89dc..e34f436fc79d 100644
--- a/include/uapi/linux/ip_vs.h
+++ b/include/uapi/linux/ip_vs.h
@@ -124,6 +124,13 @@
124 124
125#define IP_VS_PEDATA_MAXLEN 255 125#define IP_VS_PEDATA_MAXLEN 255
126 126
127/* Tunnel types */
128enum {
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_MAX,
132};
133
127/* 134/*
128 * The struct ip_vs_service_user and struct ip_vs_dest_user are 135 * The struct ip_vs_service_user and struct ip_vs_dest_user are
129 * used to set IPVS rules through setsockopt. 136 * used to set IPVS rules through setsockopt.
@@ -392,6 +399,10 @@ enum {
392 399
393 IPVS_DEST_ATTR_STATS64, /* nested attribute for dest stats */ 400 IPVS_DEST_ATTR_STATS64, /* nested attribute for dest stats */
394 401
402 IPVS_DEST_ATTR_TUN_TYPE, /* tunnel type */
403
404 IPVS_DEST_ATTR_TUN_PORT, /* tunnel port */
405
395 __IPVS_DEST_ATTR_MAX, 406 __IPVS_DEST_ATTR_MAX,
396}; 407};
397 408