summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2018-08-07 17:45:15 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2018-08-07 17:52:48 +0200
commitec916a449903f30e00bf5d392ce84b0bb248363a (patch)
tree03d38fcc10a04c4a3716893a6856199ccaf52965 /src
parent2a704dff296de5b3bbe9973d253f98a5556a2e87 (diff)
parser_bison: allow to use new osf expression from assignment statement
So the following rule to set the conntrack mark based on the OS passive recognition works: # nft add rule x y ct mark set osf name map { "Windows" : 1, "MacOs" : 2 } Fixes: 9f28b685b473 ("src: introduce passive OS fingerprint matching") Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src')
-rw-r--r--src/parser_bison.y1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/parser_bison.y b/src/parser_bison.y
index 9a75120a..f3c88299 100644
--- a/src/parser_bison.y
+++ b/src/parser_bison.y
@@ -2537,6 +2537,7 @@ primary_stmt_expr : symbol_expr { $$ = $1; }
| payload_expr { $$ = $1; }
| keyword_expr { $$ = $1; }
| socket_expr { $$ = $1; }
+ | osf_expr { $$ = $1; }
;
shift_stmt_expr : primary_stmt_expr