summaryrefslogtreecommitdiffstats
path: root/userspace/ebtables2/extensions/ebt_mark.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_mark.c
parent22bcbb5aaaadb6605abfe02c5a6f052fe64eae27 (diff)
add shared libraries
Diffstat (limited to 'userspace/ebtables2/extensions/ebt_mark.c')
-rw-r--r--userspace/ebtables2/extensions/ebt_mark.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/userspace/ebtables2/extensions/ebt_mark.c b/userspace/ebtables2/extensions/ebt_mark.c
index c40b9fd..bf23a03 100644
--- a/userspace/ebtables2/extensions/ebt_mark.c
+++ b/userspace/ebtables2/extensions/ebt_mark.c
@@ -48,13 +48,13 @@ static int parse(int c, char **argv, int argc,
case MARK_TARGET:
ebt_check_option(flags, OPT_MARK_TARGET);
if (FILL_TARGET(optarg, markinfo->target))
- print_error("Illegal --mark-target target");
+ ebt_print_error("Illegal --mark-target target");
break;
case MARK_SETMARK:
ebt_check_option(flags, OPT_MARK_SETMARK);
markinfo->mark = strtoul(optarg, &end, 0);
if (*end != '\0' || end == optarg)
- print_error("Bad MARK value '%s'", optarg);
+ ebt_print_error("Bad MARK value '%s'", optarg);
mark_supplied = 1;
break;
default:
@@ -71,9 +71,10 @@ static void final_check(const struct ebt_u_entry *entry,
(struct ebt_mark_t_info *)target->data;
if (time == 0 && mark_supplied == 0)
- print_error("No mark value supplied");
+ ebt_print_error("No mark value supplied");
if (BASE_CHAIN && markinfo->target == EBT_RETURN)
- print_error("--mark-target RETURN not allowed on base chain");
+ ebt_print_error("--mark-target RETURN not allowed on base "
+ "chain");
}
static void print(const struct ebt_u_entry *entry,
@@ -113,8 +114,7 @@ static struct ebt_u_target mark_target =
.extra_ops = opts,
};
-static void _init(void) __attribute__ ((constructor));
-static void _init(void)
+void _init(void)
{
ebt_register_target(&mark_target);
}