diff options
Diffstat (limited to 'include/linux/ip_vs.h')
-rw-r--r-- | include/linux/ip_vs.h | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/include/linux/ip_vs.h b/include/linux/ip_vs.h index 4deb3834d62c..8a2d438dc499 100644 --- a/include/linux/ip_vs.h +++ b/include/linux/ip_vs.h | |||
@@ -89,6 +89,7 @@ | |||
89 | #define IP_VS_CONN_F_TEMPLATE 0x1000 /* template, not connection */ | 89 | #define IP_VS_CONN_F_TEMPLATE 0x1000 /* template, not connection */ |
90 | #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 */ |
91 | 91 | ||
92 | /* Initial bits allowed in backup server */ | ||
92 | #define IP_VS_CONN_F_BACKUP_MASK (IP_VS_CONN_F_FWD_MASK | \ | 93 | #define IP_VS_CONN_F_BACKUP_MASK (IP_VS_CONN_F_FWD_MASK | \ |
93 | IP_VS_CONN_F_NOOUTPUT | \ | 94 | IP_VS_CONN_F_NOOUTPUT | \ |
94 | IP_VS_CONN_F_INACTIVE | \ | 95 | IP_VS_CONN_F_INACTIVE | \ |
@@ -97,6 +98,10 @@ | |||
97 | IP_VS_CONN_F_TEMPLATE \ | 98 | IP_VS_CONN_F_TEMPLATE \ |
98 | ) | 99 | ) |
99 | 100 | ||
101 | /* Bits allowed to update in backup server */ | ||
102 | #define IP_VS_CONN_F_BACKUP_UPD_MASK (IP_VS_CONN_F_INACTIVE | \ | ||
103 | IP_VS_CONN_F_SEQ_MASK) | ||
104 | |||
100 | /* Flags that are not sent to backup server start from bit 16 */ | 105 | /* Flags that are not sent to backup server start from bit 16 */ |
101 | #define IP_VS_CONN_F_NFCT (1 << 16) /* use netfilter conntrack */ | 106 | #define IP_VS_CONN_F_NFCT (1 << 16) /* use netfilter conntrack */ |
102 | 107 | ||
@@ -125,8 +130,8 @@ struct ip_vs_service_user { | |||
125 | 130 | ||
126 | /* virtual service options */ | 131 | /* virtual service options */ |
127 | char sched_name[IP_VS_SCHEDNAME_MAXLEN]; | 132 | char sched_name[IP_VS_SCHEDNAME_MAXLEN]; |
128 | unsigned flags; /* virtual service flags */ | 133 | unsigned int flags; /* virtual service flags */ |
129 | unsigned timeout; /* persistent timeout in sec */ | 134 | unsigned int timeout; /* persistent timeout in sec */ |
130 | __be32 netmask; /* persistent netmask */ | 135 | __be32 netmask; /* persistent netmask */ |
131 | }; | 136 | }; |
132 | 137 | ||
@@ -137,7 +142,7 @@ struct ip_vs_dest_user { | |||
137 | __be16 port; | 142 | __be16 port; |
138 | 143 | ||
139 | /* real server options */ | 144 | /* real server options */ |
140 | unsigned conn_flags; /* connection flags */ | 145 | unsigned int conn_flags; /* connection flags */ |
141 | int weight; /* destination weight */ | 146 | int weight; /* destination weight */ |
142 | 147 | ||
143 | /* thresholds for active connections */ | 148 | /* thresholds for active connections */ |
@@ -187,8 +192,8 @@ struct ip_vs_service_entry { | |||
187 | 192 | ||
188 | /* service options */ | 193 | /* service options */ |
189 | char sched_name[IP_VS_SCHEDNAME_MAXLEN]; | 194 | char sched_name[IP_VS_SCHEDNAME_MAXLEN]; |
190 | unsigned flags; /* virtual service flags */ | 195 | unsigned int flags; /* virtual service flags */ |
191 | unsigned timeout; /* persistent timeout */ | 196 | unsigned int timeout; /* persistent timeout */ |
192 | __be32 netmask; /* persistent netmask */ | 197 | __be32 netmask; /* persistent netmask */ |
193 | 198 | ||
194 | /* number of real servers */ | 199 | /* number of real servers */ |
@@ -202,7 +207,7 @@ struct ip_vs_service_entry { | |||
202 | struct ip_vs_dest_entry { | 207 | struct ip_vs_dest_entry { |
203 | __be32 addr; /* destination address */ | 208 | __be32 addr; /* destination address */ |
204 | __be16 port; | 209 | __be16 port; |
205 | unsigned conn_flags; /* connection flags */ | 210 | unsigned int conn_flags; /* connection flags */ |
206 | int weight; /* destination weight */ | 211 | int weight; /* destination weight */ |
207 | 212 | ||
208 | __u32 u_threshold; /* upper threshold */ | 213 | __u32 u_threshold; /* upper threshold */ |