ipip, sit: fix ipv4_{update_pmtu,redirect} calls
authorDmitry Popov <ixaphire@qrator.net>
Fri, 6 Jun 2014 19:19:21 +0000 (23:19 +0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 26 Jun 2014 19:15:40 +0000 (15:15 -0400)
commita7b791bc2b6fcc29f7c56a375823d436f7f233ce
treea08acb248a7520e8822e382045e3551262cf3e96
parent0d0fc9f9e888a6e3fdabdfc08b7c4044b58bc87a
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/ipv4/ipip.c
net/ipv6/sit.c