]> git.ipfire.org Git - thirdparty/nftables.git/commit
src: add cache level flags
authorPablo Neira Ayuso <pablo@netfilter.org>
Mon, 17 Jun 2019 10:03:08 +0000 (12:03 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 17 Jun 2019 17:54:57 +0000 (19:54 +0200)
commit01e5c6f0ed0315046537612f5a80e506d37a7f8e
tree5e6dc94860d876f6851808812c59d83935c6c689
parenta331eca90d25a1bc519a5a3a53d72a982cedb029
src: add cache level flags

The score approach based on command type is confusing.

This patch introduces cache level flags, each flag specifies what kind
of object type is needed. These flags are set on/off depending on the
list of commands coming in this batch.

cache_is_complete() now checks if the cache contains the objects that
are needed through these new flags.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/Makefile.am
include/cache.h [new file with mode: 0644]
include/nftables.h
include/rule.h
src/cache.c
src/evaluate.c
src/libnftables.c
src/rule.c