]> git.baikalelectronics.ru Git - kernel.git/commit
ipv4: Fix wrong order of ip_rt_get_source() and update iph->daddr.
authorLi Wei <lw@cn.fujitsu.com>
Thu, 9 Feb 2012 21:15:25 +0000 (21:15 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 10 Feb 2012 20:12:12 +0000 (15:12 -0500)
commit50971864309b55dc2cfe03fb059c05f40ff28fe8
tree8f105bb70f72675e6bc4e2bc7516856fb21e24c0
parentcd98ca845ef31a33a2c28d547ca9708d8bcf44e3
ipv4: Fix wrong order of ip_rt_get_source() and update iph->daddr.

This patch fix a bug which introduced by commit e320ab02 (ipv4: Save
nexthop address of LSRR/SSRR option to IPCB.).In that patch, we saved
the nexthop of SRR in ip_option->nexthop and update iph->daddr until
we get to ip_forward_options(), but we need to update it before
ip_rt_get_source(), otherwise we may get a wrong src.

Signed-off-by: Li Wei <lw@cn.fujitsu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ip_options.c