]> git.ipfire.org Git - thirdparty/iptables.git/commit
Revert "libiptc: fix wrong maptype of base chain counters on restore"
authorPhil Sutter <phil@nwl.cc>
Thu, 3 Aug 2023 15:59:03 +0000 (17:59 +0200)
committerPhil Sutter <phil@nwl.cc>
Thu, 10 Aug 2023 12:14:39 +0000 (14:14 +0200)
commit43f78733059ecd28d8567d8205cab5ed62d93458
tree89b520a7b8cf2abaf73597839bf9d0c23656609c
parent39a067bb3b1b4ffb50a925f66e7db56658c0dfa7
Revert "libiptc: fix wrong maptype of base chain counters on restore"

This reverts commit 7c4d668c9c2ee007c82063b7fc784cbbf46b2ec4.

The change can't be right: A simple rule append call will reset all
built-in chains' counters. The old code works fine even given the
mentioned "empty restore" use-case, at least if counters don't change on
the fly in-kernel.

Closes: https://bugzilla.netfilter.org/show_bug.cgi?id=912
Fixes: 7c4d668c9c2ee ("libiptc: fix wrong maptype of base chain counters on restore")
Signed-off-by: Phil Sutter <phil@nwl.cc>
libiptc/libiptc.c