Stabilize debug output on different endian systems
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest6 of 7 patches 5 repliesIn review
6 of 7 patches are in this archive. The cover letter announces 7.
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 2/7 | set: Introduce NFTNL_SET_DESC_BYTEORDERinclude/ include/ src/ | +10 | 0 replies | |
| 3/7 | set: Introduce NFTNL_SET_DESC_CONCAT_DATAinclude/ include/ src/ | +11 | 5 replies | |
| 4/7 | data_reg: Support varying byteorder in concat datasrc/ | +5 | 0 replies | |
| 5/7 | data_reg: Respect each value's sizesrc/ | +51 | 0 replies | |
| 6/7 | include: Introduce and publish struct nftnl_set_descinclude/ include/ | +12 | 0 replies | |
| 7/7 | set: Introduce nftnl_set_elem_snprintf_desc()include/ include/ include/ +4 more | +50 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [libnftnl PATCH 0/7] Stabilize debug output on different endian systems
Patch 1 adds byteorder information to expressions, making it possible to print expressions' data in correct byteorder.
For set elements, more effort is required. To accomplish this, patches 2 and 3 introduce new set meta data, patches 4 and 5 extend data reg printing to make use of this extended data and patches 6 and 7 extend the API to allow for external input of the data when printing elements.
Due to patches 6 and 7, patches 2 and 3 are not necessary for the following series of nftables patches. Yet they are left for the sake of completeness and the fact that libnftnl users might want to print set elements along with their set and therefore define meta data via the attributes introduced in patches 2 and 3.
Pablo Neira Ayuso (1):
src: add infrastructure to infer byteorder from keys
Phil Sutter (6):
set: Introduce NFTNL_SET_DESC_BYTEORDER
set: Introduce NFTNL_SET_DESC_CONCAT_DATA
data_reg: Support varying byteorder in concat data
data_reg: Respect each value's size
include: Introduce and publish struct nftnl_set_desc
set: Introduce nftnl_set_elem_snprintf_desc()
include/common.h | 29 +++++++++++++++++++ include/data_reg.h | 10 ++++++- include/expr.h | 2 +- include/expr_ops.h | 2 ++ include/libnftnl/set.h | 16 +++++++++++ include/set.h | 7 ++--- include/set_elem.h | 3 -- src/expr.c | 51 +++++++++++++++++++++++++++++++++ src/expr/bitwise.c | 30 ++++++++++++++------ src/expr/byteorder.c | 21 ++++++++++++++ src/expr/cmp.c | 21 +++++++++++++- src/expr/ct.c | 30 ++++++++++++++++++++ src/expr/data_reg.c | 64 +++++++++++++++++++++++++++++++++++++----- src/expr/dup.c | 14 +++++++++ src/expr/exthdr.c | 14 +++++++++ src/expr/fib.c | 18 ++++++++++++ src/expr/fwd.c | 14 +++++++++ src/expr/immediate.c | 17 +++++++++-- src/expr/masq.c | 16 +++++++++++ src/expr/meta.c | 28 ++++++++++++++++++ src/expr/nat.c | 22 +++++++++++++++ src/expr/numgen.c | 12 ++++++++ src/expr/osf.c | 12 ++++++++ src/expr/payload.c | 14 +++++++++ src/expr/queue.c | 12 ++++++++ src/expr/range.c | 11 ++++++-- src/expr/redir.c | 16 +++++++++++ src/expr/rt.c | 19 +++++++++++++ src/expr/socket.c | 12 ++++++++ src/expr/tproxy.c | 14 +++++++++ src/expr/tunnel.c | 12 ++++++++ src/expr/xfrm.c | 18 ++++++++++++ src/libnftnl.map | 4 +++ src/rule.c | 7 +++++ src/set.c | 21 ++++++++++++-- src/set_elem.c | 47 +++++++++++++++++++++---------- 36 files changed, 612 insertions(+), 48 deletions(-)
Signature · 1 line
2.33.0