From 8b7c64d6ba156a99008fcd810cba874c73294333 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Tue, 15 Apr 2008 11:48:25 +0200 Subject: Remove old functions, constants --- extensions/libipt_NETMAP.c | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'extensions/libipt_NETMAP.c') 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); } -- cgit v1.2.3