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:12:38 +0000 (15:12 -0400)
commitc581207eda173d5cf3234a579424bbc117b63dd6
tree0a6d782ab60a3b90de7f9d10214049f5d926e820
parent6a827d8a67f750f3096e668657e16d479363d4b5
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