From: Vittorio Gambaletta (VittGam) Date: Fri, 4 Sep 2015 02:00:57 +0000 (+0200) Subject: Fix source IP address for ICMP unreachable packets generated by tinc. X-Git-Tag: release-1.0.27~34 X-Git-Url: http://tinc-vpn.org/git/browse?a=commitdiff_plain;ds=inline;h=4278ea515ad7cb029009120856213edd6c37baf8;hp=4278ea515ad7cb029009120856213edd6c37baf8;p=tinc Fix source IP address for ICMP unreachable packets generated by tinc. Try to send ICMP unreachable replies from an address assigned to the local machine, instead of the destination address of the original packet. The address is found by looking up the route towards the sender of the packet that generated the error; in usual configurations, this is the tinc interface. This also fixes the traceroute display in mtr when using the DecrementTTL option. Signed-off-by: Vittorio Gambaletta ---