]> git.karo-electronics.de Git - linux-beck.git/commit
ipvs: Decrement ttl
authorDwip Banerjee <dwip@linux.vnet.ibm.com>
Wed, 26 Oct 2016 17:14:42 +0000 (12:14 -0500)
committerSimon Horman <horms@verge.net.au>
Tue, 15 Nov 2016 08:49:20 +0000 (09:49 +0100)
commit8d8e20e2d7bba8c50e64e0eca1cb83956f468e49
tree11b72caf498597ac77b2cf12d673d9839372f615
parentfe24a0c3a974f15945639edfc19f6b85f672145c
ipvs: Decrement ttl

We decrement the IP ttl in all the modes in order to prevent infinite
route loops. The changes were done based on Julian Anastasov's
suggestions in a prior thread.

The ttl based check/discard and the actual decrement are done in
__ip_vs_get_out_rt() and in __ip_vs_get_out_rt_v6(), for the IPv6
case. decrement_ttl() implements the actual functionality for the
two cases.

Signed-off-by: Dwip Banerjee <dwip@linux.vnet.ibm.com>
Acked-by: Julian Anastasov <ja@ssi.bg>
Signed-off-by: Simon Horman <horms@verge.net.au>
net/netfilter/ipvs/ip_vs_xmit.c