diff options
Diffstat (limited to 'include/linux/ip_vs.h')
-rw-r--r-- | include/linux/ip_vs.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/include/linux/ip_vs.h b/include/linux/ip_vs.h index 9708de265bb1..4deb3834d62c 100644 --- a/include/linux/ip_vs.h +++ b/include/linux/ip_vs.h | |||
@@ -70,6 +70,7 @@ | |||
70 | 70 | ||
71 | /* | 71 | /* |
72 | * IPVS Connection Flags | 72 | * IPVS Connection Flags |
73 | * Only flags 0..15 are sent to backup server | ||
73 | */ | 74 | */ |
74 | #define IP_VS_CONN_F_FWD_MASK 0x0007 /* mask for the fwd methods */ | 75 | #define IP_VS_CONN_F_FWD_MASK 0x0007 /* mask for the fwd methods */ |
75 | #define IP_VS_CONN_F_MASQ 0x0000 /* masquerading/NAT */ | 76 | #define IP_VS_CONN_F_MASQ 0x0000 /* masquerading/NAT */ |
@@ -88,9 +89,28 @@ | |||
88 | #define IP_VS_CONN_F_TEMPLATE 0x1000 /* template, not connection */ | 89 | #define IP_VS_CONN_F_TEMPLATE 0x1000 /* template, not connection */ |
89 | #define IP_VS_CONN_F_ONE_PACKET 0x2000 /* forward only one packet */ | 90 | #define IP_VS_CONN_F_ONE_PACKET 0x2000 /* forward only one packet */ |
90 | 91 | ||
92 | #define IP_VS_CONN_F_BACKUP_MASK (IP_VS_CONN_F_FWD_MASK | \ | ||
93 | IP_VS_CONN_F_NOOUTPUT | \ | ||
94 | IP_VS_CONN_F_INACTIVE | \ | ||
95 | IP_VS_CONN_F_SEQ_MASK | \ | ||
96 | IP_VS_CONN_F_NO_CPORT | \ | ||
97 | IP_VS_CONN_F_TEMPLATE \ | ||
98 | ) | ||
99 | |||
100 | /* Flags that are not sent to backup server start from bit 16 */ | ||
101 | #define IP_VS_CONN_F_NFCT (1 << 16) /* use netfilter conntrack */ | ||
102 | |||
103 | /* Connection flags from destination that can be changed by user space */ | ||
104 | #define IP_VS_CONN_F_DEST_MASK (IP_VS_CONN_F_FWD_MASK | \ | ||
105 | IP_VS_CONN_F_ONE_PACKET | \ | ||
106 | IP_VS_CONN_F_NFCT | \ | ||
107 | 0) | ||
108 | |||
91 | #define IP_VS_SCHEDNAME_MAXLEN 16 | 109 | #define IP_VS_SCHEDNAME_MAXLEN 16 |
110 | #define IP_VS_PENAME_MAXLEN 16 | ||
92 | #define IP_VS_IFNAME_MAXLEN 16 | 111 | #define IP_VS_IFNAME_MAXLEN 16 |
93 | 112 | ||
113 | #define IP_VS_PEDATA_MAXLEN 255 | ||
94 | 114 | ||
95 | /* | 115 | /* |
96 | * The struct ip_vs_service_user and struct ip_vs_dest_user are | 116 | * The struct ip_vs_service_user and struct ip_vs_dest_user are |
@@ -324,6 +344,9 @@ enum { | |||
324 | IPVS_SVC_ATTR_NETMASK, /* persistent netmask */ | 344 | IPVS_SVC_ATTR_NETMASK, /* persistent netmask */ |
325 | 345 | ||
326 | IPVS_SVC_ATTR_STATS, /* nested attribute for service stats */ | 346 | IPVS_SVC_ATTR_STATS, /* nested attribute for service stats */ |
347 | |||
348 | IPVS_SVC_ATTR_PE_NAME, /* name of ct retriever */ | ||
349 | |||
327 | __IPVS_SVC_ATTR_MAX, | 350 | __IPVS_SVC_ATTR_MAX, |
328 | }; | 351 | }; |
329 | 352 | ||