From 8339ff1d7d8694153e2daac032c0999fbf04aad9 Mon Sep 17 00:00:00 2001 From: Bart De Schuymer Date: Wed, 14 Jan 2004 20:05:27 +0000 Subject: Make ebtables library functions --- extensions/ebt_limit.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'extensions/ebt_limit.c') diff --git a/extensions/ebt_limit.c b/extensions/ebt_limit.c index bf322b8..490686d 100644 --- a/extensions/ebt_limit.c +++ b/extensions/ebt_limit.c @@ -120,16 +120,16 @@ static int parse(int c, char **argv, int argc, switch(c) { case ARG_LIMIT: - check_option(flags, FLAG_LIMIT); - if (check_inverse(optarg)) + ebt_check_option(flags, FLAG_LIMIT); + if (ebt_check_inverse(optarg)) print_error("Unexpected `!' after --limit"); if (!parse_rate(optarg, &r->avg)) print_error("bad rate `%s'", optarg); break; case ARG_LIMIT_BURST: - check_option(flags, FLAG_LIMIT_BURST); - if (check_inverse(optarg)) + ebt_check_option(flags, FLAG_LIMIT_BURST); + if (ebt_check_inverse(optarg)) print_error("Unexpected `!' after --limit-burst"); if (string_to_number(optarg, 0, 10000, &num) == -1) @@ -217,5 +217,5 @@ static struct ebt_u_match limit_match = static void _init(void) __attribute((constructor)); static void _init(void) { - register_match(&limit_match); + ebt_register_match(&limit_match); } -- cgit v1.2.3