Commit ced958c8 authored by Sigmund Augdal's avatar Sigmund Augdal

Set initial allocated size for ipsets to a relatively small value.

This gives at least 90% reduction in memory usage per ipset
parent 31844d03
......@@ -100,7 +100,7 @@ class Generator(object):
self.group_members[setname] = 0
self.output("create {} {} family {} hashsize {} maxelem {}".format(setname, set_type,
1024, MAXELEM))
return name
def add_ipset_net(self, name, net):
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment