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_SET.c | |
parent | ddcb288316c942a5b8de33edd5f03318db8906b7 (diff) |
Remove old functions, constants
Diffstat (limited to 'extensions/libipt_SET.c')
-rw-r--r-- | extensions/libipt_SET.c | 16 |
1 files changed, 8 insertions, 8 deletions
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); } |