netfilter: nft_meta: move pkttype handling to helper
authorFlorian Westphal <fw@strlen.de>
Wed, 18 Dec 2019 11:05:14 +0000 (12:05 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 26 Dec 2019 16:41:33 +0000 (17:41 +0100)
commit4a54594abdbee230a0471aa137b3d5405c897661
treef346592de86f662ad036ccecc94b741431aa8f14
parentdb8f6f5c8de6dae924a68858ad6a4217f735be13
netfilter: nft_meta: move pkttype handling to helper

When pkttype is loopback, nft_meta performs guesswork to detect
broad/multicast packets. Place this in a helper, this is hardly a hot path.

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nft_meta.c