aboutsummaryrefslogtreecommitdiffstats
path: root/net/bridge
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2014-10-01 14:34:37 -0400
committerPablo Neira Ayuso <pablo@netfilter.org>2014-10-02 12:30:56 -0400
commit36d2af5998258344993dd43729997a7a3baa9d99 (patch)
tree80fc2deeecb5df62b0e7fd16a51c755a40dc0baf /net/bridge
parent756c1b1a7f20a42a559b40b3b77db5afcbb719d6 (diff)
netfilter: nf_tables: allow to filter from prerouting and postrouting
This allows us to emulate the NAT table in ebtables, which is actually a plain filter chain that hooks at prerouting, output and postrouting. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/bridge')
-rw-r--r--net/bridge/netfilter/nf_tables_bridge.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/bridge/netfilter/nf_tables_bridge.c b/net/bridge/netfilter/nf_tables_bridge.c
index 5bcc0d8b31f2..da17a5eab8b4 100644
--- a/net/bridge/netfilter/nf_tables_bridge.c
+++ b/net/bridge/netfilter/nf_tables_bridge.c
@@ -34,9 +34,11 @@ static struct nft_af_info nft_af_bridge __read_mostly = {
34 .owner = THIS_MODULE, 34 .owner = THIS_MODULE,
35 .nops = 1, 35 .nops = 1,
36 .hooks = { 36 .hooks = {
37 [NF_BR_PRE_ROUTING] = nft_do_chain_bridge,
37 [NF_BR_LOCAL_IN] = nft_do_chain_bridge, 38 [NF_BR_LOCAL_IN] = nft_do_chain_bridge,
38 [NF_BR_FORWARD] = nft_do_chain_bridge, 39 [NF_BR_FORWARD] = nft_do_chain_bridge,
39 [NF_BR_LOCAL_OUT] = nft_do_chain_bridge, 40 [NF_BR_LOCAL_OUT] = nft_do_chain_bridge,
41 [NF_BR_POST_ROUTING] = nft_do_chain_bridge,
40 }, 42 },
41}; 43};
42 44