netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [libnftnl PATCH 0/7] Stabilize debug output on different endian systems
@ 2021-11-24 17:22 Phil Sutter
  2021-11-24 17:22 ` [libnftnl PATCH v2 1/7] src: add infrastructure to infer byteorder from keys Phil Sutter
                   ` (6 more replies)
  0 siblings, 7 replies; 14+ messages in thread
From: Phil Sutter @ 2021-11-24 17:22 UTC (permalink / raw)
  To: Pablo Neira Ayuso; +Cc: netfilter-devel

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(-)

-- 
2.33.0


^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2022-01-20  0:09 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-11-24 17:22 [libnftnl PATCH 0/7] Stabilize debug output on different endian systems Phil Sutter
2021-11-24 17:22 ` [libnftnl PATCH v2 1/7] src: add infrastructure to infer byteorder from keys Phil Sutter
2021-12-12 17:12   ` Jeremy Sowden
2021-11-24 17:22 ` [libnftnl PATCH 2/7] set: Introduce NFTNL_SET_DESC_BYTEORDER Phil Sutter
2021-11-24 17:22 ` [libnftnl PATCH 3/7] set: Introduce NFTNL_SET_DESC_CONCAT_DATA Phil Sutter
2021-11-30 13:46   ` Pablo Neira Ayuso
2021-11-30 17:45     ` Phil Sutter
2022-01-05 16:17       ` Pablo Neira Ayuso
2022-01-06 13:10         ` Phil Sutter
2022-01-20  0:08           ` Pablo Neira Ayuso
2021-11-24 17:22 ` [libnftnl PATCH 4/7] data_reg: Support varying byteorder in concat data Phil Sutter
2021-11-24 17:22 ` [libnftnl PATCH 5/7] data_reg: Respect each value's size Phil Sutter
2021-11-24 17:22 ` [libnftnl PATCH 6/7] include: Introduce and publish struct nftnl_set_desc Phil Sutter
2021-11-24 17:22 ` [libnftnl PATCH 7/7] set: Introduce nftnl_set_elem_snprintf_desc() Phil Sutter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).