| .. | .. |
|---|
| 124 | 124 | |
|---|
| 125 | 125 | #define IP_VS_PEDATA_MAXLEN 255 |
|---|
| 126 | 126 | |
|---|
| 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 | + |
|---|
| 127 | 140 | /* |
|---|
| 128 | 141 | * The struct ip_vs_service_user and struct ip_vs_dest_user are |
|---|
| 129 | 142 | * used to set IPVS rules through setsockopt. |
|---|
| .. | .. |
|---|
| 392 | 405 | |
|---|
| 393 | 406 | IPVS_DEST_ATTR_STATS64, /* nested attribute for dest stats */ |
|---|
| 394 | 407 | |
|---|
| 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 | + |
|---|
| 395 | 414 | __IPVS_DEST_ATTR_MAX, |
|---|
| 396 | 415 | }; |
|---|
| 397 | 416 | |
|---|