diff options
author | Arturo Borrero <arturo.borrero.glez@gmail.com> | 2015-03-03 19:48:13 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2015-03-04 23:15:43 +0100 |
commit | bdc668637bc1e71020db4ec83d116821ef07d183 (patch) | |
tree | 2d235986b3edbc2a6ba91b757edfa04912214d47 /iptables | |
parent | 379bd7bb9284f2692cd08accd7d2dbe2fb85b985 (diff) |
ebtables-compat: support nflog extension
Let's give support for the nflog extension (a watcher).
Signed-off-by: Arturo Borrero Gonzalez <arturo.borrero.glez@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'iptables')
-rw-r--r-- | iptables/nft-bridge.c | 3 | ||||
-rw-r--r-- | iptables/xtables-eb.c | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/iptables/nft-bridge.c b/iptables/nft-bridge.c index e3ab667f..c4f5db6d 100644 --- a/iptables/nft-bridge.c +++ b/iptables/nft-bridge.c @@ -349,7 +349,8 @@ static void nft_bridge_parse_target(struct xtables_target *t, void *data) struct ebtables_command_state *cs = data; /* harcoded names :-( */ - if (strcmp(t->name, "log") == 0) { + if (strcmp(t->name, "log") == 0 || + strcmp(t->name, "nflog") == 0) { parse_watcher(t, &cs->match_list, false); return; } diff --git a/iptables/xtables-eb.c b/iptables/xtables-eb.c index efbb3cd0..e0e521ae 100644 --- a/iptables/xtables-eb.c +++ b/iptables/xtables-eb.c @@ -645,6 +645,7 @@ static void ebt_load_match_extensions(void) ebt_load_match("mark_m"); ebt_load_watcher("log"); + ebt_load_watcher("nflog"); } static void ebt_add_match(struct xtables_match *m, |