]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: ebtables: Fix argument order to ADD_COUNTER
authorTodd Seidelmann <tseidelmann@linode.com>
Wed, 14 Aug 2019 14:54:16 +0000 (10:54 -0400)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 19 Aug 2019 07:34:20 +0000 (09:34 +0200)
commit4a8a5bef7f2a56d91450ed78b7ca4c13dd572181
tree35d3a5abd7aefb54687cb329e2cb35e97156e51a
parenta9593db1d0455d46505189a4110bb568198c026d
netfilter: ebtables: Fix argument order to ADD_COUNTER

The ordering of arguments to the x_tables ADD_COUNTER macro
appears to be wrong in ebtables (cf. ip_tables.c, ip6_tables.c,
and arp_tables.c).

This causes data corruption in the ebtables userspace tools
because they get incorrect packet & byte counts from the kernel.

Fixes: dd76f793a3398 ("netfilter: ebtables: use ADD_COUNTER macro")
Signed-off-by: Todd Seidelmann <tseidelmann@linode.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/bridge/netfilter/ebtables.c