ipvs: ignore IP_VS_CONN_F_NOOUTPUT in backup server
authorJulian Anastasov <ja@ssi.bg>
Tue, 24 Apr 2012 20:46:35 +0000 (23:46 +0300)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 8 May 2012 17:38:24 +0000 (19:38 +0200)
As IP_VS_CONN_F_NOOUTPUT is derived from the
forwarding method we should get it from conn_flags just
like we do it for IP_VS_CONN_F_FWD_MASK bits when binding
to real server.

Signed-off-by: Julian Anastasov <ja@ssi.bg>
Signed-off-by: Simon Horman <horms@verge.net.au>
net/netfilter/ipvs/ip_vs_conn.c

index 4a09b78730033480d6106b16066c6c5058725a84..f562e630d35a78854a1973de7c9e3670d70b0bf5 100644 (file)
@@ -567,7 +567,7 @@ ip_vs_bind_dest(struct ip_vs_conn *cp, struct ip_vs_dest *dest)
                if (!(cp->flags & IP_VS_CONN_F_TEMPLATE))
                        conn_flags &= ~IP_VS_CONN_F_INACTIVE;
                /* connections inherit forwarding method from dest */
-               cp->flags &= ~IP_VS_CONN_F_FWD_MASK;
+               cp->flags &= ~(IP_VS_CONN_F_FWD_MASK | IP_VS_CONN_F_NOOUTPUT);
        }
        cp->flags |= conn_flags;
        cp->dest = dest;