summaryrefslogtreecommitdiffstats
path: root/userspace/ebtables2/ebtables.c
diff options
context:
space:
mode:
Diffstat (limited to 'userspace/ebtables2/ebtables.c')
-rw-r--r--userspace/ebtables2/ebtables.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/userspace/ebtables2/ebtables.c b/userspace/ebtables2/ebtables.c
index b45c51a..8128525 100644
--- a/userspace/ebtables2/ebtables.c
+++ b/userspace/ebtables2/ebtables.c
@@ -703,7 +703,9 @@ static void check_for_loops()
if (!(replace.valid_hooks & (1 << i)))
continue;
entries = nr_to_chain(i);
- entries->hook_mask = (1 << i);
+ // (1 << NF_BR_NUMHOOKS) implies it's a standard chain
+ // (usefull in the final_check() funtions)
+ entries->hook_mask = (1 << i) | (1 << NF_BR_NUMHOOKS);
chain_nr = i;
e = entries->entries;