Automatic merging of adjacent/overlapping ranges upon insertion has
clear benefits performance- and readability-wise. The drawbacks which
led to disabling it by default don't apply to anonymous sets since they
are read-only anyway, so enable this feature for them again.
Cc: Jeff Kletsky <netfilter@allycomm.com>
Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
set->handle.set = xstrdup(name);
set->key = key;
set->init = expr;
+ set->automerge = set->flags & NFT_SET_INTERVAL;
if (ctx->table != NULL)
list_add_tail(&set->list, &ctx->table->sets);