]> git.ipfire.org Git - thirdparty/nftables.git/commitdiff
tests: py: revert dccp python tests
authorFlorian Westphal <fw@strlen.de>
Mon, 11 Aug 2025 09:25:06 +0000 (11:25 +0200)
committerFlorian Westphal <fw@strlen.de>
Mon, 11 Aug 2025 19:34:09 +0000 (21:34 +0200)
These fail for kernels with 'CONFIG_NFT_EXTHDR_DCCP is not set', remove
the tests in anticipation of a future removal from both kernel and
nftables.

Signed-off-by: Florian Westphal <fw@strlen.de>
Acked-by: Pablo Neira Ayuso <pablo@netfilter.org>
tests/py/inet/dccp.t
tests/py/inet/dccp.t.json
tests/py/inet/dccp.t.payload

index 99cddbe77c5b54fc9afa0ccf8e921d464849c221..90142f53254ef49ab1b784864d7b87319791239b 100644 (file)
@@ -23,8 +23,3 @@ dccp type {request, response, data, ack, dataack, closereq, close, reset, sync,
 dccp type != {request, response, data, ack, dataack, closereq, close, reset, sync, syncack};ok
 dccp type request;ok
 dccp type != request;ok
-
-dccp option 0 exists;ok
-dccp option 43 missing;ok
-dccp option 255 exists;ok
-dccp option 256 exists;fail
index 9f47e97b8711e0a229dd2c5e5ee0c410a818d214..806ef5eefca39bb8910228c4287fb72b41d378ba 100644 (file)
     }
 ]
 
-# dccp option 0 exists
-[
-    {
-        "match": {
-            "left": {
-                "dccp option": {
-                    "type": 0
-                }
-            },
-            "op": "==",
-            "right": true
-        }
-    }
-]
-
-# dccp option 43 missing
-[
-    {
-        "match": {
-            "left": {
-                "dccp option": {
-                    "type": 43
-                }
-            },
-            "op": "==",
-            "right": false
-        }
-    }
-]
-
-# dccp option 255 exists
-[
-    {
-        "match": {
-            "left": {
-                "dccp option": {
-                    "type": 255
-                }
-            },
-            "op": "==",
-            "right": true
-        }
-    }
-]
index 7cb9721c1cd8a17090bc9452cc7de163b78552ab..b5edfa5daed92ffcdaf2564f42519af9b25c42a9 100644 (file)
@@ -97,17 +97,3 @@ inet test-inet input
   [ bitwise reg 1 = ( reg 1 & 0x0000001e ) ^ 0x00000000 ]
   [ cmp neq reg 1 0x00000000 ]
 
-# dccp option 0 exists
-ip test-inet input
-  [ exthdr load 1b @ 0 + 0 present => reg 1 ]
-  [ cmp eq reg 1 0x00000001 ]
-
-# dccp option 43 missing
-ip test-inet input
-  [ exthdr load 1b @ 43 + 0 present => reg 1 ]
-  [ cmp eq reg 1 0x00000000 ]
-
-# dccp option 255 exists
-ip test-inet input
-  [ exthdr load 1b @ 255 + 0 present => reg 1 ]
-  [ cmp eq reg 1 0x00000001 ]