diff options
author | Julian Anastasov <ja@ssi.bg> | 2010-09-21 11:38:57 -0400 |
---|---|---|
committer | Patrick McHardy <kaber@trash.net> | 2010-09-21 11:38:57 -0400 |
commit | 8a8030407f55a6aaedb51167c1a2383311fcd707 (patch) | |
tree | 585f2963a56e528a06f0f3180985faa8a368d3b8 /include/net | |
parent | f4bc17cdd205ebaa3807c2aa973719bb5ce6a5b2 (diff) |
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>
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/ip_vs.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/ip_vs.h b/include/net/ip_vs.h index e8ec5231eae9..3915a4f4cd30 100644 --- a/include/net/ip_vs.h +++ b/include/net/ip_vs.h | |||
@@ -801,6 +801,7 @@ extern int sysctl_ip_vs_expire_quiescent_template; | |||
801 | extern int sysctl_ip_vs_sync_threshold[2]; | 801 | extern int sysctl_ip_vs_sync_threshold[2]; |
802 | extern int sysctl_ip_vs_nat_icmp_send; | 802 | extern int sysctl_ip_vs_nat_icmp_send; |
803 | extern int sysctl_ip_vs_conntrack; | 803 | extern int sysctl_ip_vs_conntrack; |
804 | extern int sysctl_ip_vs_snat_reroute; | ||
804 | extern struct ip_vs_stats ip_vs_stats; | 805 | extern struct ip_vs_stats ip_vs_stats; |
805 | extern const struct ctl_path net_vs_ctl_path[]; | 806 | extern const struct ctl_path net_vs_ctl_path[]; |
806 | 807 | ||