]> 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)
commit406880bb9e3a3ff370fb8cc53c88b2c47da2bcbb
tree35d3a5abd7aefb54687cb329e2cb35e97156e51a
parentd7f01bd67ae254a6349f03b169b6520badc6455e
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: e7c79b7cd1344 ("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