summaryrefslogtreecommitdiffstats
path: root/userspace/ebtables2/ebtables.c
diff options
context:
space:
mode:
authorBart De Schuymer <bdschuym@pandora.be>2002-07-25 14:51:54 +0000
committerBart De Schuymer <bdschuym@pandora.be>2002-07-25 14:51:54 +0000
commitda51b197ce7a473f0a2ef5599db24514bfa26a49 (patch)
treed2c0267d191eb1c3862ffaa14aec60f5dbbfc321 /userspace/ebtables2/ebtables.c
parentd7cb7c9196f45a843eadfefaa25cd20427665253 (diff)
allow checking for --xxxx--target RETURN rules on base chains
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;