Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ipv4: fix for ip_options_rcv_srr() daddr update.

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>

authored by

Li Wei and committed by
David S. Miller
b12f62ef b7ea81a5

+1
+1
net/ipv4/ip_options.c
··· 640 640 } 641 641 if (srrptr <= srrspace) { 642 642 opt->srr_is_hit = 1; 643 + iph->daddr = nexthop; 643 644 opt->is_changed = 1; 644 645 } 645 646 return 0;