From 19456632e3438743b02608e1a61abf5b6c4b13a3 Mon Sep 17 00:00:00 2001 From: Bart De Schuymer Date: Wed, 21 Jan 2004 20:39:54 +0000 Subject: add shared libraries --- userspace/ebtables2/extensions/ebt_redirect.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'userspace/ebtables2/extensions/ebt_redirect.c') diff --git a/userspace/ebtables2/extensions/ebt_redirect.c b/userspace/ebtables2/extensions/ebt_redirect.c index 82feaa9..ba7f6b1 100644 --- a/userspace/ebtables2/extensions/ebt_redirect.c +++ b/userspace/ebtables2/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); } -- cgit v1.2.3