Skip to content
  • Eric B Munson's avatar
    netfilter: ipset: Add element count to hash headers · a54dad51
    Eric B Munson authored
    
    
    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: default avatarEric 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: default avatarJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
    a54dad51