summaryrefslogtreecommitdiff
path: root/extensions/ebt_pkttype.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
commit64182a3092399c5cfd1ad6b2ad87f9f074354292 (patch)
tree5cdb1b84fff5cbe65110cbfe3c3e5127e9501bc3 /extensions/ebt_pkttype.c
parent80c82bbb27681dc261b8615b8abd3e94c95c72b4 (diff)
downloadebtables-64182a3092399c5cfd1ad6b2ad87f9f074354292.tar.gz
add shared libraries
Diffstat (limited to 'extensions/ebt_pkttype.c')
-rw-r--r--extensions/ebt_pkttype.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/extensions/ebt_pkttype.c b/extensions/ebt_pkttype.c
index 35bac29..f7893bb 100644
--- a/extensions/ebt_pkttype.c
+++ b/extensions/ebt_pkttype.c
@@ -61,7 +61,7 @@ static int parse(int c, char **argv, int argc, const struct ebt_u_entry *entry,
if (ebt_check_inverse(optarg))
ptinfo->invert = 1;
if (optind > argc)
- print_error("Missing pkttype class specification");
+ ebt_print_error("Missing pkttype class specification");
i = strtol(argv[optind - 1], &end, 16);
if (*end != '\0') {
@@ -74,7 +74,7 @@ static int parse(int c, char **argv, int argc, const struct ebt_u_entry *entry,
}
}
if (i < 0 || i > 255)
- print_error("Problem with specified pkttype class");
+ ebt_print_error("Problem with specified pkttype class");
ptinfo->pkt_type = (uint8_t)i;
break;
@@ -129,8 +129,7 @@ static struct ebt_u_match pkttype_match =
.extra_ops = opts,
};
-static void _init(void) __attribute((constructor));
-static void _init(void)
+void _init(void)
{
ebt_register_match(&pkttype_match);
}