netfilter: ipset: Add element count to all set types header
It is better to list the set elements for all set types, thus the header information is uniform. Element counts are therefore added to the bitmap and list types. Signed-off-by: Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>
This commit is contained in:
@ -250,6 +250,8 @@ struct ip_set {
|
||||
u8 flags;
|
||||
/* Default timeout value, if enabled */
|
||||
u32 timeout;
|
||||
/* Number of elements (vs timeout) */
|
||||
u32 elements;
|
||||
/* Element data size */
|
||||
size_t dsize;
|
||||
/* Offsets to extensions in elements */
|
||||
|
@ -6,8 +6,8 @@
|
||||
#define IPSET_BITMAP_MAX_RANGE 0x0000FFFF
|
||||
|
||||
enum {
|
||||
IPSET_ADD_STORE_PLAIN_TIMEOUT = -1,
|
||||
IPSET_ADD_FAILED = 1,
|
||||
IPSET_ADD_STORE_PLAIN_TIMEOUT,
|
||||
IPSET_ADD_START_STORED_TIMEOUT,
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user