path: root/lib/print.c
diff options
authorJozsef Kadlecsik <>2012-01-13 22:52:44 +0100
committerJozsef Kadlecsik <>2012-01-13 22:52:44 +0100
commit24b35d0b8950407ce85eefef18576d54f1e2c20e (patch)
tree8ecba4e1c02fb03cfab8ae0f37ab60b7455c137f /lib/print.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/print.c')
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/print.c b/lib/print.c
index f04377f..662baae 100644
--- a/lib/print.c
+++ b/lib/print.c
@@ -501,7 +501,7 @@ ipset_print_iface(char *buf, unsigned int len,
name = ipset_data_get(data, opt);
- size = snprintf(buf, len, "%s", name);
+ size = snprintf(buf + offset, len, "%s", name);
SNPRINTF_FAILURE(size, len, offset);
return offset;