diff options
author | Jan Engelhardt <jengelh@medozas.de> | 2008-04-15 11:48:25 +0200 |
---|---|---|
committer | Patrick McHardy <kaber@trash.net> | 2008-04-15 14:01:06 +0200 |
commit | 8b7c64d6ba156a99008fcd810cba874c73294333 (patch) | |
tree | 47489e2ac7ae083087ec7f0675f1c2e5fc2b4d7a /extensions/libipt_ULOG.c | |
parent | ddcb288316c942a5b8de33edd5f03318db8906b7 (diff) |
Remove old functions, constants
Diffstat (limited to 'extensions/libipt_ULOG.c')
-rw-r--r-- | extensions/libipt_ULOG.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/extensions/libipt_ULOG.c b/extensions/libipt_ULOG.c index 31990a61..d2b464f2 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); } |