OSDN Git Service

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)
commitf20faa06d83de440bec8e200870784c3458793c4
tree35d3a5abd7aefb54687cb329e2cb35e97156e51a
parent0d7342c3637462fc6291b392ced9af0f4ca4dab4
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: d72133e628803 ("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