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_NETMAP.c | |
parent | ddcb288316c942a5b8de33edd5f03318db8906b7 (diff) |
Remove old functions, constants
Diffstat (limited to 'extensions/libipt_NETMAP.c')
-rw-r--r-- | extensions/libipt_NETMAP.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/extensions/libipt_NETMAP.c b/extensions/libipt_NETMAP.c index da0e5f4d..2a786963 100644 --- a/extensions/libipt_NETMAP.c +++ b/extensions/libipt_NETMAP.c @@ -21,10 +21,10 @@ static const struct option NETMAP_opts[] = { /* Function which prints out usage message. */ static void NETMAP_help(void) { - printf(MODULENAME" v%s options:\n" + printf(MODULENAME" target options:\n" " --%s address[/mask]\n" " Network address to map to.\n\n", - IPTABLES_VERSION, NETMAP_opts[0].name); + NETMAP_opts[0].name); } static u_int32_t @@ -170,11 +170,12 @@ static void NETMAP_save(const void *ip, const struct xt_entry_target *target) NETMAP_print(ip, target, 0); } -static struct iptables_target netmap_target = { +static struct xtables_target netmap_tg_reg = { .name = MODULENAME, - .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 = NETMAP_help, .init = NETMAP_init, .parse = NETMAP_parse, @@ -186,6 +187,6 @@ static struct iptables_target netmap_target = { void _init(void) { - register_target(&netmap_target); + xtables_register_target(&netmap_tg_reg); } |