Skip to content

iptables-translation enhancements

Pablo Neira Ayuso netfilter-devel 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 0 repliesNew
  2. v12 patches 0 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5libxtables: extend xlate infrastructureconfigure.ac include/xtables.h iptables/xtables-translate.c +1 more+93 -280 replies
2/5tests: xlate-test: support multiline expectationxlate-test.py+12 -20 replies
3/5extensions: libxt_connlimit: add translationextensions/libxt_connlimit.c extensions/libxt_connlimit.txlate+64 -00 replies
4/5extensions: libxt_tcp: rework translation to use flags match representationextensions/libxt_TCPMSS.txlate extensions/libxt_tcp.c extensions/libxt_tcp.txlate+10 -100 replies
5/5extensions: libxt_conntrack: simplify translation using negationextensions/libxt_conntrack.c extensions/libxt_conntrack.txlate+17 -370 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH iptables,v2 0/5] iptables-translation enhancements

Hi,

This is v2 of a previously posted individual patches.

1) Extend libxtables to allow to add a set dependency definition for translations. Changes since v1: Fix broken translation of single commands with no matches / targets.

2) Update xlate-test.py to deal with multiline translation (new in this v2 batch).

3) Add libxt_connlimit xlate support and tests (Changes since v1:
added tests).

4) Use compact flags match representation in libxt_tcp (new)

5) Use negation to simplify libxt_conntrack translation (new)

Pablo Neira Ayuso (5):
libxtables: extend xlate infrastructure
tests: xlate-test: support multiline expectation
extensions: libxt_connlimit: add translation
extensions: libxt_tcp: rework translation to use flags match representation
extensions: libxt_conntrack: simplify translation using negation

 configure.ac                      |  4 +-
 extensions/libxt_TCPMSS.txlate    |  4 +-
 extensions/libxt_connlimit.c      | 49 ++++++++++++++++++
 extensions/libxt_connlimit.txlate | 15 ++++++
 extensions/libxt_conntrack.c      | 46 +++++------------
 extensions/libxt_conntrack.txlate |  8 +--
 extensions/libxt_tcp.c            | 10 ++--
 extensions/libxt_tcp.txlate       |  6 +--
 include/xtables.h                 |  6 +++
 iptables/xtables-translate.c      | 29 ++++++++---
 libxtables/xtables.c              | 82 ++++++++++++++++++++++++-------
 xlate-test.py                     | 14 +++++-
 12 files changed, 196 insertions(+), 77 deletions(-)
 create mode 100644 extensions/libxt_connlimit.txlate
Signature · 1 line
2.20.1