summaryrefslogtreecommitdiffstats
path: root/userspace/ebtables2/extensions/ebt_redirect.c
diff options
context:
space:
mode:
authorBart De Schuymer <bdschuym@pandora.be>2004-01-21 20:39:54 +0000
committerBart De Schuymer <bdschuym@pandora.be>2004-01-21 20:39:54 +0000
commit19456632e3438743b02608e1a61abf5b6c4b13a3 (patch)
tree8a26442e4ef21e61370f17d9032bec6ca526c937 /userspace/ebtables2/extensions/ebt_redirect.c
parent22bcbb5aaaadb6605abfe02c5a6f052fe64eae27 (diff)
add shared libraries
Diffstat (limited to 'userspace/ebtables2/extensions/ebt_redirect.c')
-rw-r--r--userspace/ebtables2/extensions/ebt_redirect.c11
1 files changed, 5 insertions, 6 deletions
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);
}