Skip to content

Commit

Permalink
ipv4: fix for ip_options_rcv_srr() daddr update.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Li Wei authored and David S. Miller committed Nov 9, 2011
1 parent b7ea81a commit b12f62e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions net/ipv4/ip_options.c
Original file line number Diff line number Diff line change
Expand Up @@ -640,6 +640,7 @@ int ip_options_rcv_srr(struct sk_buff *skb)
}
if (srrptr <= srrspace) {
opt->srr_is_hit = 1;
iph->daddr = nexthop;
opt->is_changed = 1;
}
return 0;
Expand Down

0 comments on commit b12f62e

Please sign in to comment.