]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: ipset: Add element count to hash headers
authorEric B Munson <emunson@akamai.com>
Mon, 10 Oct 2016 19:59:21 +0000 (21:59 +0200)
committerJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Thu, 10 Nov 2016 12:28:44 +0000 (13:28 +0100)
commit9ccd399b19037bff10b24074fc3ccf2b909e6b4f
treedccc289da11dae03e2599c4dc2a85480d58abeab
parent87d9f2c4925d7b17f5e4846897762e7583e1eda3
netfilter: ipset: Add element count to hash headers

It would be useful for userspace to query the size of an ipset hash,
however, this data is not exposed to userspace outside of counting the
number of member entries.  This patch uses the attribute
IPSET_ATTR_ELEMENTS to indicate the size in the the header that is
exported to userspace.  This field is then printed by the userspace
tool for hashes.

Signed-off-by: Eric B Munson <emunson@akamai.com>
Cc: Pablo Neira Ayuso <pablo@netfilter.org>
Cc: Josh Hunt <johunt@akamai.com>
Cc: netfilter-devel@vger.kernel.org
Signed-off-by: Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>
net/netfilter/ipset/ip_set_hash_gen.h