diff options
author | Florian Westphal <fw@strlen.de> | 2012-11-13 12:21:08 +0100 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2013-05-06 20:57:52 +0200 |
commit | 013a5284c901a6ce80320f499685b89d15eeed9e (patch) | |
tree | 003a0a7606823ecd6f2a97d782aca5263a2005a1 /include/internal/object.h | |
parent | 706064d8b9423df0d22e9ebba092ec2fb14b38aa (diff) |
api: add nfct_bitmask object
In order to use generic getter/setter API with upcoming
conntrack label extension, add helper functions to set/test/unset
bits in a vector of arbitrary size.
Conntrack labels will then be encoded via nfct_bitmask object.
Original idea from Pablo Neira Ayuso.
Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'include/internal/object.h')
-rw-r--r-- | include/internal/object.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/internal/object.h b/include/internal/object.h index 443e800..609265d 100644 --- a/include/internal/object.h +++ b/include/internal/object.h @@ -297,4 +297,12 @@ struct nf_expect { u_int32_t set[1]; }; +/* + * bitmask object + */ +struct nfct_bitmask { + unsigned int words; + uint32_t bits[]; +}; + #endif |