summaryrefslogtreecommitdiffstats
path: root/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
commitb26649e7813ae62c90504ea5e8befc0590465c82 (patch)
treeb96e75864aeaa0f266c52687fd256b1759939efe /ebtables.c
parent666ad4281cd3139244dc6c2ae79695490e796dd3 (diff)
allow checking for --xxxx--target RETURN rules on base chains
Diffstat (limited to 'ebtables.c')
-rw-r--r--ebtables.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ebtables.c b/ebtables.c
index b45c51a..8128525 100644
--- a/ebtables.c
+++ b/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;