diff options
author | Alexey Andriyanov <alan@al-an.info> | 2015-02-06 14:32:20 -0500 |
---|---|---|
committer | Simon Horman <horms@verge.net.au> | 2015-02-09 00:13:30 -0500 |
commit | dd3733b3e798daf778a1ec08557f388f00fdc2f6 (patch) | |
tree | a3a11a916d66b1b0435b51073540dfddbe3692de | |
parent | 42b5212fee4f57907e9415b18fe19c13e65574bc (diff) |
ipvs: fix inability to remove a mixed-family RS
The current code prevents any operation with a mixed-family dest
unless IP_VS_CONN_F_TUNNEL flag is set. The problem is that it's impossible
for the client to follow this rule, because ip_vs_genl_parse_dest does
not even read the destination conn_flags when cmd = IPVS_CMD_DEL_DEST
(need_full_dest = 0).
Also, not every client can pass this flag when removing a dest. ipvsadm,
for example, does not support the "-i" command line option together with
the "-d" option.
This change disables any checks for mixed-family on IPVS_CMD_DEL_DEST command.
Signed-off-by: Alexey Andriyanov <alan@al-an.info>
Fixes: bc18d37f676f ("ipvs: Allow heterogeneous pools now that we support them")
Acked-by: Julian Anastasov <ja@ssi.bg>
Signed-off-by: Simon Horman <horms@verge.net.au>
-rw-r--r-- | net/netfilter/ipvs/ip_vs_ctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/netfilter/ipvs/ip_vs_ctl.c b/net/netfilter/ipvs/ip_vs_ctl.c index b8295a430a56..fdcda8be1f0f 100644 --- a/net/netfilter/ipvs/ip_vs_ctl.c +++ b/net/netfilter/ipvs/ip_vs_ctl.c | |||
@@ -3399,7 +3399,7 @@ static int ip_vs_genl_set_cmd(struct sk_buff *skb, struct genl_info *info) | |||
3399 | if (udest.af == 0) | 3399 | if (udest.af == 0) |
3400 | udest.af = svc->af; | 3400 | udest.af = svc->af; |
3401 | 3401 | ||
3402 | if (udest.af != svc->af) { | 3402 | if (udest.af != svc->af && cmd != IPVS_CMD_DEL_DEST) { |
3403 | /* The synchronization protocol is incompatible | 3403 | /* The synchronization protocol is incompatible |
3404 | * with mixed family services | 3404 | * with mixed family services |
3405 | */ | 3405 | */ |