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@linuxfoundation.org>
Thu, 1 Mar 2012 00:34:01 +0000 (16:34 -0800)
commitc4f2403478002bdb0a46a62f87909aeda8058d8b
tree52a2859f4956790dc8d446d91f6c64ee3147d103
parent24190a04c967d91e718bbe7a871e418edb9424aa
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@linuxfoundation.org>
net/ipv4/ip_options.c