netfilter: ebtables: Fix argument order to ADD_COUNTER
authorTodd Seidelmann <tseidelmann@linode.com>
Wed, 14 Aug 2019 14:54:16 +0000 (10:54 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 21 Sep 2019 05:16:54 +0000 (07:16 +0200)
commita4fa6c68ecc3b92f938b6460ef298bc5dd4cec27
tree48617c562d1f1073c29cd825f2744b613506d11e
parent634dd5a486278c72fa156d97e109e556184a0218
netfilter: ebtables: Fix argument order to ADD_COUNTER

[ Upstream commit f20faa06d83de440bec8e200870784c3458793c4 ]

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: d72133e628803 ("netfilter: ebtables: use ADD_COUNTER macro")
Signed-off-by: Todd Seidelmann <tseidelmann@linode.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/bridge/netfilter/ebtables.c