ipip, sit: fix ipv4_{update_pmtu,redirect} calls
authorDmitry Popov <ixaphire@qrator.net>
Fri, 6 Jun 2014 19:19:21 +0000 (23:19 +0400)
committerJiri Slaby <jslaby@suse.cz>
Mon, 23 Jun 2014 08:28:03 +0000 (10:28 +0200)
commit4b5b1dd6dc1b26c9996375c783f34e428a2307d8
tree6697e8feae2b1b3ba95d90b9a35dedac9bef3cbc
parentcbaf35e5ba05b9ff2f43d798fe4082cca8151861
ipip, sit: fix ipv4_{update_pmtu,redirect} calls

[ Upstream commit 2346829e641b804ece9ac9298136b56d9567c278 ]

ipv4_{update_pmtu,redirect} were called with tunnel's ifindex (t->dev is a
tunnel netdevice). It caused wrong route lookup and failure of pmtu update or
redirect. We should use the same ifindex that we use in ip_route_output_* in
*tunnel_xmit code. It is t->parms.link .

Signed-off-by: Dmitry Popov <ixaphire@qrator.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
net/ipv4/ipip.c
net/ipv6/sit.c