summaryrefslogtreecommitdiffstats
path: root/extensions
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
commit57a40c73b4c9814d5ff82e09b61b40937b6f6dc6 (patch)
treeefe0ef4df0c3cd92bf521922080e5855b81a7bd1 /extensions
parent1ab4156d99570c5e6a5ef2450e8f0ec2f850e1ac (diff)
print jumps to user defined chain properly
Diffstat (limited to 'extensions')
-rw-r--r--extensions/ebt_standard.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/extensions/ebt_standard.c b/extensions/ebt_standard.c
index 9ca1fed..726a1ab 100644
--- a/extensions/ebt_standard.c
+++ b/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)