diff options
author | Bart De Schuymer <bdschuym@pandora.be> | 2002-06-23 08:03:12 +0000 |
---|---|---|
committer | Bart De Schuymer <bdschuym@pandora.be> | 2002-06-23 08:03:12 +0000 |
commit | 41e8a19ea9934eac5c8ca53e786be88e6e9d1bd7 (patch) | |
tree | 12cb8983f97908ee1da22ccc96b79bcc362dc90a /extensions/ebt_standard.c | |
parent | 60332e0c31f3941a5c0a63db2d887123a6d58f65 (diff) |
*** empty log message ***
Diffstat (limited to 'extensions/ebt_standard.c')
-rw-r--r-- | extensions/ebt_standard.c | 18 |
1 files changed, 11 insertions, 7 deletions
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 <stdio.h> +#include <stdlib.h> #include <sys/socket.h> -#include <linux/netfilter_bridge/ebtables.h> #include <getopt.h> #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, |