summaryrefslogtreecommitdiffstats
path: root/src/ct.c
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2015-06-02 13:03:33 +0200
committerPatrick McHardy <kaber@trash.net>2015-06-02 13:03:33 +0200
commit440202ee45beb64a993f8c92da9c7a3c93f21f4e (patch)
tree87667285cb13f7882e058ce0df75808b9683d5e1 /src/ct.c
parenta9467e55973b10c2e8fe37525514c961580f8506 (diff)
parent933fb6b993d9ddd9a96d15edbea393dc56c932e3 (diff)
Merge remote-tracking branch 'origin/master' into next-4.1
Diffstat (limited to 'src/ct.c')
-rw-r--r--src/ct.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/ct.c b/src/ct.c
index 2eb85eaf..aa801388 100644
--- a/src/ct.c
+++ b/src/ct.c
@@ -161,6 +161,10 @@ static void __init ct_label_table_init(void)
ct_label_tbl = rt_symbol_table_init("/etc/xtables/connlabel.conf");
}
+#ifndef NF_CT_HELPER_NAME_LEN
+#define NF_CT_HELPER_NAME_LEN 16
+#endif
+
static const struct ct_template ct_templates[] = {
[NFT_CT_STATE] = CT_TEMPLATE("state", &ct_state_type,
BYTEORDER_HOST_ENDIAN,
@@ -178,7 +182,8 @@ static const struct ct_template ct_templates[] = {
BYTEORDER_HOST_ENDIAN,
4 * BITS_PER_BYTE),
[NFT_CT_HELPER] = CT_TEMPLATE("helper", &string_type,
- BYTEORDER_HOST_ENDIAN, 0),
+ BYTEORDER_HOST_ENDIAN,
+ NF_CT_HELPER_NAME_LEN * BITS_PER_BYTE),
[NFT_CT_L3PROTOCOL] = CT_TEMPLATE("l3proto", &invalid_type,
BYTEORDER_INVALID,
BITS_PER_BYTE),