path: root/files
diff options
authorPhil Sutter <>2017-10-23 17:33:19 +0200
committerPablo Neira Ayuso <>2017-10-24 15:23:56 +0200
commit7aa53c6c9bbe20631b63c6996bdaf0ce431b8d3e (patch)
treea808cbd45fac9a67b2c8a6c4f2e4601a3a015f0f /files
parent4c15b4008c249b768ca1ec958747a9033f8235b9 (diff)
libnftables: Introduce getters and setters for everything
This introduces getter/setter pairs for all parts in struct nft_ctx (and contained structs) which should be configurable. Most of them are simple ones, just allowing to get/set a given field: * nft_ctx_{get,set}_dry_run() -> ctx->check * nft_ctx_output_{get,set}_numeric() -> ctx->output.numeric * nft_ctx_output_{get,set}_stateless() -> ctx->output.stateless * nft_ctx_output_{get,set}_ip2name() -> ctx->output.ip2name * nft_ctx_output_{get,set}_debug() -> ctx->debug_mask * nft_ctx_output_{get,set}_handle() -> ctx->output.handle * nft_ctx_output_{get,set}_echo() -> ctx->output.echo A more complicated case is include paths handling: In order to keep the API simple, remove INCLUDE_PATHS_MAX restraint and dynamically allocate nft_ctx field include_paths instead. So there is: * nft_ctx_add_include_path() -> add an include path to the list * nft_ctx_clear_include_paths() -> flush the list of include paths Signed-off-by: Phil Sutter <> Signed-off-by: Pablo Neira Ayuso <>
Diffstat (limited to 'files')
0 files changed, 0 insertions, 0 deletions