]> git.ipfire.org Git - thirdparty/nftables.git/commit
py: add Nftables.{get,set}_input_flags() API
authorThomas Haller <thaller@redhat.com>
Fri, 18 Aug 2023 09:40:41 +0000 (11:40 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 24 Aug 2023 07:01:45 +0000 (09:01 +0200)
commitf0d16340c282df779d30470598dbbd01427a636e
tree3fcd18450175dce0f3b1f9e1c15f9550569ac756
parent56c36323a3411a0a3546207d20fd154ff8af3705
py: add Nftables.{get,set}_input_flags() API

Similar to the existing Nftables.{get,set}_debug() API.

Only notable (internal) difference is that nft_ctx_input_set_flags()
returns the old value already, so we don't need to call
Nftables.get_input_flags() first.

The benefit of this API, is that it follows the existing API for debug
flags. Also, when future flags are added it requires few changes to the
python code.

Signed-off-by: Thomas Haller <thaller@redhat.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
py/src/nftables.py