summaryrefslogtreecommitdiffstats
path: root/lib/parse.c
diff options
context:
space:
mode:
authorJozsef Kadlecsik <kadlec@blackhole.kfki.hu>2012-01-13 22:52:44 +0100
committerJozsef Kadlecsik <kadlec@blackhole.kfki.hu>2012-01-13 22:52:44 +0100
commit24b35d0b8950407ce85eefef18576d54f1e2c20e (patch)
tree8ecba4e1c02fb03cfab8ae0f37ab60b7455c137f /lib/parse.c
parentdd71826fcfcfcc8c36f0508cc183dd222da40452 (diff)
Exceptions support added to hash:*net* types
The "nomatch" keyword and option is added to the hash:*net* types, by which one can add exception entries to sets. Example: ipset create test hash:net ipset add test 192.168.0/24 ipset add test 192.168.0/30 nomatch In this case the IP addresses from 192.168.0/24 except 192.168.0/30 match the elements of the set.
Diffstat (limited to 'lib/parse.c')
-rw-r--r--lib/parse.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/parse.c b/lib/parse.c
index eeb253c..0ee34c3 100644
--- a/lib/parse.c
+++ b/lib/parse.c
@@ -1362,11 +1362,11 @@ ipset_parse_netmask(struct ipset_session *session,
*/
int
ipset_parse_flag(struct ipset_session *session,
- enum ipset_opt opt, const char *str UNUSED)
+ enum ipset_opt opt, const char *str)
{
assert(session);
- return ipset_session_data_set(session, opt, NULL);
+ return ipset_session_data_set(session, opt, str);
}
/**