diff options
author | Jozsef Kadlecsik <kadlec@blackhole.kfki.hu> | 2009-06-11 12:27:09 +0200 |
---|---|---|
committer | Jozsef Kadlecsik <kadlec@blackhole.kfki.hu> | 2009-06-11 12:27:09 +0200 |
commit | 2d280014e281b520280b1a11662aea0da2ffc59c (patch) | |
tree | 327ecdfa09c25638e94e73f6e81689b44befb600 /extensions/libipt_SET.c | |
parent | ecd48dd6ba534deea7fd4d0ce20c7b5c00f4128f (diff) |
Updated set/SET match and target to support multiple ipset protocols.
By checking the protocol version of the kernel part, the sockopt type
of ipset protocols are all supported. Forward compatibility with the
netlink based protocol is missing.
The --set option of the set match is replaced by --match-set to avoid
clashing with the recent match, but the old option is also kept.
Manpages are updated, references to bindings removed.
Diffstat (limited to 'extensions/libipt_SET.c')
-rw-r--r-- | extensions/libipt_SET.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/extensions/libipt_SET.c b/extensions/libipt_SET.c index b717a884..d53fc1b1 100644 --- a/extensions/libipt_SET.c +++ b/extensions/libipt_SET.c @@ -28,13 +28,13 @@ static void SET_help(void) " --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"); + " 'src' and 'dst' specifications.\n"); } static const struct option SET_opts[] = { - {"add-set", 1, NULL, '1'}, - {"del-set", 1, NULL, '2'}, - { } + { .name = "add-set", .has_arg = true, .val = '1'}, + { .name = "del-set", .has_arg = true, .val = '2'}, + { .name = NULL } }; static void SET_init(struct xt_entry_target *target) |