]> git.baikalelectronics.ru Git - kernel.git/commit
ipv4: ip_forward: perform skb->pkt_type check at the beginning
authorDenis Kirjanov <kda@linux-powerpc.org>
Thu, 13 Feb 2014 04:58:56 +0000 (08:58 +0400)
committerDavid S. Miller <davem@davemloft.net>
Thu, 13 Feb 2014 23:35:56 +0000 (18:35 -0500)
commitad3d87fcac04436cbba78b146bc4e88028cbb64d
treebeb6710f7ffb43a00ba26da9e02b3f4feab9532a
parentd80519858f3a056a858b428c091243ddbf139b0e
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: Denis Kirjanov <kda@linux-powerpc.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ip_forward.c