summaryrefslogtreecommitdiffstats
path: root/extensions/libipt_TTL.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_TTL.c
parentddcb288316c942a5b8de33edd5f03318db8906b7 (diff)
Remove old functions, constants
Diffstat (limited to 'extensions/libipt_TTL.c')
-rw-r--r--extensions/libipt_TTL.c17
1 files changed, 8 insertions, 9 deletions
diff --git a/extensions/libipt_TTL.c b/extensions/libipt_TTL.c
index b5a32c40..9c22ba3a 100644
--- a/extensions/libipt_TTL.c
+++ b/extensions/libipt_TTL.c
@@ -19,11 +19,10 @@
static void TTL_help(void)
{
printf(
-"TTL target v%s options\n"
+"TTL target options\n"
" --ttl-set value Set TTL to <value 0-255>\n"
" --ttl-dec value Decrement TTL by <value 1-255>\n"
-" --ttl-inc value Increment TTL by <value 1-255>\n"
-, IPTABLES_VERSION);
+" --ttl-inc value Increment TTL by <value 1-255>\n");
}
static int TTL_parse(int c, char **argv, int invert, unsigned int *flags,
@@ -139,12 +138,12 @@ static const struct option TTL_opts[] = {
{ .name = NULL }
};
-static struct iptables_target ttl_target = {
- .next = NULL,
+static struct xtables_target ttl_tg_reg = {
.name = "TTL",
- .version = IPTABLES_VERSION,
- .size = IPT_ALIGN(sizeof(struct ipt_TTL_info)),
- .userspacesize = IPT_ALIGN(sizeof(struct ipt_TTL_info)),
+ .version = XTABLES_VERSION,
+ .family = PF_INET,
+ .size = XT_ALIGN(sizeof(struct ipt_TTL_info)),
+ .userspacesize = XT_ALIGN(sizeof(struct ipt_TTL_info)),
.help = TTL_help,
.parse = TTL_parse,
.final_check = TTL_check,
@@ -155,5 +154,5 @@ static struct iptables_target ttl_target = {
void _init(void)
{
- register_target(&ttl_target);
+ xtables_register_target(&ttl_tg_reg);
}