Skip to content

netmap support for nft

Pablo Neira Ayuso netfilter-devel 3 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest9 patches 0 repliesNew
  2. v29 patches 0 repliesSuperseded
  3. v13 patches 0 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9src: NAT support for intervals in mapsinclude/expression.h include/statement.h src/evaluate.c +7 more+250 -40 replies
2/9include: resync nf_nat.h kernel headerinclude/linux/netfilter/nf_nat.h+12 -10 replies
3/9src: add netmap supportinclude/linux/netfilter/nf_nat.h include/statement.h src/netlink_delinearize.c +2 more+27 -10 replies
4/9src: add STMT_NAT_F_CONCAT flag and use itinclude/statement.h src/evaluate.c src/netlink_delinearize. +4 more+8 -80 replies
5/9evaluate: fix crash when handling concatenation without mapsrc/evaluate.c+3 -00 replies
6/9tests: py: concatenation, netmap and nat mappingstests/py/ip/snat.t tests/py/ip/snat.t.payload+31 -00 replies
7/9mnl: restore --debug=netlink output with setssrc/mnl.c+5 -00 replies
8/9tests: py: remove range test with service namestests/py/inet/dccp.t+0 -10 replies
9/9tests: shell: add NAT mappings teststests/shell/testcases/sets/0046netmap_0 tests/shell/testcases/sets/0047nat_0 tests/shell/testcases/sets/dumps/0046netmap_0.nft +1 more+53 -00 replies

Reviews trailers per patch

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

Read the v3 thread

Cover letter [PATCH nft,v3 0/9] netmap support for nft

Hi,

Another round of updates for the netmap support:

* Fix memleak when parsing set element data range.
* Convert range to prefix when listing.

Pablo Neira Ayuso (9):
src: NAT support for intervals in maps
include: resync nf_nat.h kernel header
src: add netmap support
src: add STMT_NAT_F_CONCAT flag and use it
evaluate: fix crash when handling concatenation without map
tests: py: concatenation, netmap and nat mappings
mnl: restore --debug=netlink output with sets
tests: py: remove range test with service names
tests: shell: add NAT mappings tests

 include/expression.h                          |   2 +
 include/linux/netfilter/nf_nat.h              |  15 ++-
 include/statement.h                           |   8 +-
 src/evaluate.c                                |  50 +++++++-
 src/mnl.c                                     |  10 +-
 src/netlink.c                                 | 111 +++++++++++++++++-
 src/netlink_delinearize.                      |   0
 src/netlink_delinearize.c                     |  45 ++++++-
 src/netlink_linearize.c                       |  14 ++-
 src/parser_bison.y                            |  53 ++++++++-
 src/rule.c                                    |   3 +
 src/statement.c                               |   6 +-
 tests/py/inet/dccp.t                          |   1 -
 tests/py/ip/snat.t                            |   4 +
 tests/py/ip/snat.t.payload                    |  27 +++++
 tests/shell/testcases/sets/0046netmap_0       |  14 +++
 tests/shell/testcases/sets/0047nat_0          |  20 ++++
 .../testcases/sets/dumps/0046netmap_0.nft     |   6 +
 .../shell/testcases/sets/dumps/0047nat_0.nft  |  13 ++
 19 files changed, 388 insertions(+), 14 deletions(-)
 create mode 100644 src/netlink_delinearize.
 create mode 100755 tests/shell/testcases/sets/0046netmap_0
 create mode 100755 tests/shell/testcases/sets/0047nat_0
 create mode 100644 tests/shell/testcases/sets/dumps/0046netmap_0.nft
 create mode 100644 tests/shell/testcases/sets/dumps/0047nat_0.nft
Signature · 1 line
2.20.1