From 6cd49745931f42cfe2280bf78e483035c3c5e2e6 Mon Sep 17 00:00:00 2001 From: "/C=EU/ST=EU/CN=Patrick McHardy/emailAddress=kaber@trash.net" Date: Tue, 15 Apr 2008 12:01:06 +0000 Subject: [PATCH 08/10] Remove old functions, constants --- extensions/libipt_ULOG.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'extensions/libipt_ULOG.c') diff --git a/extensions/libipt_ULOG.c b/extensions/libipt_ULOG.c index 31990a6..d2b464f 100644 --- a/extensions/libipt_ULOG.c +++ b/extensions/libipt_ULOG.c @@ -36,12 +36,11 @@ static void print_groups(unsigned int gmask) /* Function which prints out usage message. */ static void ULOG_help(void) { - printf("ULOG v%s options:\n" + printf("ULOG target options:\n" " --ulog-nlgroup nlgroup NETLINK group used for logging\n" " --ulog-cprange size Bytes of each packet to be passed\n" " --ulog-qthreshold Threshold of in-kernel queue\n" - " --ulog-prefix prefix Prefix log messages with this prefix.\n\n", - IPTABLES_VERSION); + " --ulog-prefix prefix Prefix log messages with this prefix.\n"); } static const struct option ULOG_opts[] = { @@ -186,11 +185,12 @@ static void ULOG_print(const void *ip, const struct xt_entry_target *target, printf("queue_threshold %u ", (unsigned int)loginfo->qthreshold); } -static struct iptables_target ulog_target = { +static struct xtables_target ulog_tg_reg = { .name = "ULOG", - .version = IPTABLES_VERSION, - .size = IPT_ALIGN(sizeof(struct ipt_ulog_info)), - .userspacesize = IPT_ALIGN(sizeof(struct ipt_ulog_info)), + .version = XTABLES_VERSION, + .family = PF_INET, + .size = XT_ALIGN(sizeof(struct ipt_ulog_info)), + .userspacesize = XT_ALIGN(sizeof(struct ipt_ulog_info)), .help = ULOG_help, .init = ULOG_init, .parse = ULOG_parse, @@ -201,5 +201,5 @@ static struct iptables_target ulog_target = { void _init(void) { - register_target(&ulog_target); + xtables_register_target(&ulog_tg_reg); } -- cgit v1.2.3