From 7dd5289076160ee2844978bfd1640ca7aa34f4da Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Thu, 30 Oct 2008 20:44:25 +0100 Subject: groups: add attribute group API This new API allows you to set and get some logical set of attributes. This is not intended to replace the existing per-attribute get/set API but to provide more efficient way to get/set certain attributes. This change includes an example file (conntrack_grp_create.c) of the use of the attribute group API. See ATTR_GRP_* for more information on the existing groups. Signed-off-by: Pablo Neira Ayuso --- include/internal/object.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/internal/object.h') diff --git a/include/internal/object.h b/include/internal/object.h index f68d340..8213f4a 100644 --- a/include/internal/object.h +++ b/include/internal/object.h @@ -146,7 +146,8 @@ struct nf_conntrack { struct __nfct_nat snat; struct __nfct_nat dnat; - u_int32_t set[2]; +#define __NFCT_BITSET 2 + u_int32_t set[__NFCT_BITSET]; }; /* -- cgit v1.2.3