summaryrefslogtreecommitdiffstats
path: root/extensions/libipt_LOG.c
diff options
context:
space:
mode:
authorJan Engelhardt <jengelh@medozas.de>2008-04-15 11:48:25 +0200
committerPatrick McHardy <kaber@trash.net>2008-04-15 14:01:06 +0200
commit8b7c64d6ba156a99008fcd810cba874c73294333 (patch)
tree47489e2ac7ae083087ec7f0675f1c2e5fc2b4d7a /extensions/libipt_LOG.c
parentddcb288316c942a5b8de33edd5f03318db8906b7 (diff)
Remove old functions, constants
Diffstat (limited to 'extensions/libipt_LOG.c')
-rw-r--r--extensions/libipt_LOG.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/extensions/libipt_LOG.c b/extensions/libipt_LOG.c
index 6b08f586..50b1130c 100644
--- a/extensions/libipt_LOG.c
+++ b/extensions/libipt_LOG.c
@@ -21,14 +21,13 @@
static void LOG_help(void)
{
printf(
-"LOG v%s options:\n"
+"LOG target options:\n"
" --log-level level Level of logging (numeric or see syslog.conf)\n"
" --log-prefix prefix Prefix log messages with this prefix.\n\n"
" --log-tcp-sequence Log TCP sequence numbers.\n\n"
" --log-tcp-options Log TCP options.\n\n"
" --log-ip-options Log IP options.\n\n"
-" --log-uid Log UID owning the local socket.\n\n",
-IPTABLES_VERSION);
+" --log-uid Log UID owning the local socket.\n\n");
}
static const struct option LOG_opts[] = {
@@ -258,11 +257,12 @@ static void LOG_save(const void *ip, const struct xt_entry_target *target)
printf("--log-uid ");
}
-static struct iptables_target log_target = {
+static struct xtables_target log_tg_reg = {
.name = "LOG",
- .version = IPTABLES_VERSION,
- .size = IPT_ALIGN(sizeof(struct ipt_log_info)),
- .userspacesize = IPT_ALIGN(sizeof(struct ipt_log_info)),
+ .version = XTABLES_VERSION,
+ .family = PF_INET,
+ .size = XT_ALIGN(sizeof(struct ipt_log_info)),
+ .userspacesize = XT_ALIGN(sizeof(struct ipt_log_info)),
.help = LOG_help,
.init = LOG_init,
.parse = LOG_parse,
@@ -273,5 +273,5 @@ static struct iptables_target log_target = {
void _init(void)
{
- register_target(&log_target);
+ xtables_register_target(&log_tg_reg);
}