]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
ipip, sit: fix ipv4_{update_pmtu,redirect} calls
authorDmitry Popov <ixaphire@qrator.net>
Fri, 6 Jun 2014 19:19:21 +0000 (23:19 +0400)
committerDavid S. Miller <davem@davemloft.net>
Wed, 11 Jun 2014 06:35:52 +0000 (23:35 -0700)
commit2346829e641b804ece9ac9298136b56d9567c278
tree4f10815236c30fbcd7da844848e5d421e34bb758
parent87757a917b0b3c0787e0563c679762152be81312
ipip, sit: fix ipv4_{update_pmtu,redirect} calls

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>
net/ipv4/ipip.c
net/ipv6/sit.c