From 9c16370646dcac6ba9803ffea4c552014f7eee11 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 --- userspace/ebtables2/extensions/ebt_log.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'userspace/ebtables2/extensions/ebt_log.c') diff --git a/userspace/ebtables2/extensions/ebt_log.c b/userspace/ebtables2/extensions/ebt_log.c index 2892348..953211e 100644 --- a/userspace/ebtables2/extensions/ebt_log.c +++ b/userspace/ebtables2/extensions/ebt_log.c @@ -103,14 +103,14 @@ static int parse(int c, char **argv, int argc, const struct ebt_u_entry *entry, switch (c) { case LOG_PREFIX: - check_option(flags, OPT_PREFIX); + ebt_check_option(flags, OPT_PREFIX); if (strlen(optarg) > sizeof(loginfo->prefix) - 1) print_error("Prefix too long"); strcpy(loginfo->prefix, optarg); break; case LOG_LEVEL: - check_option(flags, OPT_LEVEL); + ebt_check_option(flags, OPT_LEVEL); i = strtol(optarg, &end, 16); if (*end != '\0' || i < 0 || i > 7) loginfo->loglevel = name_to_loglevel(optarg); @@ -121,17 +121,17 @@ static int parse(int c, char **argv, int argc, const struct ebt_u_entry *entry, break; case LOG_IP: - check_option(flags, OPT_IP); + ebt_check_option(flags, OPT_IP); loginfo->bitmask |= EBT_LOG_IP; break; case LOG_ARP: - check_option(flags, OPT_ARP); + ebt_check_option(flags, OPT_ARP); loginfo->bitmask |= EBT_LOG_ARP; break; case LOG_LOG: - check_option(flags, OPT_LOG); + ebt_check_option(flags, OPT_LOG); break; default: return 0; @@ -190,5 +190,5 @@ static struct ebt_u_watcher log_watcher = static void _init(void) __attribute__ ((constructor)); static void _init(void) { - register_watcher(&log_watcher); + ebt_register_watcher(&log_watcher); } -- cgit v1.2.3