提交 7be799a7 编写于 作者: D David S. Miller

ipv4: Remove rt->rt_dst reference from ip_forward_options().

At this point iph->daddr equals what rt->rt_dst would hold.
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 8e36360a
...@@ -567,7 +567,7 @@ void ip_forward_options(struct sk_buff *skb) ...@@ -567,7 +567,7 @@ void ip_forward_options(struct sk_buff *skb)
) { ) {
if (srrptr + 3 > srrspace) if (srrptr + 3 > srrspace)
break; break;
if (memcmp(&rt->rt_dst, &optptr[srrptr-1], 4) == 0) if (memcmp(&ip_hdr(skb)->daddr, &optptr[srrptr-1], 4) == 0)
break; break;
} }
if (srrptr + 3 <= srrspace) { if (srrptr + 3 <= srrspace) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册