summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/parser_json.c2
-rw-r--r--src/statement.c2
-rw-r--r--tests/py/ip/objects.t.json4
3 files changed, 4 insertions, 4 deletions
diff --git a/src/parser_json.c b/src/parser_json.c
index 88a69493..f872977f 100644
--- a/src/parser_json.c
+++ b/src/parser_json.c
@@ -2109,7 +2109,7 @@ static struct stmt *json_parse_stmt(struct json_ctx *ctx, json_t *root)
{ "reject", json_parse_reject_stmt },
{ "set", json_parse_set_stmt },
{ "log", json_parse_log_stmt },
- { "cthelper", json_parse_cthelper_stmt },
+ { "ct helper", json_parse_cthelper_stmt },
{ "meter", json_parse_meter_stmt },
{ "queue", json_parse_queue_stmt },
};
diff --git a/src/statement.c b/src/statement.c
index ac151737..ff4c8eb6 100644
--- a/src/statement.c
+++ b/src/statement.c
@@ -179,7 +179,7 @@ struct stmt *counter_stmt_alloc(const struct location *loc)
static const char *objref_type[NFT_OBJECT_MAX + 1] = {
[NFT_OBJECT_COUNTER] = "counter",
[NFT_OBJECT_QUOTA] = "quota",
- [NFT_OBJECT_CT_HELPER] = "cthelper",
+ [NFT_OBJECT_CT_HELPER] = "ct helper",
[NFT_OBJECT_LIMIT] = "limit",
};
diff --git a/tests/py/ip/objects.t.json b/tests/py/ip/objects.t.json
index c83cc6a4..77c68868 100644
--- a/tests/py/ip/objects.t.json
+++ b/tests/py/ip/objects.t.json
@@ -101,14 +101,14 @@
# ct helper set "cthelp1"
[
{
- "cthelper": "cthelp1"
+ "ct helper": "cthelp1"
}
]
# ct helper set tcp dport map {21 : "cthelp1", 2121 : "cthelp1" }
[
{
- "cthelper": {
+ "ct helper": {
"map": {
"left": {
"payload": {