summaryrefslogtreecommitdiffstats
path: root/src/table.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/table.c')
-rw-r--r--src/table.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/table.c b/src/table.c
index 85993eb..18d9077 100644
--- a/src/table.c
+++ b/src/table.c
@@ -295,7 +295,7 @@ static int nft_table_json_parse(struct nft_table *t, char *json)
nft_table_attr_set_u32(t, NFT_TABLE_ATTR_FAMILY, family);
- if (nft_jansson_value_parse_val(root, "table_flags",
+ if (nft_jansson_value_parse_val(root, "flags",
NFT_TYPE_U32, &table_flag) == -1)
goto err;
@@ -340,7 +340,7 @@ static int nft_table_snprintf_json(char *buf, size_t size, struct nft_table *t)
"{\"table\" : {"
"\"name\" : \"%s\","
"\"family\" : \"%s\","
- "\"table_flags\" : %d"
+ "\"flags\" : %d"
"}"
"}" ,
t->name, nft_family2str(t->family), t->table_flags);