Skip to content

Some fixes and trivial improvements

Phil Sutter netfilter-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest14 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/14nft: cache: Annotate faked base chains as suchiptables/nft-cache.c iptables/nft-cache.h iptables/nft-chain.c +2 more+28 -170 replies
2/14nft: Fix for zeroing existent builtin chainsiptables/nft.c+1 -10 replies
3/14extensions: recent: Fix format string for unsigned valuesextensions/libxt_recent.c+8 -40 replies
4/14extensions: conntrack: Use the right callbacksextensions/libxt_conntrack.c+6 -60 replies
5/14nft: cmd: Init struct nft_cmd::head earlyiptables/nft-cmd.c+1 -00 replies
6/14nft: Add potentially missing init_cs callsiptables/nft-arp.c iptables/nft.c+14 -00 replies
7/14arptables: Fix conditional opcode/proto-type printingiptables/nft-arp.c+4 -20 replies
8/14xshared: Do not omit all-wildcard interface spec when invertedextensions/iptables.t extensions/libarpt_standard.t extensions/libebt_standard.t +1 more+7 -10 replies
9/14extensions: conntrack: Reuse print_state() for old state matchextensions/libxt_conntrack.c+4 -300 replies
10/14xshared: Make save_iface() staticiptables/xshared.c iptables/xshared.h+1 -20 replies
11/14xshared: Move NULL pointer check into save_iface()iptables/xshared.c+4 -100 replies
12/14libxtables: Debug: Slightly improve extension ordering debugginglibxtables/xtables.c+15 -50 replies
13/14arptables: Introduce print_iface()iptables/nft-arp.c+16 -360 replies
14/14ebtables: Omit all-wildcard interface specs from outputiptables/nft-bridge.c+1 -10 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [iptables PATCH 00/14] Some fixes and trivial improvements

With my fix for flushing non-existent chains I inadvertently turned chain flushes into nops and broke iptables-restore with input containing a flush early before other commands. The shell testsuite clearly identified all these issues, but I had tested only the problem case. This is fixed by patch 2 with patch 1 as basic work.

Patches 3-7 fix other issues I stumbled upon when working on some approach for forward-compatibility.

The remaining patches are not strictly fixes but trivial enough to just go along with the rest.

Phil Sutter (14):
nft: cache: Annotate faked base chains as such
nft: Fix for zeroing existent builtin chains
extensions: recent: Fix format string for unsigned values
extensions: conntrack: Use the right callbacks
nft: cmd: Init struct nft_cmd::head early
nft: Add potentially missing init_cs calls
arptables: Fix conditional opcode/proto-type printing
xshared: Do not omit all-wildcard interface spec when inverted
extensions: conntrack: Reuse print_state() for old state match
xshared: Make save_iface() static
xshared: Move NULL pointer check into save_iface()
libxtables: Debug: Slightly improve extension ordering debugging
arptables: Introduce print_iface()
ebtables: Omit all-wildcard interface specs from output

 extensions/iptables.t         |  2 ++
 extensions/libarpt_standard.t |  2 ++
 extensions/libebt_standard.t  |  2 ++
 extensions/libxt_conntrack.c  | 46 ++++++--------------------
 extensions/libxt_recent.c     | 12 ++++---
 iptables/nft-arp.c            | 61 +++++++++++++----------------------
 iptables/nft-bridge.c         |  2 +-
 iptables/nft-cache.c          |  6 ++--
 iptables/nft-cache.h          |  2 +-
 iptables/nft-chain.c          |  3 +-
 iptables/nft-chain.h          |  3 +-
 iptables/nft-cmd.c            |  1 +
 iptables/nft.c                | 44 ++++++++++++++++++-------
 iptables/xshared.c            | 16 +++------
 iptables/xshared.h            |  1 -
 libxtables/xtables.c          | 20 +++++++++---
 16 files changed, 109 insertions(+), 114 deletions(-)
Signature · 1 line
2.43.0