summaryrefslogtreecommitdiffstats
path: root/userspace
diff options
context:
space:
mode:
authorBart De Schuymer <bdschuym@pandora.be>2002-06-24 21:10:16 +0000
committerBart De Schuymer <bdschuym@pandora.be>2002-06-24 21:10:16 +0000
commitcdd24403ae427aa8be05b6dbec5b38e58feb3934 (patch)
treec09f0d2fe4373d6d6d568661d8e6ce53c2f15c57 /userspace
parentff5a164053f4479a3aa6bab30be71f889ff14140 (diff)
*** empty log message ***
Diffstat (limited to 'userspace')
-rw-r--r--userspace/ebtables2/ebtables.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/userspace/ebtables2/ebtables.c b/userspace/ebtables2/ebtables.c
index c58c0c6..48861f3 100644
--- a/userspace/ebtables2/ebtables.c
+++ b/userspace/ebtables2/ebtables.c
@@ -744,7 +744,8 @@ void check_for_loops()
// now see if we've been here before
for (k = 0; k < sp; k++)
if (stack[k].chain_nr == verdict + NF_BR_NUMHOOKS)
- goto error;
+ print_error("Loop from chain %s to chain %s",
+ nr_to_chain(chain_nr)->name, nr_to_chain(stack[k].chain_nr)->name);
// jump to the chain, make sure we know how to get back
stack[sp].chain_nr = chain_nr;
stack[sp].n = j;
@@ -772,8 +773,6 @@ letscontinue:
}
free(stack);
return;
-error:
- print_error("Loop");
}
// parse the chain name and return the corresponding nr