]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6: ip6_forward: perform skb->pkt_type check at the beginning
authorLi RongQing <roy.qing.li@gmail.com>
Tue, 11 Mar 2014 02:40:08 +0000 (10:40 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 11 Mar 2014 04:37:42 +0000 (00:37 -0400)
commit985bf894116899b35f6a7d7d6c8ce2c198f8d82d
treee3a11c9d9e8ff209ba6f46f65f831bc7f696d999
parent8888fd70736921ed5a21411c73a201356f1149ea
ipv6: ip6_forward: perform skb->pkt_type check at the beginning

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

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

Signed-off-by: Li RongQing <roy.qing.li@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/ip6_output.c