|
@@ -1003,12 +1003,9 @@ static void ip_vs_process_message_v0(struct netns_ipvs *ipvs, const char *buffer
|
|
|
continue;
|
|
|
}
|
|
|
} else {
|
|
|
- /* protocol in templates is not used for state/timeout */
|
|
|
- if (state > 0) {
|
|
|
- IP_VS_DBG(2, "BACKUP v0, Invalid template state %u\n",
|
|
|
- state);
|
|
|
- state = 0;
|
|
|
- }
|
|
|
+ if (state >= IP_VS_CTPL_S_LAST)
|
|
|
+ IP_VS_DBG(7, "BACKUP v0, Invalid tpl state %u\n",
|
|
|
+ state);
|
|
|
}
|
|
|
|
|
|
ip_vs_conn_fill_param(ipvs, AF_INET, s->protocol,
|
|
@@ -1166,12 +1163,9 @@ static inline int ip_vs_proc_sync_conn(struct netns_ipvs *ipvs, __u8 *p, __u8 *m
|
|
|
goto out;
|
|
|
}
|
|
|
} else {
|
|
|
- /* protocol in templates is not used for state/timeout */
|
|
|
- if (state > 0) {
|
|
|
- IP_VS_DBG(3, "BACKUP, Invalid template state %u\n",
|
|
|
- state);
|
|
|
- state = 0;
|
|
|
- }
|
|
|
+ if (state >= IP_VS_CTPL_S_LAST)
|
|
|
+ IP_VS_DBG(7, "BACKUP, Invalid tpl state %u\n",
|
|
|
+ state);
|
|
|
}
|
|
|
if (ip_vs_conn_fill_param_sync(ipvs, af, s, ¶m, pe_data,
|
|
|
pe_data_len, pe_name, pe_name_len)) {
|