From: Florian Westphal Date: Mon, 11 Aug 2025 09:25:06 +0000 (+0200) Subject: tests: py: revert dccp python tests X-Git-Tag: v1.1.5~33 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=41ad2e41ae772f6aeb6799a1ec8dd8c20b550d12;p=thirdparty%2Fnftables.git tests: py: revert dccp python tests 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 Acked-by: Pablo Neira Ayuso --- diff --git a/tests/py/inet/dccp.t b/tests/py/inet/dccp.t index 99cddbe7..90142f53 100644 --- a/tests/py/inet/dccp.t +++ b/tests/py/inet/dccp.t @@ -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 diff --git a/tests/py/inet/dccp.t.json b/tests/py/inet/dccp.t.json index 9f47e97b..806ef5ee 100644 --- a/tests/py/inet/dccp.t.json +++ b/tests/py/inet/dccp.t.json @@ -230,47 +230,3 @@ } ] -# 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 - } - } -] diff --git a/tests/py/inet/dccp.t.payload b/tests/py/inet/dccp.t.payload index 7cb9721c..b5edfa5d 100644 --- a/tests/py/inet/dccp.t.payload +++ b/tests/py/inet/dccp.t.payload @@ -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 ]