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_arpreply.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'extensions/ebt_arpreply.c') diff --git a/extensions/ebt_arpreply.c b/extensions/ebt_arpreply.c index 7e5f113..d524253 100644 --- a/extensions/ebt_arpreply.c +++ b/extensions/ebt_arpreply.c @@ -48,7 +48,7 @@ static int parse(int c, char **argv, int argc, switch (c) { case REPLY_MAC: - check_option(flags, OPT_REPLY_MAC); + ebt_check_option(flags, OPT_REPLY_MAC); if (!(addr = ether_aton(optarg))) print_error("Problem with specified " "--arpreply-mac mac"); @@ -56,7 +56,7 @@ static int parse(int c, char **argv, int argc, mac_supplied = 1; break; case REPLY_TARGET: - check_option(flags, OPT_REPLY_TARGET); + ebt_check_option(flags, OPT_REPLY_TARGET); if (FILL_TARGET(optarg, replyinfo->target)) print_error("Illegal --arpreply-target target"); break; @@ -94,7 +94,7 @@ static void print(const struct ebt_u_entry *entry, (struct ebt_arpreply_info *)target->data; printf("--arpreply-mac "); - print_mac(replyinfo->mac); + ebt_print_mac(replyinfo->mac); if (replyinfo->target == EBT_DROP) return; printf(" --arpreply-target %s", TARGET_NAME(replyinfo->target)); @@ -128,5 +128,5 @@ static struct ebt_u_target arpreply_target = static void _init(void) __attribute__ ((constructor)); static void _init(void) { - register_target(&arpreply_target); + ebt_register_target(&arpreply_target); } -- cgit v1.2.3