]> git.ipfire.org Git - location/libloc.git/commit
ipset: Set maxelem to a fixed size
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 2 Mar 2022 10:18:16 +0000 (10:18 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 2 Mar 2022 10:18:16 +0000 (10:18 +0000)
commit52176cc7d5da625fcc3141afdcc2281b87fa5cb9
tree9ef66ab0b83c4b70cc4c093c7d0716551697cf4f
parent27dc4fa5f7b53beb4ab9de8d8832fc4b3821ae5d
ipset: Set maxelem to a fixed size

When we try to load a changed set which might have more entries, a
previous maxelem could have been smaller preventing us from adding new
entries.

We also cannot run the "create" command with a changed maxelem
parameter which is why this patch set the value to something that should
be large enough for everything.

The downside of this is also, that we cannot modify the hashsize when we
reload a set, which is probably okay, since sets should not change too
much in size and therefore will only run *slightly* less efficient - if
at all.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/python/export.py