summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/parser_bison.y2
-rw-r--r--src/rule.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/parser_bison.y b/src/parser_bison.y
index 39a3ab04..02a373cb 100644
--- a/src/parser_bison.y
+++ b/src/parser_bison.y
@@ -1969,7 +1969,7 @@ int_num : NUM { $$ = $1; }
| DASH NUM { $$ = -$2; }
;
-dev_spec : DEVICE STRING { $$ = $2; }
+dev_spec : DEVICE string { $$ = $2; }
| /* empty */ { $$ = NULL; }
;
diff --git a/src/rule.c b/src/rule.c
index e15a20b3..73b78c75 100644
--- a/src/rule.c
+++ b/src/rule.c
@@ -1070,7 +1070,7 @@ static void chain_print_declaration(const struct chain *chain,
nft_print(octx, "\t\ttype %s hook %s", chain->type,
hooknum2str(chain->handle.family, chain->hooknum));
if (chain->dev != NULL)
- nft_print(octx, " device %s", chain->dev);
+ nft_print(octx, " device \"%s\"", chain->dev);
nft_print(octx, " priority %s; policy %s;\n",
prio2str(octx, priobuf, sizeof(priobuf),
chain->handle.family, chain->hooknum,