]> git.ipfire.org Git - thirdparty/nftables.git/commitdiff
tests: py: update rawpayload.t.json
authorPablo Neira Ayuso <pablo@netfilter.org>
Fri, 5 Nov 2021 15:47:57 +0000 (16:47 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 8 Nov 2021 09:59:33 +0000 (10:59 +0100)
Missing update of json test.

Fixes: 6ad2058da66a ("datatype: add xinteger_type alias to print in hexadecimal")
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
tests/py/any/rawpayload.t.json
tests/py/any/rawpayload.t.json.output

index 22028ad82300e19e679d237067fb183e1d6f24ea..9481d9bf543bbc0d2b87816604a72e138fe4ff6e 100644 (file)
@@ -66,7 +66,7 @@
     }
 ]
 
-# @nh,8,8 255
+# @nh,8,8 0xff
 [
     {
         "match": {
                 }
             },
            "op": "==",
-            "right": 255
+            "right": "0xff"
         }
     }
 ]
 
-# @nh,8,16 0
+# @nh,8,16 0x0
 [
     {
         "match": {
     }
 ]
 
-# @ll,0,8 and 0x80 eq 0x80
+# @ll,0,8 & 0x80 == 0x80
 [
     {
         "match": {
index ccadbc57ce096991a6c87a794a97092a82a53d84..291b237aed0fe0a61e8627e002a42a353ccbc4d0 100644 (file)
@@ -79,7 +79,7 @@
     }
 ]
 
-# @ll,0,8 and 0x80 eq 0x80
+# @ll,0,8 & 0x80 == 0x80
 [
     {
         "match": {
     }
 ]
 
+# @nh,8,8 0xff
+[
+    {
+        "match": {
+            "left": {
+                "payload": {
+                    "base": "nh",
+                    "len": 8,
+                    "offset": 8
+                }
+            },
+            "op": "==",
+            "right": 255
+        }
+    }
+]