summaryrefslogtreecommitdiffstats
path: root/extensions/libipt_MASQUERADE.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_MASQUERADE.c
parentddcb288316c942a5b8de33edd5f03318db8906b7 (diff)
Remove old functions, constants
Diffstat (limited to 'extensions/libipt_MASQUERADE.c')
-rw-r--r--extensions/libipt_MASQUERADE.c18
1 files changed, 8 insertions, 10 deletions
diff --git a/extensions/libipt_MASQUERADE.c b/extensions/libipt_MASQUERADE.c
index fc914c59..ea4f5cdd 100644
--- a/extensions/libipt_MASQUERADE.c
+++ b/extensions/libipt_MASQUERADE.c
@@ -12,14 +12,11 @@
static void MASQUERADE_help(void)
{
printf(
-"MASQUERADE v%s options:\n"
+"MASQUERADE target options:\n"
" --to-ports <port>[-<port>]\n"
" Port (range) to map to.\n"
" --random\n"
-" Randomize source port.\n"
-"\n"
-,
-IPTABLES_VERSION);
+" Randomize source port.\n");
}
static const struct option MASQUERADE_opts[] = {
@@ -151,11 +148,12 @@ MASQUERADE_save(const void *ip, const struct xt_entry_target *target)
printf("--random ");
}
-static struct iptables_target masquerade_target = {
+static struct xtables_target masquerade_tg_reg = {
.name = "MASQUERADE",
- .version = IPTABLES_VERSION,
- .size = IPT_ALIGN(sizeof(struct ip_nat_multi_range)),
- .userspacesize = IPT_ALIGN(sizeof(struct ip_nat_multi_range)),
+ .version = XTABLES_VERSION,
+ .family = PF_INET,
+ .size = XT_ALIGN(sizeof(struct ip_nat_multi_range)),
+ .userspacesize = XT_ALIGN(sizeof(struct ip_nat_multi_range)),
.help = MASQUERADE_help,
.init = MASQUERADE_init,
.parse = MASQUERADE_parse,
@@ -166,5 +164,5 @@ static struct iptables_target masquerade_target = {
void _init(void)
{
- register_target(&masquerade_target);
+ xtables_register_target(&masquerade_tg_reg);
}