diff options
author | Bart De Schuymer <bdschuym@pandora.be> | 2002-08-13 16:08:08 +0000 |
---|---|---|
committer | Bart De Schuymer <bdschuym@pandora.be> | 2002-08-13 16:08:08 +0000 |
commit | 9cfd654314d5718393b847758ded6ef86530e5c6 (patch) | |
tree | 5627fb56a1ba249a06561e8d47fc961560388ba8 /extensions/ebt_standard.c | |
parent | b3dbdfb2b63c3f87edba502230b12e7daa5c354f (diff) |
cosmetic improvements and some bugfixes (global description)
Diffstat (limited to 'extensions/ebt_standard.c')
-rw-r--r-- | extensions/ebt_standard.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/extensions/ebt_standard.c b/extensions/ebt_standard.c index 95e00a5..01f5b8c 100644 --- a/extensions/ebt_standard.c +++ b/extensions/ebt_standard.c @@ -1,6 +1,5 @@ #include <stdio.h> #include <stdlib.h> -#include <sys/socket.h> #include <getopt.h> #include "../include/ebtables_u.h" @@ -11,7 +10,8 @@ static struct option opts[] = static void print_help() { - printf("Standard targets: DROP, ACCEPT and CONTINUE\n"); + printf("Standard targets: DROP, ACCEPT, RETURN or CONTINUE;\n" + "The target can also be a user defined chain.\n"); } static void init(struct ebt_entry_target *t) @@ -32,6 +32,7 @@ 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) { @@ -53,7 +54,7 @@ static void print(const struct ebt_u_entry *entry, else if (verdict == EBT_RETURN) printf("RETURN "); else - print_error("BUG: Bad standard target"); // this is a bug + print_bug("Bad standard target"); } static int compare(const struct ebt_entry_target *t1, |