diff options
author | Jozsef Kadlecsik <kadlec@blackhole.kfki.hu> | 2011-04-18 17:32:25 +0200 |
---|---|---|
committer | Jozsef Kadlecsik <kadlec@blackhole.kfki.hu> | 2011-04-18 17:32:25 +0200 |
commit | bf8463fb80ffa70e043a5afee4d30ca3023b30ba (patch) | |
tree | c4ad4a743ab09b93df5b7aa0b2de2f9ae3e38ef4 /src/ui.c | |
parent | 42d44fcb9c938bac9e144ec862ee00459820f271 (diff) | |
download | ipset-bf8463fb80ffa70e043a5afee4d30ca3023b30ba.tar.gz |
Support listing setnames and headers too
Current listing makes possible to list sets with full content only.
The patch adds support partial listings, i.e. listing just
the existing setnames or listing set headers, without set members.
Diffstat (limited to 'src/ui.c')
-rw-r--r-- | src/ui.c | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -188,6 +188,19 @@ const struct ipset_envopts ipset_envopts[] = { " when adding already existing elements\n" " or when deleting non-existing elements.", }, + { .name = { "-n", "-name" }, + .parse = ipset_envopt_parse, + .has_arg = IPSET_NO_ARG, .flag = IPSET_ENV_LIST_SETNAME, + .help = "\n" + " When listing, list just setnames from kernel.\n", + }, + { .name = { "-t", "-terse" }, + .parse = ipset_envopt_parse, + .has_arg = IPSET_NO_ARG, .flag = IPSET_ENV_LIST_HEADER, + .help = "\n" + " When listing, list setnames and set headers\n" + " from kernel only.", + }, { }, }; |