Skip to content
Commit def57687 authored by David S. Miller's avatar David S. Miller
Browse files

ipv4: Elide use of rt->rt_dst in ip_forward()



No matter what kind of header mangling occurs due to IP options
processing, rt->rt_dst will always equal iph->daddr in the packet.

So we can safely use iph->daddr instead of rt->rt_dst here.

Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent c30883bd
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment