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 /include/libipset/session.h | |
parent | 42d44fcb9c938bac9e144ec862ee00459820f271 (diff) |
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 'include/libipset/session.h')
-rw-r--r-- | include/libipset/session.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/libipset/session.h b/include/libipset/session.h index a06c79f..5ccdd6c 100644 --- a/include/libipset/session.h +++ b/include/libipset/session.h @@ -65,6 +65,10 @@ enum ipset_envopt { IPSET_ENV_RESOLVE = (1 << IPSET_ENV_BIT_RESOLVE), IPSET_ENV_BIT_EXIST = 3, IPSET_ENV_EXIST = (1 << IPSET_ENV_BIT_EXIST), + IPSET_ENV_BIT_LIST_SETNAME = 4, + IPSET_ENV_LIST_SETNAME = (1 << IPSET_ENV_BIT_LIST_SETNAME), + IPSET_ENV_BIT_LIST_HEADER = 5, + IPSET_ENV_LIST_HEADER = (1 << IPSET_ENV_BIT_LIST_HEADER), }; extern int ipset_envopt_parse(struct ipset_session *session, |