diff options
Diffstat (limited to 'extensions/ebt_redirect.c')
-rw-r--r-- | extensions/ebt_redirect.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/extensions/ebt_redirect.c b/extensions/ebt_redirect.c index 82feaa9..ba7f6b1 100644 --- a/extensions/ebt_redirect.c +++ b/extensions/ebt_redirect.c @@ -40,7 +40,7 @@ static int parse(int c, char **argv, int argc, case REDIRECT_TARGET: ebt_check_option(flags, OPT_REDIRECT_TARGET); if (FILL_TARGET(optarg, redirectinfo->target)) - print_error("Illegal --redirect-target target"); + ebt_print_error("Illegal --redirect-target target"); break; default: return 0; @@ -56,12 +56,12 @@ static void final_check(const struct ebt_u_entry *entry, (struct ebt_redirect_info *)target->data; if (BASE_CHAIN && redirectinfo->target == EBT_RETURN) - print_error("--redirect-target RETURN not allowed on " - "base chain"); + ebt_print_error("--redirect-target RETURN not allowed on " + "base chain"); CLEAR_BASE_CHAIN_BIT; if ( ((hookmask & ~(1 << NF_BR_PRE_ROUTING)) || strcmp(name, "nat")) && ((hookmask & ~(1 << NF_BR_BROUTING)) || strcmp(name, "broute")) ) - print_error("Wrong chain for redirect"); + ebt_print_error("Wrong chain for redirect"); } static void print(const struct ebt_u_entry *entry, @@ -99,8 +99,7 @@ static struct ebt_u_target redirect_target = .extra_ops = opts, }; -static void _init(void) __attribute__ ((constructor)); -static void _init(void) +void _init(void) { ebt_register_target(&redirect_target); } |