Skip to content

Fixes around ebtables' --proto match

Phil Sutter netfilter-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5ebtables: Drop unused OPT_* definesiptables/xtables-eb.c+0 -30 replies
2/5ebtables: Eliminate OPT_TABLEiptables/xtables-eb.c+3 -20 replies
3/5ebtables: Merge OPT_* flags with xshared onesiptables/xshared.h iptables/xtables-eb.c+9 -160 replies
4/5nft-shared: Introduce __get_cmp_data()iptables/nft-shared.c iptables/nft-shared.h+11 -70 replies
5/5ebtables: Support '-p Length'extensions/generic.txlate extensions/libebt_802_3.t iptables/nft-bridge.c+46 -121 reply

Reviews trailers per patch

None of the 5 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchFlorian Westphal
SeriesR-b
1/5
2/5
3/5
4/5
5/5

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [iptables PATCH 0/5] Fixes around ebtables' --proto match

During some code merge, I created an ugly situation where local OPT_* defines in xtables-eb.c override OPT_* enum values from xshared.h with same name but different value.

The above became problematic when I curtly added --verbose support to ebtables-nft in order to support -vv debug output. The used OPT_VERBOSE symbol stemmed from xshared.h and its value clashed with OPT_PROTOCOL. In practice, this turned verbose mode on for rules with protocol match.

Fix all the above by merging the different OPT_* symbols in the first three patches.

The second more relevant issue was ebtables' lack of support for '-p LENGTH', foremost a mandatory prerequisite for 802_3 extension matches validity. The last two patches resolve this.

Phil Sutter (5):
ebtables: Drop unused OPT_* defines
ebtables: Eliminate OPT_TABLE
ebtables: Merge OPT_* flags with xshared ones
nft-shared: Introduce __get_cmp_data()
ebtables: Support '-p Length'

 extensions/generic.txlate |  6 +++++
 extensions/libebt_802_3.t |  6 +++--
 iptables/nft-bridge.c     | 46 ++++++++++++++++++++++++++++++---------
 iptables/nft-shared.c     | 17 +++++++++------
 iptables/nft-shared.h     |  1 +
 iptables/xshared.h        |  5 +++++
 iptables/xtables-eb.c     | 28 ++++++------------------
 7 files changed, 69 insertions(+), 40 deletions(-)
Signature · 1 line
2.34.1