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_SET.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'extensions/libipt_SET.c') diff --git a/extensions/libipt_SET.c b/extensions/libipt_SET.c index dd42867b..378b77e4 100644 --- a/extensions/libipt_SET.c +++ b/extensions/libipt_SET.c @@ -25,13 +25,12 @@ /* Function which prints out usage message. */ static void SET_help(void) { - printf("SET v%s options:\n" + printf("SET target options:\n" " --add-set name flags\n" " --del-set name flags\n" " add/del src/dst IP/port from/to named sets,\n" " where flags are the comma separated list of\n" - " 'src' and 'dst'.\n" - "\n", IPTABLES_VERSION); + " 'src' and 'dst'.\n"); } static const struct option SET_opts[] = { @@ -154,11 +153,12 @@ static void SET_save(const void *ip, const struct xt_entry_target *target) print_target("--del-set", &info->del_set); } -static struct iptables_target set_target = { +static struct xtables_target set_tg_reg = { .name = "SET", - .version = IPTABLES_VERSION, - .size = IPT_ALIGN(sizeof(struct ipt_set_info_target)), - .userspacesize = IPT_ALIGN(sizeof(struct ipt_set_info_target)), + .version = XTABLES_VERSION, + .family = PF_INET, + .size = XT_ALIGN(sizeof(struct ipt_set_info_target)), + .userspacesize = XT_ALIGN(sizeof(struct ipt_set_info_target)), .help = SET_help, .init = SET_init, .parse = SET_parse, @@ -170,5 +170,5 @@ static struct iptables_target set_target = { void _init(void) { - register_target(&set_target); + xtables_register_target(&set_tg_reg); } -- cgit v1.2.3