diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2009-05-30 11:09:19 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2009-05-30 11:09:19 +0200 |
commit | 8bb593c025100cc03a9b3e03f636dc999f891a1c (patch) | |
tree | b8d78efb6110ac03c8c47211e95e123f36fff0ee /include/internal/object.h | |
parent | 3ba6d6c1ded320db0c0519bcf4cb270933e55c9a (diff) |
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 <pablo@netfilter.org>
Diffstat (limited to 'include/internal/object.h')
-rw-r--r-- | include/internal/object.h | 5 |
1 files changed, 4 insertions, 1 deletions
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; |