From 8bb593c025100cc03a9b3e03f636dc999f891a1c Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Sat, 30 May 2009 11:09:19 +0200 Subject: include: shrink helper name field to 16 bytes xt_helper uses a length size of 30 bytes. However, no helper name in the tree has exceeded 16 bytes length so far. Since 2.6.29, the maximum length accepted limited to 16 bytes, this limit is enforced during module loading. With this patch we save bytes in the conntrack objects. Signed-off-by: Pablo Neira Ayuso --- include/internal/object.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/internal/object.h b/include/internal/object.h index 378ba74..ef49590 100644 --- a/include/internal/object.h +++ b/include/internal/object.h @@ -151,7 +151,10 @@ struct nf_conntrack { u_int32_t use; u_int32_t id; -#define __NFCT_HELPER_NAMELEN 30 /* same length in xt_helper */ +/* xt_helper uses a length size of 30 bytes, however, no helper name in + * the tree has exceeded 16 bytes length. Since 2.6.29, the maximum + * length accepted is 16 bytes, this limit is enforced during module load. */ +#define __NFCT_HELPER_NAMELEN 16 char helper_name[__NFCT_HELPER_NAMELEN]; union __nfct_protoinfo protoinfo; -- cgit v1.2.3