[nft v3 PATCH 0/4] add input flags and "no-dns"/"json" flags

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



v3. Changes:

- new patch to add NFT_CTX_INPUT_JSON as hinted by Phil.
- no longer introduce parse_ctx_init() helper function
- various rewording

The Python API is still as before. I am not opposed to change it, once
consensus is found.

Thomas Haller (4):
  src: add input flags for nft_ctx
  src: add input flag NFT_CTX_INPUT_NO_DNS to avoid blocking
  src: add input flag NFT_CTX_INPUT_JSON to enable JSON parsing
  py: add Nftables.input_{set,get}_flags() API

 doc/libnftables.adoc           | 26 +++++++++++++
 include/datatype.h             |  1 +
 include/nftables.h             |  5 +++
 include/nftables/libnftables.h |  8 ++++
 py/nftables.py                 | 54 +++++++++++++++++++++++++++
 src/datatype.c                 | 68 ++++++++++++++++++++--------------
 src/evaluate.c                 | 10 ++++-
 src/libnftables.c              | 18 ++++++++-
 src/libnftables.map            |  5 +++
 9 files changed, 163 insertions(+), 32 deletions(-)

-- 
2.41.0




[Index of Archives]     [Netfitler Users]     [Berkeley Packet Filter]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux