Skip to content
Commit d4f2fa6a authored by Denis Kirjanov's avatar Denis Kirjanov Committed by David S. Miller
Browse files

ipv4: ip_forward: perform skb->pkt_type check at the beginning



Packets which have L2 address different from ours should be
already filtered before entering into ip_forward().

Perform that check at the beginning to avoid processing such packets.

Signed-off-by: default avatarDenis Kirjanov <kda@linux-powerpc.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 2045ceae
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