diff options
author | Julian Anastasov <ja@ssi.bg> | 2016-03-05 15:03:23 +0200 |
---|---|---|
committer | Simon Horman <horms@verge.net.au> | 2016-03-07 11:53:32 +0900 |
commit | f911b675a06d05211da52cf8267db80c81b6aee4 (patch) | |
tree | 61d9ab19140d95e2aab94590770318a80c2c0331 /net | |
parent | f719e3754ee2f7275437e61a6afd520181fdd43b (diff) | |
download | op-kernel-dev-f911b675a06d05211da52cf8267db80c81b6aee4.zip op-kernel-dev-f911b675a06d05211da52cf8267db80c81b6aee4.tar.gz |
ipvs: allow rescheduling after RST
"RFC 5961, 4.2. Mitigation" describes a mechanism to request
client to confirm with RST the restart of TCP connection
before resending its SYN. As result, IPVS can see SYNs for
existing connection in CLOSE state. Add check to allow
rescheduling in this state.
Signed-off-by: Julian Anastasov <ja@ssi.bg>
Signed-off-by: Simon Horman <horms@verge.net.au>
Diffstat (limited to 'net')
-rw-r--r-- | net/netfilter/ipvs/ip_vs_core.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/netfilter/ipvs/ip_vs_core.c b/net/netfilter/ipvs/ip_vs_core.c index 4da5600..b9a4082 100644 --- a/net/netfilter/ipvs/ip_vs_core.c +++ b/net/netfilter/ipvs/ip_vs_core.c @@ -1089,6 +1089,7 @@ static inline bool is_new_conn_expected(const struct ip_vs_conn *cp, switch (cp->protocol) { case IPPROTO_TCP: return (cp->state == IP_VS_TCP_S_TIME_WAIT) || + (cp->state == IP_VS_TCP_S_CLOSE) || ((conn_reuse_mode & 2) && (cp->state == IP_VS_TCP_S_FIN_WAIT) && (cp->flags & IP_VS_CONN_F_NOOUTPUT)); |