From ec916a449903f30e00bf5d392ce84b0bb248363a Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Tue, 7 Aug 2018 17:45:15 +0200 Subject: 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 --- tests/py/inet/osf.t | 1 + 1 file changed, 1 insertion(+) (limited to 'tests/py/inet/osf.t') diff --git a/tests/py/inet/osf.t b/tests/py/inet/osf.t index 6533b84e..7cf90931 100644 --- a/tests/py/inet/osf.t +++ b/tests/py/inet/osf.t @@ -7,3 +7,4 @@ osf name "Linux";ok osf name "morethansixteenbytes";fail osf name ;fail +ct mark set osf name map { "Windows" : 0x00000001, "MacOs" : 0x00000002 };ok -- cgit v1.2.3