diff options
author | Florian Westphal <fw@strlen.de> | 2017-05-24 20:10:44 +0200 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2017-07-16 20:14:43 +0200 |
commit | f63405f9203ce7a8464d585ad49ea67fb2c0bb3f (patch) | |
tree | d01bf44834459ab1fdd02eb659310506e9fc48ac /src/parser_bison.y | |
parent | 0802d4f1fe7c65112633f002fbd56f97388f8ef5 (diff) |
rename struct ct to ct_helper
Its misleading, this structure holds members for ct_helper object
infrastructure, rename it.
Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'src/parser_bison.y')
-rw-r--r-- | src/parser_bison.y | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/parser_bison.y b/src/parser_bison.y index 71c5c77c..74b2ac7b 100644 --- a/src/parser_bison.y +++ b/src/parser_bison.y @@ -2708,14 +2708,14 @@ ct_l4protoname : TCP { $$ = IPPROTO_TCP; } ct_config : TYPE QUOTED_STRING PROTOCOL ct_l4protoname stmt_seperator { - struct ct *ct; + struct ct_helper *ct; int ret; - ct = &$<obj>0->ct; + ct = &$<obj>0->ct_helper; - ret = snprintf(ct->helper_name, sizeof(ct->helper_name), "%s", $2); - if (ret <= 0 || ret >= (int)sizeof(ct->helper_name)) { - erec_queue(error(&@2, "invalid name '%s', max length is %u\n", $2, (int)sizeof(ct->helper_name)), state->msgs); + ret = snprintf(ct->name, sizeof(ct->name), "%s", $2); + if (ret <= 0 || ret >= (int)sizeof(ct->name)) { + erec_queue(error(&@2, "invalid name '%s', max length is %u\n", $2, (int)sizeof(ct->name)), state->msgs); YYERROR; } @@ -2723,7 +2723,7 @@ ct_config : TYPE QUOTED_STRING PROTOCOL ct_l4protoname stmt_seperator } | L3PROTOCOL family_spec_explicit stmt_seperator { - $<obj>0->ct.l3proto = $2; + $<obj>0->ct_helper.l3proto = $2; } ; |