From 41e8a19ea9934eac5c8ca53e786be88e6e9d1bd7 Mon Sep 17 00:00:00 2001 From: Bart De Schuymer Date: Sun, 23 Jun 2002 08:03:12 +0000 Subject: *** empty log message *** --- extensions/ebt_standard.c | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) (limited to 'extensions/ebt_standard.c') diff --git a/extensions/ebt_standard.c b/extensions/ebt_standard.c index 983d055..9ca1fed 100644 --- a/extensions/ebt_standard.c +++ b/extensions/ebt_standard.c @@ -1,6 +1,6 @@ #include +#include #include -#include #include #include "../include/ebtables_u.h" @@ -26,21 +26,25 @@ static int parse(int c, char **argv, int argc, const struct ebt_u_entry *entry, } static void final_check(const struct ebt_u_entry *entry, - const struct ebt_entry_target *target, const char *name, unsigned int hook) + const struct ebt_entry_target *target, const char *name, unsigned int hook_mask) { } static void print(const struct ebt_u_entry *entry, const struct ebt_entry_target *target) { - __u8 verdict = ((struct ebt_standard_target *)target)->verdict; + int verdict = ((struct ebt_standard_target *)target)->verdict; if (verdict == EBT_CONTINUE) - printf("Continue "); - else if (verdict == EBT_ACCEPT) - printf("Accept "); + printf("CONTINUE "); + else if (verdict == EBT_ACCEPT) + printf("ACCEPT "); + else if (verdict == EBT_DROP) + printf("DROP "); + else if (verdict == EBT_RETURN) + printf("RETURN "); else - printf("Drop "); + print_error("BUG: Bad standard target"); // this is a bug } static int compare(const struct ebt_entry_target *t1, -- cgit v1.2.3