]> git.karo-electronics.de Git - linux-beck.git/commit
ipvs: make rerouting optional with snat_reroute
authorJulian Anastasov <ja@ssi.bg>
Tue, 21 Sep 2010 15:38:57 +0000 (17:38 +0200)
committerPatrick McHardy <kaber@trash.net>
Tue, 21 Sep 2010 15:38:57 +0000 (17:38 +0200)
commit8a8030407f55a6aaedb51167c1a2383311fcd707
tree585f2963a56e528a06f0f3180985faa8a368d3b8
parentf4bc17cdd205ebaa3807c2aa973719bb5ce6a5b2
ipvs: make rerouting optional with snat_reroute

Add new sysctl flag "snat_reroute". Recent kernels use
ip_route_me_harder() to route LVS-NAT responses properly by
VIP when there are multiple paths to client. But setups
that do not have alternative default routes can skip this
routing lookup by using snat_reroute=0.

Signed-off-by: Julian Anastasov <ja@ssi.bg>
Signed-off-by: Patrick McHardy <kaber@trash.net>
include/net/ip_vs.h
net/netfilter/ipvs/ip_vs_core.c
net/netfilter/ipvs/ip_vs_ctl.c