ipv4: fix for ip_options_rcv_srr() daddr update.
authorLi Wei <lw@cn.fujitsu.com>
Tue, 8 Nov 2011 21:39:28 +0000 (21:39 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 9 Dec 2011 16:55:58 +0000 (08:55 -0800)
commitdb9a8a29b0c7c61b372300978fbe8b01606103f0
tree3ec09257c3d6f36379ee07913f5e8f25ba89c1f1
parentf82c753512bfe2fb4127ee72c882924120c11de8
ipv4: fix for ip_options_rcv_srr() daddr update.

[ Upstream commit b12f62efb8ec0b9523bdb6c2d412c07193086de9 ]

When opt->srr_is_hit is set skb_rtable(skb) has been updated for
'nexthop' and iph->daddr should always equals to skb_rtable->rt_dst
holds, We need update iph->daddr either.

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