[libnftnl PATCH 0/7] Stabilize debug output on different endian systems

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

 



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




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

  Powered by Linux