Skip to content

Stabilize debug output on different endian systems

Phil Sutter netfilter-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. 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 filesSizeRepliesApplied
2/7set: Introduce NFTNL_SET_DESC_BYTEORDERinclude/libnftnl/set.h include/set.h src/set.c+10 -00 replies
3/7set: Introduce NFTNL_SET_DESC_CONCAT_DATAinclude/libnftnl/set.h include/set.h src/set.c+11 -05 replies
4/7data_reg: Support varying byteorder in concat datasrc/expr/data_reg.c+5 -40 replies
5/7data_reg: Respect each value's sizesrc/expr/data_reg.c+51 -100 replies
6/7include: Introduce and publish struct nftnl_set_descinclude/libnftnl/set.h include/set.h+12 -80 replies
7/7set: Introduce nftnl_set_elem_snprintf_desc()include/data_reg.h include/libnftnl/set.h include/set_elem.h +4 more+50 -240 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

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