aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2014-02-05 10:03:39 -0500
committerPablo Neira Ayuso <pablo@netfilter.org>2014-02-06 03:44:18 -0500
commit05513e9e33dbded8124567466a444d32173eecc6 (patch)
tree175aafe01f1fe4914577ce67c8fd32ad8e0440a0 /net/ipv4
parentcc4723ca316742891954efa346298e7c747c0d17 (diff)
netfilter: nf_tables: add reject module for NFPROTO_INET
Add a reject module for NFPROTO_INET. It does nothing but dispatch to the AF-specific modules based on the hook family. Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/ipv4')
-rw-r--r--net/ipv4/netfilter/nft_reject_ipv4.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/net/ipv4/netfilter/nft_reject_ipv4.c b/net/ipv4/netfilter/nft_reject_ipv4.c
index e935d8de1182..e79718a382f2 100644
--- a/net/ipv4/netfilter/nft_reject_ipv4.c
+++ b/net/ipv4/netfilter/nft_reject_ipv4.c
@@ -20,9 +20,9 @@
20#include <net/netfilter/ipv4/nf_reject.h> 20#include <net/netfilter/ipv4/nf_reject.h>
21#include <net/netfilter/nft_reject.h> 21#include <net/netfilter/nft_reject.h>
22 22
23static void nft_reject_ipv4_eval(const struct nft_expr *expr, 23void nft_reject_ipv4_eval(const struct nft_expr *expr,
24 struct nft_data data[NFT_REG_MAX + 1], 24 struct nft_data data[NFT_REG_MAX + 1],
25 const struct nft_pktinfo *pkt) 25 const struct nft_pktinfo *pkt)
26{ 26{
27 struct nft_reject *priv = nft_expr_priv(expr); 27 struct nft_reject *priv = nft_expr_priv(expr);
28 28
@@ -37,6 +37,7 @@ static void nft_reject_ipv4_eval(const struct nft_expr *expr,
37 37
38 data[NFT_REG_VERDICT].verdict = NF_DROP; 38 data[NFT_REG_VERDICT].verdict = NF_DROP;
39} 39}
40EXPORT_SYMBOL_GPL(nft_reject_ipv4_eval);
40 41
41static struct nft_expr_type nft_reject_ipv4_type; 42static struct nft_expr_type nft_reject_ipv4_type;
42static const struct nft_expr_ops nft_reject_ipv4_ops = { 43static const struct nft_expr_ops nft_reject_ipv4_ops = {