summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBart De Schuymer <bdschuym@pandora.be>2002-06-23 17:11:42 +0000
committerBart De Schuymer <bdschuym@pandora.be>2002-06-23 17:11:42 +0000
commit84c62162d31fb487711a0ab0fd8a8199eba96a30 (patch)
tree0644111c5871e45b8fcf556c7c9907b9f227c4df
parentc5f6ad59e354af5d733471fc7696e5ce5526f713 (diff)
print jumps to user defined chain properly
-rw-r--r--userspace/ebtables2/extensions/ebt_standard.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/userspace/ebtables2/extensions/ebt_standard.c b/userspace/ebtables2/extensions/ebt_standard.c
index 9ca1fed..726a1ab 100644
--- a/userspace/ebtables2/extensions/ebt_standard.c
+++ b/userspace/ebtables2/extensions/ebt_standard.c
@@ -30,11 +30,19 @@ static void final_check(const struct ebt_u_entry *entry,
{
}
+struct ebt_u_entries *nr_to_chain(int nr);
static void print(const struct ebt_u_entry *entry,
const struct ebt_entry_target *target)
{
int verdict = ((struct ebt_standard_target *)target)->verdict;
+ if (verdict >= 0) {
+ struct ebt_u_entries *entries;
+
+ entries = nr_to_chain(verdict + NF_BR_NUMHOOKS);
+ printf("%s", entries->name);
+ return;
+ }
if (verdict == EBT_CONTINUE)
printf("CONTINUE ");
else if (verdict == EBT_ACCEPT)