Blame SOURCES/0048-tests-py-Move-tcpopt.t-to-any-directory.patch

4e0227
From c925727c50aa0c916105deaca95cb2f7292ea906 Mon Sep 17 00:00:00 2001
4e0227
From: Phil Sutter <psutter@redhat.com>
4e0227
Date: Mon, 12 Jul 2021 17:44:08 +0200
4e0227
Subject: [PATCH] tests/py: Move tcpopt.t to any/ directory
4e0227
4e0227
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1979334
4e0227
Upstream Status: nftables commit d566fecdfcc37
4e0227
4e0227
commit d566fecdfcc37b721729d26a90af01fc87e09c89
4e0227
Author: Phil Sutter <phil@nwl.cc>
4e0227
Date:   Tue Mar 10 12:56:18 2020 +0100
4e0227
4e0227
    tests/py: Move tcpopt.t to any/ directory
4e0227
4e0227
    Merge tcpopt.t files in ip, ip6 and inet into a common one, they were
4e0227
    just marignally different.
4e0227
4e0227
    Signed-off-by: Phil Sutter <phil@nwl.cc>
4e0227
---
4e0227
 tests/py/{inet => any}/tcpopt.t             |   3 +
4e0227
 tests/py/{inet => any}/tcpopt.t.json        |  70 ++-
4e0227
 tests/py/{inet => any}/tcpopt.t.json.output |   0
4e0227
 tests/py/any/tcpopt.t.payload               | 603 ++++++++++++++++++++
4e0227
 tests/py/inet/tcpopt.t.payload              | 200 -------
4e0227
 tests/py/ip/tcpopt.t                        |  38 --
4e0227
 tests/py/ip/tcpopt.t.json                   | 416 --------------
4e0227
 tests/py/ip/tcpopt.t.json.output            |  16 -
4e0227
 tests/py/ip/tcpopt.t.payload                | 181 ------
4e0227
 tests/py/ip6/tcpopt.t                       |  37 --
4e0227
 tests/py/ip6/tcpopt.t.json                  | 416 --------------
4e0227
 tests/py/ip6/tcpopt.t.json.output           |  16 -
4e0227
 tests/py/ip6/tcpopt.t.payload               | 181 ------
4e0227
 13 files changed, 649 insertions(+), 1528 deletions(-)
4e0227
 rename tests/py/{inet => any}/tcpopt.t (94%)
4e0227
 rename tests/py/{inet => any}/tcpopt.t.json (88%)
4e0227
 rename tests/py/{inet => any}/tcpopt.t.json.output (100%)
4e0227
 create mode 100644 tests/py/any/tcpopt.t.payload
4e0227
 delete mode 100644 tests/py/inet/tcpopt.t.payload
4e0227
 delete mode 100644 tests/py/ip/tcpopt.t
4e0227
 delete mode 100644 tests/py/ip/tcpopt.t.json
4e0227
 delete mode 100644 tests/py/ip/tcpopt.t.json.output
4e0227
 delete mode 100644 tests/py/ip/tcpopt.t.payload
4e0227
 delete mode 100644 tests/py/ip6/tcpopt.t
4e0227
 delete mode 100644 tests/py/ip6/tcpopt.t.json
4e0227
 delete mode 100644 tests/py/ip6/tcpopt.t.json.output
4e0227
 delete mode 100644 tests/py/ip6/tcpopt.t.payload
4e0227
4e0227
diff --git a/tests/py/inet/tcpopt.t b/tests/py/any/tcpopt.t
4e0227
similarity index 94%
4e0227
rename from tests/py/inet/tcpopt.t
4e0227
rename to tests/py/any/tcpopt.t
4e0227
index b457691..08b1dcb 100644
4e0227
--- a/tests/py/inet/tcpopt.t
4e0227
+++ b/tests/py/any/tcpopt.t
4e0227
@@ -1,5 +1,7 @@
4e0227
 :input;type filter hook input priority 0
4e0227
 
4e0227
+*ip;test-ip4;input
4e0227
+*ip6;test-ip6;input
4e0227
 *inet;test-inet;input
4e0227
 
4e0227
 tcp option eol kind 1;ok
4e0227
@@ -19,6 +21,7 @@ tcp option sack0 left 1;ok;tcp option sack left 1
4e0227
 tcp option sack1 left 1;ok
4e0227
 tcp option sack2 left 1;ok
4e0227
 tcp option sack3 left 1;ok
4e0227
+tcp option sack right 1;ok
4e0227
 tcp option sack0 right 1;ok;tcp option sack right 1
4e0227
 tcp option sack1 right 1;ok
4e0227
 tcp option sack2 right 1;ok
4e0227
diff --git a/tests/py/inet/tcpopt.t.json b/tests/py/any/tcpopt.t.json
4e0227
similarity index 88%
4e0227
rename from tests/py/inet/tcpopt.t.json
4e0227
rename to tests/py/any/tcpopt.t.json
4e0227
index 45e9c29..48eb339 100644
4e0227
--- a/tests/py/inet/tcpopt.t.json
4e0227
+++ b/tests/py/any/tcpopt.t.json
4e0227
@@ -8,7 +8,7 @@
4e0227
                     "name": "eol"
4e0227
                 }
4e0227
             },
4e0227
-	    "op": "==",
4e0227
+            "op": "==",
4e0227
             "right": 1
4e0227
         }
4e0227
     }
4e0227
@@ -24,7 +24,7 @@
4e0227
                     "name": "noop"
4e0227
                 }
4e0227
             },
4e0227
-	    "op": "==",
4e0227
+            "op": "==",
4e0227
             "right": 1
4e0227
         }
4e0227
     }
4e0227
@@ -40,7 +40,7 @@
4e0227
                     "name": "maxseg"
4e0227
                 }
4e0227
             },
4e0227
-	    "op": "==",
4e0227
+            "op": "==",
4e0227
             "right": 1
4e0227
         }
4e0227
     }
4e0227
@@ -56,7 +56,7 @@
4e0227
                     "name": "maxseg"
4e0227
                 }
4e0227
             },
4e0227
-	    "op": "==",
4e0227
+            "op": "==",
4e0227
             "right": 1
4e0227
         }
4e0227
     }
4e0227
@@ -72,7 +72,7 @@
4e0227
                     "name": "maxseg"
4e0227
                 }
4e0227
             },
4e0227
-	    "op": "==",
4e0227
+            "op": "==",
4e0227
             "right": 1
4e0227
         }
4e0227
     }
4e0227
@@ -88,7 +88,7 @@
4e0227
                     "name": "window"
4e0227
                 }
4e0227
             },
4e0227
-	    "op": "==",
4e0227
+            "op": "==",
4e0227
             "right": 1
4e0227
         }
4e0227
     }
4e0227
@@ -104,7 +104,7 @@
4e0227
                     "name": "window"
4e0227
                 }
4e0227
             },
4e0227
-	    "op": "==",
4e0227
+            "op": "==",
4e0227
             "right": 1
4e0227
         }
4e0227
     }
4e0227
@@ -120,7 +120,7 @@
4e0227
                     "name": "window"
4e0227
                 }
4e0227
             },
4e0227
-	    "op": "==",
4e0227
+            "op": "==",
4e0227
             "right": 1
4e0227
         }
4e0227
     }
4e0227
@@ -136,7 +136,7 @@
4e0227
                     "name": "sack-permitted"
4e0227
                 }
4e0227
             },
4e0227
-	    "op": "==",
4e0227
+            "op": "==",
4e0227
             "right": 1
4e0227
         }
4e0227
     }
4e0227
@@ -152,7 +152,7 @@
4e0227
                     "name": "sack-permitted"
4e0227
                 }
4e0227
             },
4e0227
-	    "op": "==",
4e0227
+            "op": "==",
4e0227
             "right": 1
4e0227
         }
4e0227
     }
4e0227
@@ -168,7 +168,7 @@
4e0227
                     "name": "sack"
4e0227
                 }
4e0227
             },
4e0227
-	    "op": "==",
4e0227
+            "op": "==",
4e0227
             "right": 1
4e0227
         }
4e0227
     }
4e0227
@@ -184,7 +184,7 @@
4e0227
                     "name": "sack"
4e0227
                 }
4e0227
             },
4e0227
-	    "op": "==",
4e0227
+            "op": "==",
4e0227
             "right": 1
4e0227
         }
4e0227
     }
4e0227
@@ -200,7 +200,7 @@
4e0227
                     "name": "sack"
4e0227
                 }
4e0227
             },
4e0227
-	    "op": "==",
4e0227
+            "op": "==",
4e0227
             "right": 1
4e0227
         }
4e0227
     }
4e0227
@@ -216,7 +216,7 @@
4e0227
                     "name": "sack0"
4e0227
                 }
4e0227
             },
4e0227
-	    "op": "==",
4e0227
+            "op": "==",
4e0227
             "right": 1
4e0227
         }
4e0227
     }
4e0227
@@ -232,7 +232,7 @@
4e0227
                     "name": "sack1"
4e0227
                 }
4e0227
             },
4e0227
-	    "op": "==",
4e0227
+            "op": "==",
4e0227
             "right": 1
4e0227
         }
4e0227
     }
4e0227
@@ -248,7 +248,7 @@
4e0227
                     "name": "sack2"
4e0227
                 }
4e0227
             },
4e0227
-	    "op": "==",
4e0227
+            "op": "==",
4e0227
             "right": 1
4e0227
         }
4e0227
     }
4e0227
@@ -264,7 +264,23 @@
4e0227
                     "name": "sack3"
4e0227
                 }
4e0227
             },
4e0227
-	    "op": "==",
4e0227
+            "op": "==",
4e0227
+            "right": 1
4e0227
+        }
4e0227
+    }
4e0227
+]
4e0227
+
4e0227
+# tcp option sack right 1
4e0227
+[
4e0227
+    {
4e0227
+        "match": {
4e0227
+            "left": {
4e0227
+                "tcp option": {
4e0227
+                    "field": "right",
4e0227
+                    "name": "sack"
4e0227
+                }
4e0227
+            },
4e0227
+            "op": "==",
4e0227
             "right": 1
4e0227
         }
4e0227
     }
4e0227
@@ -280,7 +296,7 @@
4e0227
                     "name": "sack0"
4e0227
                 }
4e0227
             },
4e0227
-	    "op": "==",
4e0227
+            "op": "==",
4e0227
             "right": 1
4e0227
         }
4e0227
     }
4e0227
@@ -296,7 +312,7 @@
4e0227
                     "name": "sack1"
4e0227
                 }
4e0227
             },
4e0227
-	    "op": "==",
4e0227
+            "op": "==",
4e0227
             "right": 1
4e0227
         }
4e0227
     }
4e0227
@@ -312,7 +328,7 @@
4e0227
                     "name": "sack2"
4e0227
                 }
4e0227
             },
4e0227
-	    "op": "==",
4e0227
+            "op": "==",
4e0227
             "right": 1
4e0227
         }
4e0227
     }
4e0227
@@ -328,7 +344,7 @@
4e0227
                     "name": "sack3"
4e0227
                 }
4e0227
             },
4e0227
-	    "op": "==",
4e0227
+            "op": "==",
4e0227
             "right": 1
4e0227
         }
4e0227
     }
4e0227
@@ -344,7 +360,7 @@
4e0227
                     "name": "timestamp"
4e0227
                 }
4e0227
             },
4e0227
-	    "op": "==",
4e0227
+            "op": "==",
4e0227
             "right": 1
4e0227
         }
4e0227
     }
4e0227
@@ -360,7 +376,7 @@
4e0227
                     "name": "timestamp"
4e0227
                 }
4e0227
             },
4e0227
-	    "op": "==",
4e0227
+            "op": "==",
4e0227
             "right": 1
4e0227
         }
4e0227
     }
4e0227
@@ -376,7 +392,7 @@
4e0227
                     "name": "timestamp"
4e0227
                 }
4e0227
             },
4e0227
-	    "op": "==",
4e0227
+            "op": "==",
4e0227
             "right": 1
4e0227
         }
4e0227
     }
4e0227
@@ -392,7 +408,7 @@
4e0227
                     "name": "timestamp"
4e0227
                 }
4e0227
             },
4e0227
-	    "op": "==",
4e0227
+            "op": "==",
4e0227
             "right": 1
4e0227
         }
4e0227
     }
4e0227
@@ -407,7 +423,7 @@
4e0227
                     "name": "window"
4e0227
                 }
4e0227
             },
4e0227
-	    "op": "==",
4e0227
+            "op": "==",
4e0227
             "right": true
4e0227
         }
4e0227
     }
4e0227
@@ -422,7 +438,7 @@
4e0227
                     "name": "window"
4e0227
                 }
4e0227
             },
4e0227
-	    "op": "==",
4e0227
+            "op": "==",
4e0227
             "right": false
4e0227
         }
4e0227
     }
4e0227
diff --git a/tests/py/inet/tcpopt.t.json.output b/tests/py/any/tcpopt.t.json.output
4e0227
similarity index 100%
4e0227
rename from tests/py/inet/tcpopt.t.json.output
4e0227
rename to tests/py/any/tcpopt.t.json.output
4e0227
diff --git a/tests/py/any/tcpopt.t.payload b/tests/py/any/tcpopt.t.payload
4e0227
new file mode 100644
4e0227
index 0000000..63751cf
4e0227
--- /dev/null
4e0227
+++ b/tests/py/any/tcpopt.t.payload
4e0227
@@ -0,0 +1,603 @@
4e0227
+# tcp option eol kind 1
4e0227
+ip 
4e0227
+  [ meta load l4proto => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x00000006 ]
4e0227
+  [ exthdr load tcpopt 1b @ 0 + 0 => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x00000001 ]
4e0227
+
4e0227
+# tcp option eol kind 1
4e0227
+ip6 
4e0227
+  [ meta load l4proto => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x00000006 ]
4e0227
+  [ exthdr load tcpopt 1b @ 0 + 0 => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x00000001 ]
4e0227
+
4e0227
+# tcp option eol kind 1
4e0227
+inet 
4e0227
+  [ meta load l4proto => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x00000006 ]
4e0227
+  [ exthdr load tcpopt 1b @ 0 + 0 => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x00000001 ]
4e0227
+
4e0227
+# tcp option noop kind 1
4e0227
+ip 
4e0227
+  [ meta load l4proto => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x00000006 ]
4e0227
+  [ exthdr load tcpopt 1b @ 1 + 0 => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x00000001 ]
4e0227
+
4e0227
+# tcp option noop kind 1
4e0227
+ip6 
4e0227
+  [ meta load l4proto => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x00000006 ]
4e0227
+  [ exthdr load tcpopt 1b @ 1 + 0 => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x00000001 ]
4e0227
+
4e0227
+# tcp option noop kind 1
4e0227
+inet 
4e0227
+  [ meta load l4proto => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x00000006 ]
4e0227
+  [ exthdr load tcpopt 1b @ 1 + 0 => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x00000001 ]
4e0227
+
4e0227
+# tcp option maxseg kind 1
4e0227
+ip 
4e0227
+  [ meta load l4proto => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x00000006 ]
4e0227
+  [ exthdr load tcpopt 1b @ 2 + 0 => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x00000001 ]
4e0227
+
4e0227
+# tcp option maxseg kind 1
4e0227
+ip6 
4e0227
+  [ meta load l4proto => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x00000006 ]
4e0227
+  [ exthdr load tcpopt 1b @ 2 + 0 => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x00000001 ]
4e0227
+
4e0227
+# tcp option maxseg kind 1
4e0227
+inet 
4e0227
+  [ meta load l4proto => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x00000006 ]
4e0227
+  [ exthdr load tcpopt 1b @ 2 + 0 => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x00000001 ]
4e0227
+
4e0227
+# tcp option maxseg length 1
4e0227
+ip 
4e0227
+  [ meta load l4proto => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x00000006 ]
4e0227
+  [ exthdr load tcpopt 1b @ 2 + 1 => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x00000001 ]
4e0227
+
4e0227
+# tcp option maxseg length 1
4e0227
+ip6 
4e0227
+  [ meta load l4proto => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x00000006 ]
4e0227
+  [ exthdr load tcpopt 1b @ 2 + 1 => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x00000001 ]
4e0227
+
4e0227
+# tcp option maxseg length 1
4e0227
+inet 
4e0227
+  [ meta load l4proto => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x00000006 ]
4e0227
+  [ exthdr load tcpopt 1b @ 2 + 1 => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x00000001 ]
4e0227
+
4e0227
+# tcp option maxseg size 1
4e0227
+ip 
4e0227
+  [ meta load l4proto => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x00000006 ]
4e0227
+  [ exthdr load tcpopt 2b @ 2 + 2 => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x00000100 ]
4e0227
+
4e0227
+# tcp option maxseg size 1
4e0227
+ip6 
4e0227
+  [ meta load l4proto => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x00000006 ]
4e0227
+  [ exthdr load tcpopt 2b @ 2 + 2 => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x00000100 ]
4e0227
+
4e0227
+# tcp option maxseg size 1
4e0227
+inet 
4e0227
+  [ meta load l4proto => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x00000006 ]
4e0227
+  [ exthdr load tcpopt 2b @ 2 + 2 => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x00000100 ]
4e0227
+
4e0227
+# tcp option window kind 1
4e0227
+ip 
4e0227
+  [ meta load l4proto => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x00000006 ]
4e0227
+  [ exthdr load tcpopt 1b @ 3 + 0 => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x00000001 ]
4e0227
+
4e0227
+# tcp option window kind 1
4e0227
+ip6 
4e0227
+  [ meta load l4proto => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x00000006 ]
4e0227
+  [ exthdr load tcpopt 1b @ 3 + 0 => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x00000001 ]
4e0227
+
4e0227
+# tcp option window kind 1
4e0227
+inet 
4e0227
+  [ meta load l4proto => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x00000006 ]
4e0227
+  [ exthdr load tcpopt 1b @ 3 + 0 => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x00000001 ]
4e0227
+
4e0227
+# tcp option window length 1
4e0227
+ip 
4e0227
+  [ meta load l4proto => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x00000006 ]
4e0227
+  [ exthdr load tcpopt 1b @ 3 + 1 => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x00000001 ]
4e0227
+
4e0227
+# tcp option window length 1
4e0227
+ip6 
4e0227
+  [ meta load l4proto => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x00000006 ]
4e0227
+  [ exthdr load tcpopt 1b @ 3 + 1 => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x00000001 ]
4e0227
+
4e0227
+# tcp option window length 1
4e0227
+inet 
4e0227
+  [ meta load l4proto => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x00000006 ]
4e0227
+  [ exthdr load tcpopt 1b @ 3 + 1 => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x00000001 ]
4e0227
+
4e0227
+# tcp option window count 1
4e0227
+ip 
4e0227
+  [ meta load l4proto => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x00000006 ]
4e0227
+  [ exthdr load tcpopt 1b @ 3 + 2 => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x00000001 ]
4e0227
+
4e0227
+# tcp option window count 1
4e0227
+ip6 
4e0227
+  [ meta load l4proto => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x00000006 ]
4e0227
+  [ exthdr load tcpopt 1b @ 3 + 2 => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x00000001 ]
4e0227
+
4e0227
+# tcp option window count 1
4e0227
+inet 
4e0227
+  [ meta load l4proto => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x00000006 ]
4e0227
+  [ exthdr load tcpopt 1b @ 3 + 2 => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x00000001 ]
4e0227
+
4e0227
+# tcp option sack-permitted kind 1
4e0227
+ip 
4e0227
+  [ meta load l4proto => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x00000006 ]
4e0227
+  [ exthdr load tcpopt 1b @ 4 + 0 => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x00000001 ]
4e0227
+
4e0227
+# tcp option sack-permitted kind 1
4e0227
+ip6 
4e0227
+  [ meta load l4proto => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x00000006 ]
4e0227
+  [ exthdr load tcpopt 1b @ 4 + 0 => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x00000001 ]
4e0227
+
4e0227
+# tcp option sack-permitted kind 1
4e0227
+inet 
4e0227
+  [ meta load l4proto => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x00000006 ]
4e0227
+  [ exthdr load tcpopt 1b @ 4 + 0 => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x00000001 ]
4e0227
+
4e0227
+# tcp option sack-permitted length 1
4e0227
+ip 
4e0227
+  [ meta load l4proto => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x00000006 ]
4e0227
+  [ exthdr load tcpopt 1b @ 4 + 1 => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x00000001 ]
4e0227
+
4e0227
+# tcp option sack-permitted length 1
4e0227
+ip6 
4e0227
+  [ meta load l4proto => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x00000006 ]
4e0227
+  [ exthdr load tcpopt 1b @ 4 + 1 => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x00000001 ]
4e0227
+
4e0227
+# tcp option sack-permitted length 1
4e0227
+inet 
4e0227
+  [ meta load l4proto => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x00000006 ]
4e0227
+  [ exthdr load tcpopt 1b @ 4 + 1 => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x00000001 ]
4e0227
+
4e0227
+# tcp option sack kind 1
4e0227
+ip 
4e0227
+  [ meta load l4proto => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x00000006 ]
4e0227
+  [ exthdr load tcpopt 1b @ 5 + 0 => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x00000001 ]
4e0227
+
4e0227
+# tcp option sack kind 1
4e0227
+ip6 
4e0227
+  [ meta load l4proto => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x00000006 ]
4e0227
+  [ exthdr load tcpopt 1b @ 5 + 0 => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x00000001 ]
4e0227
+
4e0227
+# tcp option sack kind 1
4e0227
+inet 
4e0227
+  [ meta load l4proto => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x00000006 ]
4e0227
+  [ exthdr load tcpopt 1b @ 5 + 0 => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x00000001 ]
4e0227
+
4e0227
+# tcp option sack length 1
4e0227
+ip 
4e0227
+  [ meta load l4proto => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x00000006 ]
4e0227
+  [ exthdr load tcpopt 1b @ 5 + 1 => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x00000001 ]
4e0227
+
4e0227
+# tcp option sack length 1
4e0227
+ip6 
4e0227
+  [ meta load l4proto => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x00000006 ]
4e0227
+  [ exthdr load tcpopt 1b @ 5 + 1 => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x00000001 ]
4e0227
+
4e0227
+# tcp option sack length 1
4e0227
+inet 
4e0227
+  [ meta load l4proto => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x00000006 ]
4e0227
+  [ exthdr load tcpopt 1b @ 5 + 1 => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x00000001 ]
4e0227
+
4e0227
+# tcp option sack left 1
4e0227
+ip 
4e0227
+  [ meta load l4proto => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x00000006 ]
4e0227
+  [ exthdr load tcpopt 4b @ 5 + 2 => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x01000000 ]
4e0227
+
4e0227
+# tcp option sack left 1
4e0227
+ip6 
4e0227
+  [ meta load l4proto => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x00000006 ]
4e0227
+  [ exthdr load tcpopt 4b @ 5 + 2 => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x01000000 ]
4e0227
+
4e0227
+# tcp option sack left 1
4e0227
+inet 
4e0227
+  [ meta load l4proto => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x00000006 ]
4e0227
+  [ exthdr load tcpopt 4b @ 5 + 2 => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x01000000 ]
4e0227
+
4e0227
+# tcp option sack0 left 1
4e0227
+ip 
4e0227
+  [ meta load l4proto => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x00000006 ]
4e0227
+  [ exthdr load tcpopt 4b @ 5 + 2 => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x01000000 ]
4e0227
+
4e0227
+# tcp option sack0 left 1
4e0227
+ip6 
4e0227
+  [ meta load l4proto => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x00000006 ]
4e0227
+  [ exthdr load tcpopt 4b @ 5 + 2 => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x01000000 ]
4e0227
+
4e0227
+# tcp option sack0 left 1
4e0227
+inet 
4e0227
+  [ meta load l4proto => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x00000006 ]
4e0227
+  [ exthdr load tcpopt 4b @ 5 + 2 => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x01000000 ]
4e0227
+
4e0227
+# tcp option sack1 left 1
4e0227
+ip 
4e0227
+  [ meta load l4proto => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x00000006 ]
4e0227
+  [ exthdr load tcpopt 4b @ 5 + 10 => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x01000000 ]
4e0227
+
4e0227
+# tcp option sack1 left 1
4e0227
+ip6 
4e0227
+  [ meta load l4proto => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x00000006 ]
4e0227
+  [ exthdr load tcpopt 4b @ 5 + 10 => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x01000000 ]
4e0227
+
4e0227
+# tcp option sack1 left 1
4e0227
+inet 
4e0227
+  [ meta load l4proto => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x00000006 ]
4e0227
+  [ exthdr load tcpopt 4b @ 5 + 10 => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x01000000 ]
4e0227
+
4e0227
+# tcp option sack2 left 1
4e0227
+ip 
4e0227
+  [ meta load l4proto => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x00000006 ]
4e0227
+  [ exthdr load tcpopt 4b @ 5 + 18 => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x01000000 ]
4e0227
+
4e0227
+# tcp option sack2 left 1
4e0227
+ip6 
4e0227
+  [ meta load l4proto => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x00000006 ]
4e0227
+  [ exthdr load tcpopt 4b @ 5 + 18 => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x01000000 ]
4e0227
+
4e0227
+# tcp option sack2 left 1
4e0227
+inet 
4e0227
+  [ meta load l4proto => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x00000006 ]
4e0227
+  [ exthdr load tcpopt 4b @ 5 + 18 => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x01000000 ]
4e0227
+
4e0227
+# tcp option sack3 left 1
4e0227
+ip 
4e0227
+  [ meta load l4proto => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x00000006 ]
4e0227
+  [ exthdr load tcpopt 4b @ 5 + 26 => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x01000000 ]
4e0227
+
4e0227
+# tcp option sack3 left 1
4e0227
+ip6 
4e0227
+  [ meta load l4proto => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x00000006 ]
4e0227
+  [ exthdr load tcpopt 4b @ 5 + 26 => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x01000000 ]
4e0227
+
4e0227
+# tcp option sack3 left 1
4e0227
+inet 
4e0227
+  [ meta load l4proto => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x00000006 ]
4e0227
+  [ exthdr load tcpopt 4b @ 5 + 26 => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x01000000 ]
4e0227
+
4e0227
+# tcp option sack right 1
4e0227
+ip 
4e0227
+  [ meta load l4proto => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x00000006 ]
4e0227
+  [ exthdr load tcpopt 4b @ 5 + 6 => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x01000000 ]
4e0227
+
4e0227
+# tcp option sack right 1
4e0227
+ip6 
4e0227
+  [ meta load l4proto => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x00000006 ]
4e0227
+  [ exthdr load tcpopt 4b @ 5 + 6 => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x01000000 ]
4e0227
+
4e0227
+# tcp option sack right 1
4e0227
+inet 
4e0227
+  [ meta load l4proto => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x00000006 ]
4e0227
+  [ exthdr load tcpopt 4b @ 5 + 6 => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x01000000 ]
4e0227
+
4e0227
+# tcp option sack0 right 1
4e0227
+ip 
4e0227
+  [ meta load l4proto => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x00000006 ]
4e0227
+  [ exthdr load tcpopt 4b @ 5 + 6 => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x01000000 ]
4e0227
+
4e0227
+# tcp option sack0 right 1
4e0227
+ip6 
4e0227
+  [ meta load l4proto => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x00000006 ]
4e0227
+  [ exthdr load tcpopt 4b @ 5 + 6 => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x01000000 ]
4e0227
+
4e0227
+# tcp option sack0 right 1
4e0227
+inet 
4e0227
+  [ meta load l4proto => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x00000006 ]
4e0227
+  [ exthdr load tcpopt 4b @ 5 + 6 => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x01000000 ]
4e0227
+
4e0227
+# tcp option sack1 right 1
4e0227
+ip 
4e0227
+  [ meta load l4proto => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x00000006 ]
4e0227
+  [ exthdr load tcpopt 4b @ 5 + 14 => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x01000000 ]
4e0227
+
4e0227
+# tcp option sack1 right 1
4e0227
+ip6 
4e0227
+  [ meta load l4proto => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x00000006 ]
4e0227
+  [ exthdr load tcpopt 4b @ 5 + 14 => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x01000000 ]
4e0227
+
4e0227
+# tcp option sack1 right 1
4e0227
+inet 
4e0227
+  [ meta load l4proto => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x00000006 ]
4e0227
+  [ exthdr load tcpopt 4b @ 5 + 14 => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x01000000 ]
4e0227
+
4e0227
+# tcp option sack2 right 1
4e0227
+ip 
4e0227
+  [ meta load l4proto => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x00000006 ]
4e0227
+  [ exthdr load tcpopt 4b @ 5 + 22 => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x01000000 ]
4e0227
+
4e0227
+# tcp option sack2 right 1
4e0227
+ip6 
4e0227
+  [ meta load l4proto => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x00000006 ]
4e0227
+  [ exthdr load tcpopt 4b @ 5 + 22 => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x01000000 ]
4e0227
+
4e0227
+# tcp option sack2 right 1
4e0227
+inet 
4e0227
+  [ meta load l4proto => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x00000006 ]
4e0227
+  [ exthdr load tcpopt 4b @ 5 + 22 => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x01000000 ]
4e0227
+
4e0227
+# tcp option sack3 right 1
4e0227
+ip 
4e0227
+  [ meta load l4proto => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x00000006 ]
4e0227
+  [ exthdr load tcpopt 4b @ 5 + 30 => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x01000000 ]
4e0227
+
4e0227
+# tcp option sack3 right 1
4e0227
+ip6 
4e0227
+  [ meta load l4proto => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x00000006 ]
4e0227
+  [ exthdr load tcpopt 4b @ 5 + 30 => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x01000000 ]
4e0227
+
4e0227
+# tcp option sack3 right 1
4e0227
+inet 
4e0227
+  [ meta load l4proto => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x00000006 ]
4e0227
+  [ exthdr load tcpopt 4b @ 5 + 30 => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x01000000 ]
4e0227
+
4e0227
+# tcp option timestamp kind 1
4e0227
+ip 
4e0227
+  [ meta load l4proto => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x00000006 ]
4e0227
+  [ exthdr load tcpopt 1b @ 8 + 0 => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x00000001 ]
4e0227
+
4e0227
+# tcp option timestamp kind 1
4e0227
+ip6 
4e0227
+  [ meta load l4proto => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x00000006 ]
4e0227
+  [ exthdr load tcpopt 1b @ 8 + 0 => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x00000001 ]
4e0227
+
4e0227
+# tcp option timestamp kind 1
4e0227
+inet 
4e0227
+  [ meta load l4proto => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x00000006 ]
4e0227
+  [ exthdr load tcpopt 1b @ 8 + 0 => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x00000001 ]
4e0227
+
4e0227
+# tcp option timestamp length 1
4e0227
+ip 
4e0227
+  [ meta load l4proto => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x00000006 ]
4e0227
+  [ exthdr load tcpopt 1b @ 8 + 1 => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x00000001 ]
4e0227
+
4e0227
+# tcp option timestamp length 1
4e0227
+ip6 
4e0227
+  [ meta load l4proto => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x00000006 ]
4e0227
+  [ exthdr load tcpopt 1b @ 8 + 1 => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x00000001 ]
4e0227
+
4e0227
+# tcp option timestamp length 1
4e0227
+inet 
4e0227
+  [ meta load l4proto => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x00000006 ]
4e0227
+  [ exthdr load tcpopt 1b @ 8 + 1 => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x00000001 ]
4e0227
+
4e0227
+# tcp option timestamp tsval 1
4e0227
+ip 
4e0227
+  [ meta load l4proto => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x00000006 ]
4e0227
+  [ exthdr load tcpopt 4b @ 8 + 2 => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x01000000 ]
4e0227
+
4e0227
+# tcp option timestamp tsval 1
4e0227
+ip6 
4e0227
+  [ meta load l4proto => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x00000006 ]
4e0227
+  [ exthdr load tcpopt 4b @ 8 + 2 => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x01000000 ]
4e0227
+
4e0227
+# tcp option timestamp tsval 1
4e0227
+inet 
4e0227
+  [ meta load l4proto => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x00000006 ]
4e0227
+  [ exthdr load tcpopt 4b @ 8 + 2 => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x01000000 ]
4e0227
+
4e0227
+# tcp option timestamp tsecr 1
4e0227
+ip 
4e0227
+  [ meta load l4proto => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x00000006 ]
4e0227
+  [ exthdr load tcpopt 4b @ 8 + 6 => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x01000000 ]
4e0227
+
4e0227
+# tcp option timestamp tsecr 1
4e0227
+ip6 
4e0227
+  [ meta load l4proto => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x00000006 ]
4e0227
+  [ exthdr load tcpopt 4b @ 8 + 6 => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x01000000 ]
4e0227
+
4e0227
+# tcp option timestamp tsecr 1
4e0227
+inet 
4e0227
+  [ meta load l4proto => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x00000006 ]
4e0227
+  [ exthdr load tcpopt 4b @ 8 + 6 => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x01000000 ]
4e0227
+
4e0227
+# tcp option window exists
4e0227
+ip 
4e0227
+  [ meta load l4proto => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x00000006 ]
4e0227
+  [ exthdr load tcpopt 1b @ 3 + 0 present => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x00000001 ]
4e0227
+
4e0227
+# tcp option window exists
4e0227
+ip6 
4e0227
+  [ meta load l4proto => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x00000006 ]
4e0227
+  [ exthdr load tcpopt 1b @ 3 + 0 present => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x00000001 ]
4e0227
+
4e0227
+# tcp option window exists
4e0227
+inet 
4e0227
+  [ meta load l4proto => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x00000006 ]
4e0227
+  [ exthdr load tcpopt 1b @ 3 + 0 present => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x00000001 ]
4e0227
+
4e0227
+# tcp option window missing
4e0227
+ip 
4e0227
+  [ meta load l4proto => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x00000006 ]
4e0227
+  [ exthdr load tcpopt 1b @ 3 + 0 present => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x00000000 ]
4e0227
+
4e0227
+# tcp option window missing
4e0227
+ip6 
4e0227
+  [ meta load l4proto => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x00000006 ]
4e0227
+  [ exthdr load tcpopt 1b @ 3 + 0 present => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x00000000 ]
4e0227
+
4e0227
+# tcp option window missing
4e0227
+inet 
4e0227
+  [ meta load l4proto => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x00000006 ]
4e0227
+  [ exthdr load tcpopt 1b @ 3 + 0 present => reg 1 ]
4e0227
+  [ cmp eq reg 1 0x00000000 ]
4e0227
+
4e0227
+# tcp option maxseg size set 1360
4e0227
+ip 
4e0227
+  [ immediate reg 1 0x00005005 ]
4e0227
+  [ exthdr write tcpopt reg 1 => 2b @ 2 + 2 ]
4e0227
+
4e0227
+# tcp option maxseg size set 1360
4e0227
+ip6 
4e0227
+  [ immediate reg 1 0x00005005 ]
4e0227
+  [ exthdr write tcpopt reg 1 => 2b @ 2 + 2 ]
4e0227
+
4e0227
+# tcp option maxseg size set 1360
4e0227
+inet 
4e0227
+  [ immediate reg 1 0x00005005 ]
4e0227
+  [ exthdr write tcpopt reg 1 => 2b @ 2 + 2 ]
4e0227
+
4e0227
diff --git a/tests/py/inet/tcpopt.t.payload b/tests/py/inet/tcpopt.t.payload
4e0227
deleted file mode 100644
4e0227
index 7e254ed..0000000
4e0227
--- a/tests/py/inet/tcpopt.t.payload
4e0227
+++ /dev/null
4e0227
@@ -1,200 +0,0 @@
4e0227
-# tcp option eol kind 1
4e0227
-inet test-inet input
4e0227
-  [ meta load l4proto => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x00000006 ]
4e0227
-  [ exthdr load tcpopt 1b @ 0 + 0 => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x00000001 ]
4e0227
-
4e0227
-# tcp option noop kind 1
4e0227
-inet test-inet input
4e0227
-  [ meta load l4proto => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x00000006 ]
4e0227
-  [ exthdr load tcpopt 1b @ 1 + 0 => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x00000001 ]
4e0227
-
4e0227
-# tcp option maxseg kind 1
4e0227
-inet test-inet input
4e0227
-  [ meta load l4proto => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x00000006 ]
4e0227
-  [ exthdr load tcpopt 1b @ 2 + 0 => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x00000001 ]
4e0227
-
4e0227
-# tcp option maxseg length 1
4e0227
-inet test-inet input
4e0227
-  [ meta load l4proto => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x00000006 ]
4e0227
-  [ exthdr load tcpopt 1b @ 2 + 1 => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x00000001 ]
4e0227
-
4e0227
-# tcp option maxseg size 1
4e0227
-inet test-inet input
4e0227
-  [ meta load l4proto => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x00000006 ]
4e0227
-  [ exthdr load tcpopt 2b @ 2 + 2 => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x00000100 ]
4e0227
-
4e0227
-# tcp option window kind 1
4e0227
-inet test-inet input
4e0227
-  [ meta load l4proto => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x00000006 ]
4e0227
-  [ exthdr load tcpopt 1b @ 3 + 0 => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x00000001 ]
4e0227
-
4e0227
-# tcp option window length 1
4e0227
-inet test-inet input
4e0227
-  [ meta load l4proto => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x00000006 ]
4e0227
-  [ exthdr load tcpopt 1b @ 3 + 1 => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x00000001 ]
4e0227
-
4e0227
-# tcp option window count 1
4e0227
-inet test-inet input
4e0227
-  [ meta load l4proto => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x00000006 ]
4e0227
-  [ exthdr load tcpopt 1b @ 3 + 2 => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x00000001 ]
4e0227
-
4e0227
-# tcp option sack-permitted kind 1
4e0227
-inet test-inet input
4e0227
-  [ meta load l4proto => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x00000006 ]
4e0227
-  [ exthdr load tcpopt 1b @ 4 + 0 => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x00000001 ]
4e0227
-
4e0227
-# tcp option sack-permitted length 1
4e0227
-inet test-inet input
4e0227
-  [ meta load l4proto => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x00000006 ]
4e0227
-  [ exthdr load tcpopt 1b @ 4 + 1 => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x00000001 ]
4e0227
-
4e0227
-# tcp option sack kind 1
4e0227
-inet test-inet input
4e0227
-  [ meta load l4proto => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x00000006 ]
4e0227
-  [ exthdr load tcpopt 1b @ 5 + 0 => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x00000001 ]
4e0227
-
4e0227
-# tcp option sack length 1
4e0227
-inet test-inet input
4e0227
-  [ meta load l4proto => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x00000006 ]
4e0227
-  [ exthdr load tcpopt 1b @ 5 + 1 => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x00000001 ]
4e0227
-
4e0227
-# tcp option sack left 1
4e0227
-inet test-inet input
4e0227
-  [ meta load l4proto => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x00000006 ]
4e0227
-  [ exthdr load tcpopt 4b @ 5 + 2 => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x01000000 ]
4e0227
-
4e0227
-# tcp option sack0 left 1
4e0227
-inet test-inet input
4e0227
-  [ meta load l4proto => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x00000006 ]
4e0227
-  [ exthdr load tcpopt 4b @ 5 + 2 => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x01000000 ]
4e0227
-
4e0227
-# tcp option sack1 left 1
4e0227
-inet test-inet input
4e0227
-  [ meta load l4proto => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x00000006 ]
4e0227
-  [ exthdr load tcpopt 4b @ 5 + 10 => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x01000000 ]
4e0227
-
4e0227
-# tcp option sack2 left 1
4e0227
-inet test-inet input
4e0227
-  [ meta load l4proto => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x00000006 ]
4e0227
-  [ exthdr load tcpopt 4b @ 5 + 18 => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x01000000 ]
4e0227
-
4e0227
-# tcp option sack3 left 1
4e0227
-inet test-inet input
4e0227
-  [ meta load l4proto => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x00000006 ]
4e0227
-  [ exthdr load tcpopt 4b @ 5 + 26 => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x01000000 ]
4e0227
-
4e0227
-# tcp option sack right 1
4e0227
-inet test-inet input
4e0227
-  [ meta load l4proto => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x00000006 ]
4e0227
-  [ exthdr load tcpopt 4b @ 5 + 6 => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x01000000 ]
4e0227
-
4e0227
-# tcp option sack0 right 1
4e0227
-inet test-inet input
4e0227
-  [ meta load l4proto => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x00000006 ]
4e0227
-  [ exthdr load tcpopt 4b @ 5 + 6 => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x01000000 ]
4e0227
-
4e0227
-# tcp option sack1 right 1
4e0227
-inet test-inet input
4e0227
-  [ meta load l4proto => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x00000006 ]
4e0227
-  [ exthdr load tcpopt 4b @ 5 + 14 => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x01000000 ]
4e0227
-
4e0227
-# tcp option sack2 right 1
4e0227
-inet test-inet input
4e0227
-  [ meta load l4proto => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x00000006 ]
4e0227
-  [ exthdr load tcpopt 4b @ 5 + 22 => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x01000000 ]
4e0227
-
4e0227
-# tcp option sack3 right 1
4e0227
-inet test-inet input
4e0227
-  [ meta load l4proto => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x00000006 ]
4e0227
-  [ exthdr load tcpopt 4b @ 5 + 30 => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x01000000 ]
4e0227
-
4e0227
-# tcp option timestamp kind 1
4e0227
-inet test-inet input
4e0227
-  [ meta load l4proto => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x00000006 ]
4e0227
-  [ exthdr load tcpopt 1b @ 8 + 0 => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x00000001 ]
4e0227
-
4e0227
-# tcp option timestamp length 1
4e0227
-inet test-inet input
4e0227
-  [ meta load l4proto => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x00000006 ]
4e0227
-  [ exthdr load tcpopt 1b @ 8 + 1 => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x00000001 ]
4e0227
-
4e0227
-# tcp option timestamp tsval 1
4e0227
-inet test-inet input
4e0227
-  [ meta load l4proto => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x00000006 ]
4e0227
-  [ exthdr load tcpopt 4b @ 8 + 2 => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x01000000 ]
4e0227
-
4e0227
-# tcp option timestamp tsecr 1
4e0227
-inet test-inet input
4e0227
-  [ meta load l4proto => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x00000006 ]
4e0227
-  [ exthdr load tcpopt 4b @ 8 + 6 => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x01000000 ]
4e0227
-
4e0227
-# tcp option window exists
4e0227
-inet test-inet input
4e0227
-  [ meta load l4proto => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x00000006 ]
4e0227
-  [ exthdr load tcpopt 1b @ 3 + 0 present => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x00000001 ]
4e0227
-
4e0227
-# tcp option window missing
4e0227
-inet test-inet input
4e0227
-  [ meta load l4proto => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x00000006 ]
4e0227
-  [ exthdr load tcpopt 1b @ 3 + 0 present => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x00000000 ]
4e0227
-
4e0227
-# tcp option maxseg size set 1360
4e0227
-inet test-inet input
4e0227
-  [ immediate reg 1 0x00005005 ]
4e0227
-  [ exthdr write tcpopt reg 1 => 2b @ 2 + 2 ]
4e0227
diff --git a/tests/py/ip/tcpopt.t b/tests/py/ip/tcpopt.t
4e0227
deleted file mode 100644
4e0227
index 7ee50a8..0000000
4e0227
--- a/tests/py/ip/tcpopt.t
4e0227
+++ /dev/null
4e0227
@@ -1,38 +0,0 @@
4e0227
-:input;type filter hook input priority 0
4e0227
-
4e0227
-*ip;test-ip;input
4e0227
-
4e0227
-tcp option eol kind 1;ok
4e0227
-tcp option noop kind 1;ok
4e0227
-tcp option maxseg kind 1;ok
4e0227
-tcp option maxseg length 1;ok
4e0227
-tcp option maxseg size 1;ok
4e0227
-tcp option window kind 1;ok
4e0227
-tcp option window length 1;ok
4e0227
-tcp option window count 1;ok
4e0227
-tcp option sack-permitted kind 1;ok
4e0227
-tcp option sack-permitted length 1;ok
4e0227
-tcp option sack kind 1;ok
4e0227
-tcp option sack length 1;ok
4e0227
-tcp option sack left 1;ok
4e0227
-tcp option sack0 left 1;ok;tcp option sack left 1
4e0227
-tcp option sack1 left 1;ok
4e0227
-tcp option sack2 left 1;ok
4e0227
-tcp option sack3 left 1;ok
4e0227
-tcp option sack right 1;ok
4e0227
-tcp option sack0 right 1;ok;tcp option sack right 1
4e0227
-tcp option sack1 right 1;ok
4e0227
-tcp option sack2 right 1;ok
4e0227
-tcp option sack3 right 1;ok
4e0227
-tcp option timestamp kind 1;ok
4e0227
-tcp option timestamp length 1;ok
4e0227
-tcp option timestamp tsval 1;ok
4e0227
-tcp option timestamp tsecr 1;ok
4e0227
-
4e0227
-tcp option foobar;fail
4e0227
-tcp option foo bar;fail
4e0227
-tcp option eol left;fail
4e0227
-tcp option eol left 1;fail
4e0227
-tcp option eol left 1;fail
4e0227
-tcp option sack window;fail
4e0227
-tcp option sack window 1;fail
4e0227
diff --git a/tests/py/ip/tcpopt.t.json b/tests/py/ip/tcpopt.t.json
4e0227
deleted file mode 100644
4e0227
index d573dd1..0000000
4e0227
--- a/tests/py/ip/tcpopt.t.json
4e0227
+++ /dev/null
4e0227
@@ -1,416 +0,0 @@
4e0227
-# tcp option eol kind 1
4e0227
-[
4e0227
-    {
4e0227
-        "match": {
4e0227
-            "left": {
4e0227
-                "tcp option": {
4e0227
-                    "field": "kind",
4e0227
-                    "name": "eol"
4e0227
-                }
4e0227
-            },
4e0227
-	    "op": "==",
4e0227
-            "right": 1
4e0227
-        }
4e0227
-    }
4e0227
-]
4e0227
-
4e0227
-# tcp option noop kind 1
4e0227
-[
4e0227
-    {
4e0227
-        "match": {
4e0227
-            "left": {
4e0227
-                "tcp option": {
4e0227
-                    "field": "kind",
4e0227
-                    "name": "noop"
4e0227
-                }
4e0227
-            },
4e0227
-	    "op": "==",
4e0227
-            "right": 1
4e0227
-        }
4e0227
-    }
4e0227
-]
4e0227
-
4e0227
-# tcp option maxseg kind 1
4e0227
-[
4e0227
-    {
4e0227
-        "match": {
4e0227
-            "left": {
4e0227
-                "tcp option": {
4e0227
-                    "field": "kind",
4e0227
-                    "name": "maxseg"
4e0227
-                }
4e0227
-            },
4e0227
-	    "op": "==",
4e0227
-            "right": 1
4e0227
-        }
4e0227
-    }
4e0227
-]
4e0227
-
4e0227
-# tcp option maxseg length 1
4e0227
-[
4e0227
-    {
4e0227
-        "match": {
4e0227
-            "left": {
4e0227
-                "tcp option": {
4e0227
-                    "field": "length",
4e0227
-                    "name": "maxseg"
4e0227
-                }
4e0227
-            },
4e0227
-	    "op": "==",
4e0227
-            "right": 1
4e0227
-        }
4e0227
-    }
4e0227
-]
4e0227
-
4e0227
-# tcp option maxseg size 1
4e0227
-[
4e0227
-    {
4e0227
-        "match": {
4e0227
-            "left": {
4e0227
-                "tcp option": {
4e0227
-                    "field": "size",
4e0227
-                    "name": "maxseg"
4e0227
-                }
4e0227
-            },
4e0227
-	    "op": "==",
4e0227
-            "right": 1
4e0227
-        }
4e0227
-    }
4e0227
-]
4e0227
-
4e0227
-# tcp option window kind 1
4e0227
-[
4e0227
-    {
4e0227
-        "match": {
4e0227
-            "left": {
4e0227
-                "tcp option": {
4e0227
-                    "field": "kind",
4e0227
-                    "name": "window"
4e0227
-                }
4e0227
-            },
4e0227
-	    "op": "==",
4e0227
-            "right": 1
4e0227
-        }
4e0227
-    }
4e0227
-]
4e0227
-
4e0227
-# tcp option window length 1
4e0227
-[
4e0227
-    {
4e0227
-        "match": {
4e0227
-            "left": {
4e0227
-                "tcp option": {
4e0227
-                    "field": "length",
4e0227
-                    "name": "window"
4e0227
-                }
4e0227
-            },
4e0227
-	    "op": "==",
4e0227
-            "right": 1
4e0227
-        }
4e0227
-    }
4e0227
-]
4e0227
-
4e0227
-# tcp option window count 1
4e0227
-[
4e0227
-    {
4e0227
-        "match": {
4e0227
-            "left": {
4e0227
-                "tcp option": {
4e0227
-                    "field": "count",
4e0227
-                    "name": "window"
4e0227
-                }
4e0227
-            },
4e0227
-	    "op": "==",
4e0227
-            "right": 1
4e0227
-        }
4e0227
-    }
4e0227
-]
4e0227
-
4e0227
-# tcp option sack-permitted kind 1
4e0227
-[
4e0227
-    {
4e0227
-        "match": {
4e0227
-            "left": {
4e0227
-                "tcp option": {
4e0227
-                    "field": "kind",
4e0227
-                    "name": "sack-permitted"
4e0227
-                }
4e0227
-            },
4e0227
-	    "op": "==",
4e0227
-            "right": 1
4e0227
-        }
4e0227
-    }
4e0227
-]
4e0227
-
4e0227
-# tcp option sack-permitted length 1
4e0227
-[
4e0227
-    {
4e0227
-        "match": {
4e0227
-            "left": {
4e0227
-                "tcp option": {
4e0227
-                    "field": "length",
4e0227
-                    "name": "sack-permitted"
4e0227
-                }
4e0227
-            },
4e0227
-	    "op": "==",
4e0227
-            "right": 1
4e0227
-        }
4e0227
-    }
4e0227
-]
4e0227
-
4e0227
-# tcp option sack kind 1
4e0227
-[
4e0227
-    {
4e0227
-        "match": {
4e0227
-            "left": {
4e0227
-                "tcp option": {
4e0227
-                    "field": "kind",
4e0227
-                    "name": "sack"
4e0227
-                }
4e0227
-            },
4e0227
-	    "op": "==",
4e0227
-            "right": 1
4e0227
-        }
4e0227
-    }
4e0227
-]
4e0227
-
4e0227
-# tcp option sack length 1
4e0227
-[
4e0227
-    {
4e0227
-        "match": {
4e0227
-            "left": {
4e0227
-                "tcp option": {
4e0227
-                    "field": "length",
4e0227
-                    "name": "sack"
4e0227
-                }
4e0227
-            },
4e0227
-	    "op": "==",
4e0227
-            "right": 1
4e0227
-        }
4e0227
-    }
4e0227
-]
4e0227
-
4e0227
-# tcp option sack left 1
4e0227
-[
4e0227
-    {
4e0227
-        "match": {
4e0227
-            "left": {
4e0227
-                "tcp option": {
4e0227
-                    "field": "left",
4e0227
-                    "name": "sack"
4e0227
-                }
4e0227
-            },
4e0227
-	    "op": "==",
4e0227
-            "right": 1
4e0227
-        }
4e0227
-    }
4e0227
-]
4e0227
-
4e0227
-# tcp option sack0 left 1
4e0227
-[
4e0227
-    {
4e0227
-        "match": {
4e0227
-            "left": {
4e0227
-                "tcp option": {
4e0227
-                    "field": "left",
4e0227
-                    "name": "sack"
4e0227
-                }
4e0227
-            },
4e0227
-	    "op": "==",
4e0227
-            "right": 1
4e0227
-        }
4e0227
-    }
4e0227
-]
4e0227
-
4e0227
-# tcp option sack1 left 1
4e0227
-[
4e0227
-    {
4e0227
-        "match": {
4e0227
-            "left": {
4e0227
-                "tcp option": {
4e0227
-                    "field": "left",
4e0227
-                    "name": "sack1"
4e0227
-                }
4e0227
-            },
4e0227
-	    "op": "==",
4e0227
-            "right": 1
4e0227
-        }
4e0227
-    }
4e0227
-]
4e0227
-
4e0227
-# tcp option sack2 left 1
4e0227
-[
4e0227
-    {
4e0227
-        "match": {
4e0227
-            "left": {
4e0227
-                "tcp option": {
4e0227
-                    "field": "left",
4e0227
-                    "name": "sack2"
4e0227
-                }
4e0227
-            },
4e0227
-	    "op": "==",
4e0227
-            "right": 1
4e0227
-        }
4e0227
-    }
4e0227
-]
4e0227
-
4e0227
-# tcp option sack3 left 1
4e0227
-[
4e0227
-    {
4e0227
-        "match": {
4e0227
-            "left": {
4e0227
-                "tcp option": {
4e0227
-                    "field": "left",
4e0227
-                    "name": "sack3"
4e0227
-                }
4e0227
-            },
4e0227
-	    "op": "==",
4e0227
-            "right": 1
4e0227
-        }
4e0227
-    }
4e0227
-]
4e0227
-
4e0227
-# tcp option sack right 1
4e0227
-[
4e0227
-    {
4e0227
-        "match": {
4e0227
-            "left": {
4e0227
-                "tcp option": {
4e0227
-                    "field": "right",
4e0227
-                    "name": "sack"
4e0227
-                }
4e0227
-            },
4e0227
-	    "op": "==",
4e0227
-            "right": 1
4e0227
-        }
4e0227
-    }
4e0227
-]
4e0227
-
4e0227
-# tcp option sack0 right 1
4e0227
-[
4e0227
-    {
4e0227
-        "match": {
4e0227
-            "left": {
4e0227
-                "tcp option": {
4e0227
-                    "field": "right",
4e0227
-                    "name": "sack0"
4e0227
-                }
4e0227
-            },
4e0227
-	    "op": "==",
4e0227
-            "right": 1
4e0227
-        }
4e0227
-    }
4e0227
-]
4e0227
-
4e0227
-# tcp option sack1 right 1
4e0227
-[
4e0227
-    {
4e0227
-        "match": {
4e0227
-            "left": {
4e0227
-                "tcp option": {
4e0227
-                    "field": "right",
4e0227
-                    "name": "sack1"
4e0227
-                }
4e0227
-            },
4e0227
-	    "op": "==",
4e0227
-            "right": 1
4e0227
-        }
4e0227
-    }
4e0227
-]
4e0227
-
4e0227
-# tcp option sack2 right 1
4e0227
-[
4e0227
-    {
4e0227
-        "match": {
4e0227
-            "left": {
4e0227
-                "tcp option": {
4e0227
-                    "field": "right",
4e0227
-                    "name": "sack2"
4e0227
-                }
4e0227
-            },
4e0227
-	    "op": "==",
4e0227
-            "right": 1
4e0227
-        }
4e0227
-    }
4e0227
-]
4e0227
-
4e0227
-# tcp option sack3 right 1
4e0227
-[
4e0227
-    {
4e0227
-        "match": {
4e0227
-            "left": {
4e0227
-                "tcp option": {
4e0227
-                    "field": "right",
4e0227
-                    "name": "sack3"
4e0227
-                }
4e0227
-            },
4e0227
-	    "op": "==",
4e0227
-            "right": 1
4e0227
-        }
4e0227
-    }
4e0227
-]
4e0227
-
4e0227
-# tcp option timestamp kind 1
4e0227
-[
4e0227
-    {
4e0227
-        "match": {
4e0227
-            "left": {
4e0227
-                "tcp option": {
4e0227
-                    "field": "kind",
4e0227
-                    "name": "timestamp"
4e0227
-                }
4e0227
-            },
4e0227
-	    "op": "==",
4e0227
-            "right": 1
4e0227
-        }
4e0227
-    }
4e0227
-]
4e0227
-
4e0227
-# tcp option timestamp length 1
4e0227
-[
4e0227
-    {
4e0227
-        "match": {
4e0227
-            "left": {
4e0227
-                "tcp option": {
4e0227
-                    "field": "length",
4e0227
-                    "name": "timestamp"
4e0227
-                }
4e0227
-            },
4e0227
-	    "op": "==",
4e0227
-            "right": 1
4e0227
-        }
4e0227
-    }
4e0227
-]
4e0227
-
4e0227
-# tcp option timestamp tsval 1
4e0227
-[
4e0227
-    {
4e0227
-        "match": {
4e0227
-            "left": {
4e0227
-                "tcp option": {
4e0227
-                    "field": "tsval",
4e0227
-                    "name": "timestamp"
4e0227
-                }
4e0227
-            },
4e0227
-	    "op": "==",
4e0227
-            "right": 1
4e0227
-        }
4e0227
-    }
4e0227
-]
4e0227
-
4e0227
-# tcp option timestamp tsecr 1
4e0227
-[
4e0227
-    {
4e0227
-        "match": {
4e0227
-            "left": {
4e0227
-                "tcp option": {
4e0227
-                    "field": "tsecr",
4e0227
-                    "name": "timestamp"
4e0227
-                }
4e0227
-            },
4e0227
-	    "op": "==",
4e0227
-            "right": 1
4e0227
-        }
4e0227
-    }
4e0227
-]
4e0227
-
4e0227
diff --git a/tests/py/ip/tcpopt.t.json.output b/tests/py/ip/tcpopt.t.json.output
4e0227
deleted file mode 100644
4e0227
index 81dd8ad..0000000
4e0227
--- a/tests/py/ip/tcpopt.t.json.output
4e0227
+++ /dev/null
4e0227
@@ -1,16 +0,0 @@
4e0227
-# tcp option sack0 right 1
4e0227
-[
4e0227
-    {
4e0227
-        "match": {
4e0227
-            "left": {
4e0227
-                "tcp option": {
4e0227
-                    "field": "right",
4e0227
-                    "name": "sack"
4e0227
-                }
4e0227
-            },
4e0227
-	    "op": "==",
4e0227
-            "right": 1
4e0227
-        }
4e0227
-    }
4e0227
-]
4e0227
-
4e0227
diff --git a/tests/py/ip/tcpopt.t.payload b/tests/py/ip/tcpopt.t.payload
4e0227
deleted file mode 100644
4e0227
index b2e5bdb..0000000
4e0227
--- a/tests/py/ip/tcpopt.t.payload
4e0227
+++ /dev/null
4e0227
@@ -1,181 +0,0 @@
4e0227
-# tcp option eol kind 1
4e0227
-ip test-ip input
4e0227
-  [ meta load l4proto => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x00000006 ]
4e0227
-  [ exthdr load tcpopt 1b @ 0 + 0 => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x00000001 ]
4e0227
-
4e0227
-# tcp option noop kind 1
4e0227
-ip test-ip input
4e0227
-  [ meta load l4proto => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x00000006 ]
4e0227
-  [ exthdr load tcpopt 1b @ 1 + 0 => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x00000001 ]
4e0227
-
4e0227
-# tcp option maxseg kind 1
4e0227
-ip test-ip input
4e0227
-  [ meta load l4proto => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x00000006 ]
4e0227
-  [ exthdr load tcpopt 1b @ 2 + 0 => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x00000001 ]
4e0227
-
4e0227
-# tcp option maxseg length 1
4e0227
-ip test-ip input
4e0227
-  [ meta load l4proto => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x00000006 ]
4e0227
-  [ exthdr load tcpopt 1b @ 2 + 1 => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x00000001 ]
4e0227
-
4e0227
-# tcp option maxseg size 1
4e0227
-ip test-ip input
4e0227
-  [ meta load l4proto => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x00000006 ]
4e0227
-  [ exthdr load tcpopt 2b @ 2 + 2 => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x00000100 ]
4e0227
-
4e0227
-# tcp option window kind 1
4e0227
-ip test-ip input
4e0227
-  [ meta load l4proto => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x00000006 ]
4e0227
-  [ exthdr load tcpopt 1b @ 3 + 0 => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x00000001 ]
4e0227
-
4e0227
-# tcp option window length 1
4e0227
-ip test-ip input
4e0227
-  [ meta load l4proto => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x00000006 ]
4e0227
-  [ exthdr load tcpopt 1b @ 3 + 1 => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x00000001 ]
4e0227
-
4e0227
-# tcp option window count 1
4e0227
-ip test-ip input
4e0227
-  [ meta load l4proto => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x00000006 ]
4e0227
-  [ exthdr load tcpopt 1b @ 3 + 2 => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x00000001 ]
4e0227
-
4e0227
-# tcp option sack-permitted kind 1
4e0227
-ip test-ip input
4e0227
-  [ meta load l4proto => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x00000006 ]
4e0227
-  [ exthdr load tcpopt 1b @ 4 + 0 => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x00000001 ]
4e0227
-
4e0227
-# tcp option sack-permitted length 1
4e0227
-ip test-ip input
4e0227
-  [ meta load l4proto => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x00000006 ]
4e0227
-  [ exthdr load tcpopt 1b @ 4 + 1 => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x00000001 ]
4e0227
-
4e0227
-# tcp option sack kind 1
4e0227
-ip test-ip input
4e0227
-  [ meta load l4proto => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x00000006 ]
4e0227
-  [ exthdr load tcpopt 1b @ 5 + 0 => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x00000001 ]
4e0227
-
4e0227
-# tcp option sack length 1
4e0227
-ip test-ip input
4e0227
-  [ meta load l4proto => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x00000006 ]
4e0227
-  [ exthdr load tcpopt 1b @ 5 + 1 => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x00000001 ]
4e0227
-
4e0227
-# tcp option sack left 1
4e0227
-ip test-ip input
4e0227
-  [ meta load l4proto => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x00000006 ]
4e0227
-  [ exthdr load tcpopt 4b @ 5 + 2 => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x01000000 ]
4e0227
-
4e0227
-# tcp option sack0 left 1
4e0227
-ip test-ip input
4e0227
-  [ meta load l4proto => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x00000006 ]
4e0227
-  [ exthdr load tcpopt 4b @ 5 + 2 => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x01000000 ]
4e0227
-
4e0227
-# tcp option sack1 left 1
4e0227
-ip test-ip input
4e0227
-  [ meta load l4proto => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x00000006 ]
4e0227
-  [ exthdr load tcpopt 4b @ 5 + 10 => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x01000000 ]
4e0227
-
4e0227
-# tcp option sack2 left 1
4e0227
-ip test-ip input
4e0227
-  [ meta load l4proto => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x00000006 ]
4e0227
-  [ exthdr load tcpopt 4b @ 5 + 18 => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x01000000 ]
4e0227
-
4e0227
-# tcp option sack3 left 1
4e0227
-ip test-ip input
4e0227
-  [ meta load l4proto => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x00000006 ]
4e0227
-  [ exthdr load tcpopt 4b @ 5 + 26 => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x01000000 ]
4e0227
-
4e0227
-# tcp option sack right 1
4e0227
-ip test-ip input
4e0227
-  [ meta load l4proto => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x00000006 ]
4e0227
-  [ exthdr load tcpopt 4b @ 5 + 6 => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x01000000 ]
4e0227
-
4e0227
-# tcp option sack0 right 1
4e0227
-ip test-ip input
4e0227
-  [ meta load l4proto => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x00000006 ]
4e0227
-  [ exthdr load tcpopt 4b @ 5 + 6 => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x01000000 ]
4e0227
-
4e0227
-# tcp option sack1 right 1
4e0227
-ip test-ip input
4e0227
-  [ meta load l4proto => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x00000006 ]
4e0227
-  [ exthdr load tcpopt 4b @ 5 + 14 => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x01000000 ]
4e0227
-
4e0227
-# tcp option sack2 right 1
4e0227
-ip test-ip input
4e0227
-  [ meta load l4proto => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x00000006 ]
4e0227
-  [ exthdr load tcpopt 4b @ 5 + 22 => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x01000000 ]
4e0227
-
4e0227
-# tcp option sack3 right 1
4e0227
-ip test-ip input
4e0227
-  [ meta load l4proto => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x00000006 ]
4e0227
-  [ exthdr load tcpopt 4b @ 5 + 30 => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x01000000 ]
4e0227
-
4e0227
-# tcp option timestamp kind 1
4e0227
-ip test-ip input
4e0227
-  [ meta load l4proto => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x00000006 ]
4e0227
-  [ exthdr load tcpopt 1b @ 8 + 0 => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x00000001 ]
4e0227
-
4e0227
-# tcp option timestamp length 1
4e0227
-ip test-ip input
4e0227
-  [ meta load l4proto => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x00000006 ]
4e0227
-  [ exthdr load tcpopt 1b @ 8 + 1 => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x00000001 ]
4e0227
-
4e0227
-# tcp option timestamp tsval 1
4e0227
-ip test-ip input
4e0227
-  [ meta load l4proto => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x00000006 ]
4e0227
-  [ exthdr load tcpopt 4b @ 8 + 2 => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x01000000 ]
4e0227
-
4e0227
-# tcp option timestamp tsecr 1
4e0227
-ip test-ip input
4e0227
-  [ meta load l4proto => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x00000006 ]
4e0227
-  [ exthdr load tcpopt 4b @ 8 + 6 => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x01000000 ]
4e0227
diff --git a/tests/py/ip6/tcpopt.t b/tests/py/ip6/tcpopt.t
4e0227
deleted file mode 100644
4e0227
index 497f69f..0000000
4e0227
--- a/tests/py/ip6/tcpopt.t
4e0227
+++ /dev/null
4e0227
@@ -1,37 +0,0 @@
4e0227
-:input;type filter hook input priority 0
4e0227
-*ip6;test-ip6;input
4e0227
-
4e0227
-tcp option eol kind 1;ok
4e0227
-tcp option noop kind 1;ok
4e0227
-tcp option maxseg kind 1;ok
4e0227
-tcp option maxseg length 1;ok
4e0227
-tcp option maxseg size 1;ok
4e0227
-tcp option window kind 1;ok
4e0227
-tcp option window length 1;ok
4e0227
-tcp option window count 1;ok
4e0227
-tcp option sack-permitted kind 1;ok
4e0227
-tcp option sack-permitted length 1;ok
4e0227
-tcp option sack kind 1;ok
4e0227
-tcp option sack length 1;ok
4e0227
-tcp option sack left 1;ok
4e0227
-tcp option sack0 left 1;ok;tcp option sack left 1
4e0227
-tcp option sack1 left 1;ok
4e0227
-tcp option sack2 left 1;ok
4e0227
-tcp option sack3 left 1;ok
4e0227
-tcp option sack right 1;ok
4e0227
-tcp option sack0 right 1;ok;tcp option sack right 1
4e0227
-tcp option sack1 right 1;ok
4e0227
-tcp option sack2 right 1;ok
4e0227
-tcp option sack3 right 1;ok
4e0227
-tcp option timestamp kind 1;ok
4e0227
-tcp option timestamp length 1;ok
4e0227
-tcp option timestamp tsval 1;ok
4e0227
-tcp option timestamp tsecr 1;ok
4e0227
-
4e0227
-tcp option foobar;fail
4e0227
-tcp option foo bar;fail
4e0227
-tcp option eol left;fail
4e0227
-tcp option eol left 1;fail
4e0227
-tcp option eol left 1;fail
4e0227
-tcp option sack window;fail
4e0227
-tcp option sack window 1;fail
4e0227
diff --git a/tests/py/ip6/tcpopt.t.json b/tests/py/ip6/tcpopt.t.json
4e0227
deleted file mode 100644
4e0227
index d573dd1..0000000
4e0227
--- a/tests/py/ip6/tcpopt.t.json
4e0227
+++ /dev/null
4e0227
@@ -1,416 +0,0 @@
4e0227
-# tcp option eol kind 1
4e0227
-[
4e0227
-    {
4e0227
-        "match": {
4e0227
-            "left": {
4e0227
-                "tcp option": {
4e0227
-                    "field": "kind",
4e0227
-                    "name": "eol"
4e0227
-                }
4e0227
-            },
4e0227
-	    "op": "==",
4e0227
-            "right": 1
4e0227
-        }
4e0227
-    }
4e0227
-]
4e0227
-
4e0227
-# tcp option noop kind 1
4e0227
-[
4e0227
-    {
4e0227
-        "match": {
4e0227
-            "left": {
4e0227
-                "tcp option": {
4e0227
-                    "field": "kind",
4e0227
-                    "name": "noop"
4e0227
-                }
4e0227
-            },
4e0227
-	    "op": "==",
4e0227
-            "right": 1
4e0227
-        }
4e0227
-    }
4e0227
-]
4e0227
-
4e0227
-# tcp option maxseg kind 1
4e0227
-[
4e0227
-    {
4e0227
-        "match": {
4e0227
-            "left": {
4e0227
-                "tcp option": {
4e0227
-                    "field": "kind",
4e0227
-                    "name": "maxseg"
4e0227
-                }
4e0227
-            },
4e0227
-	    "op": "==",
4e0227
-            "right": 1
4e0227
-        }
4e0227
-    }
4e0227
-]
4e0227
-
4e0227
-# tcp option maxseg length 1
4e0227
-[
4e0227
-    {
4e0227
-        "match": {
4e0227
-            "left": {
4e0227
-                "tcp option": {
4e0227
-                    "field": "length",
4e0227
-                    "name": "maxseg"
4e0227
-                }
4e0227
-            },
4e0227
-	    "op": "==",
4e0227
-            "right": 1
4e0227
-        }
4e0227
-    }
4e0227
-]
4e0227
-
4e0227
-# tcp option maxseg size 1
4e0227
-[
4e0227
-    {
4e0227
-        "match": {
4e0227
-            "left": {
4e0227
-                "tcp option": {
4e0227
-                    "field": "size",
4e0227
-                    "name": "maxseg"
4e0227
-                }
4e0227
-            },
4e0227
-	    "op": "==",
4e0227
-            "right": 1
4e0227
-        }
4e0227
-    }
4e0227
-]
4e0227
-
4e0227
-# tcp option window kind 1
4e0227
-[
4e0227
-    {
4e0227
-        "match": {
4e0227
-            "left": {
4e0227
-                "tcp option": {
4e0227
-                    "field": "kind",
4e0227
-                    "name": "window"
4e0227
-                }
4e0227
-            },
4e0227
-	    "op": "==",
4e0227
-            "right": 1
4e0227
-        }
4e0227
-    }
4e0227
-]
4e0227
-
4e0227
-# tcp option window length 1
4e0227
-[
4e0227
-    {
4e0227
-        "match": {
4e0227
-            "left": {
4e0227
-                "tcp option": {
4e0227
-                    "field": "length",
4e0227
-                    "name": "window"
4e0227
-                }
4e0227
-            },
4e0227
-	    "op": "==",
4e0227
-            "right": 1
4e0227
-        }
4e0227
-    }
4e0227
-]
4e0227
-
4e0227
-# tcp option window count 1
4e0227
-[
4e0227
-    {
4e0227
-        "match": {
4e0227
-            "left": {
4e0227
-                "tcp option": {
4e0227
-                    "field": "count",
4e0227
-                    "name": "window"
4e0227
-                }
4e0227
-            },
4e0227
-	    "op": "==",
4e0227
-            "right": 1
4e0227
-        }
4e0227
-    }
4e0227
-]
4e0227
-
4e0227
-# tcp option sack-permitted kind 1
4e0227
-[
4e0227
-    {
4e0227
-        "match": {
4e0227
-            "left": {
4e0227
-                "tcp option": {
4e0227
-                    "field": "kind",
4e0227
-                    "name": "sack-permitted"
4e0227
-                }
4e0227
-            },
4e0227
-	    "op": "==",
4e0227
-            "right": 1
4e0227
-        }
4e0227
-    }
4e0227
-]
4e0227
-
4e0227
-# tcp option sack-permitted length 1
4e0227
-[
4e0227
-    {
4e0227
-        "match": {
4e0227
-            "left": {
4e0227
-                "tcp option": {
4e0227
-                    "field": "length",
4e0227
-                    "name": "sack-permitted"
4e0227
-                }
4e0227
-            },
4e0227
-	    "op": "==",
4e0227
-            "right": 1
4e0227
-        }
4e0227
-    }
4e0227
-]
4e0227
-
4e0227
-# tcp option sack kind 1
4e0227
-[
4e0227
-    {
4e0227
-        "match": {
4e0227
-            "left": {
4e0227
-                "tcp option": {
4e0227
-                    "field": "kind",
4e0227
-                    "name": "sack"
4e0227
-                }
4e0227
-            },
4e0227
-	    "op": "==",
4e0227
-            "right": 1
4e0227
-        }
4e0227
-    }
4e0227
-]
4e0227
-
4e0227
-# tcp option sack length 1
4e0227
-[
4e0227
-    {
4e0227
-        "match": {
4e0227
-            "left": {
4e0227
-                "tcp option": {
4e0227
-                    "field": "length",
4e0227
-                    "name": "sack"
4e0227
-                }
4e0227
-            },
4e0227
-	    "op": "==",
4e0227
-            "right": 1
4e0227
-        }
4e0227
-    }
4e0227
-]
4e0227
-
4e0227
-# tcp option sack left 1
4e0227
-[
4e0227
-    {
4e0227
-        "match": {
4e0227
-            "left": {
4e0227
-                "tcp option": {
4e0227
-                    "field": "left",
4e0227
-                    "name": "sack"
4e0227
-                }
4e0227
-            },
4e0227
-	    "op": "==",
4e0227
-            "right": 1
4e0227
-        }
4e0227
-    }
4e0227
-]
4e0227
-
4e0227
-# tcp option sack0 left 1
4e0227
-[
4e0227
-    {
4e0227
-        "match": {
4e0227
-            "left": {
4e0227
-                "tcp option": {
4e0227
-                    "field": "left",
4e0227
-                    "name": "sack"
4e0227
-                }
4e0227
-            },
4e0227
-	    "op": "==",
4e0227
-            "right": 1
4e0227
-        }
4e0227
-    }
4e0227
-]
4e0227
-
4e0227
-# tcp option sack1 left 1
4e0227
-[
4e0227
-    {
4e0227
-        "match": {
4e0227
-            "left": {
4e0227
-                "tcp option": {
4e0227
-                    "field": "left",
4e0227
-                    "name": "sack1"
4e0227
-                }
4e0227
-            },
4e0227
-	    "op": "==",
4e0227
-            "right": 1
4e0227
-        }
4e0227
-    }
4e0227
-]
4e0227
-
4e0227
-# tcp option sack2 left 1
4e0227
-[
4e0227
-    {
4e0227
-        "match": {
4e0227
-            "left": {
4e0227
-                "tcp option": {
4e0227
-                    "field": "left",
4e0227
-                    "name": "sack2"
4e0227
-                }
4e0227
-            },
4e0227
-	    "op": "==",
4e0227
-            "right": 1
4e0227
-        }
4e0227
-    }
4e0227
-]
4e0227
-
4e0227
-# tcp option sack3 left 1
4e0227
-[
4e0227
-    {
4e0227
-        "match": {
4e0227
-            "left": {
4e0227
-                "tcp option": {
4e0227
-                    "field": "left",
4e0227
-                    "name": "sack3"
4e0227
-                }
4e0227
-            },
4e0227
-	    "op": "==",
4e0227
-            "right": 1
4e0227
-        }
4e0227
-    }
4e0227
-]
4e0227
-
4e0227
-# tcp option sack right 1
4e0227
-[
4e0227
-    {
4e0227
-        "match": {
4e0227
-            "left": {
4e0227
-                "tcp option": {
4e0227
-                    "field": "right",
4e0227
-                    "name": "sack"
4e0227
-                }
4e0227
-            },
4e0227
-	    "op": "==",
4e0227
-            "right": 1
4e0227
-        }
4e0227
-    }
4e0227
-]
4e0227
-
4e0227
-# tcp option sack0 right 1
4e0227
-[
4e0227
-    {
4e0227
-        "match": {
4e0227
-            "left": {
4e0227
-                "tcp option": {
4e0227
-                    "field": "right",
4e0227
-                    "name": "sack0"
4e0227
-                }
4e0227
-            },
4e0227
-	    "op": "==",
4e0227
-            "right": 1
4e0227
-        }
4e0227
-    }
4e0227
-]
4e0227
-
4e0227
-# tcp option sack1 right 1
4e0227
-[
4e0227
-    {
4e0227
-        "match": {
4e0227
-            "left": {
4e0227
-                "tcp option": {
4e0227
-                    "field": "right",
4e0227
-                    "name": "sack1"
4e0227
-                }
4e0227
-            },
4e0227
-	    "op": "==",
4e0227
-            "right": 1
4e0227
-        }
4e0227
-    }
4e0227
-]
4e0227
-
4e0227
-# tcp option sack2 right 1
4e0227
-[
4e0227
-    {
4e0227
-        "match": {
4e0227
-            "left": {
4e0227
-                "tcp option": {
4e0227
-                    "field": "right",
4e0227
-                    "name": "sack2"
4e0227
-                }
4e0227
-            },
4e0227
-	    "op": "==",
4e0227
-            "right": 1
4e0227
-        }
4e0227
-    }
4e0227
-]
4e0227
-
4e0227
-# tcp option sack3 right 1
4e0227
-[
4e0227
-    {
4e0227
-        "match": {
4e0227
-            "left": {
4e0227
-                "tcp option": {
4e0227
-                    "field": "right",
4e0227
-                    "name": "sack3"
4e0227
-                }
4e0227
-            },
4e0227
-	    "op": "==",
4e0227
-            "right": 1
4e0227
-        }
4e0227
-    }
4e0227
-]
4e0227
-
4e0227
-# tcp option timestamp kind 1
4e0227
-[
4e0227
-    {
4e0227
-        "match": {
4e0227
-            "left": {
4e0227
-                "tcp option": {
4e0227
-                    "field": "kind",
4e0227
-                    "name": "timestamp"
4e0227
-                }
4e0227
-            },
4e0227
-	    "op": "==",
4e0227
-            "right": 1
4e0227
-        }
4e0227
-    }
4e0227
-]
4e0227
-
4e0227
-# tcp option timestamp length 1
4e0227
-[
4e0227
-    {
4e0227
-        "match": {
4e0227
-            "left": {
4e0227
-                "tcp option": {
4e0227
-                    "field": "length",
4e0227
-                    "name": "timestamp"
4e0227
-                }
4e0227
-            },
4e0227
-	    "op": "==",
4e0227
-            "right": 1
4e0227
-        }
4e0227
-    }
4e0227
-]
4e0227
-
4e0227
-# tcp option timestamp tsval 1
4e0227
-[
4e0227
-    {
4e0227
-        "match": {
4e0227
-            "left": {
4e0227
-                "tcp option": {
4e0227
-                    "field": "tsval",
4e0227
-                    "name": "timestamp"
4e0227
-                }
4e0227
-            },
4e0227
-	    "op": "==",
4e0227
-            "right": 1
4e0227
-        }
4e0227
-    }
4e0227
-]
4e0227
-
4e0227
-# tcp option timestamp tsecr 1
4e0227
-[
4e0227
-    {
4e0227
-        "match": {
4e0227
-            "left": {
4e0227
-                "tcp option": {
4e0227
-                    "field": "tsecr",
4e0227
-                    "name": "timestamp"
4e0227
-                }
4e0227
-            },
4e0227
-	    "op": "==",
4e0227
-            "right": 1
4e0227
-        }
4e0227
-    }
4e0227
-]
4e0227
-
4e0227
diff --git a/tests/py/ip6/tcpopt.t.json.output b/tests/py/ip6/tcpopt.t.json.output
4e0227
deleted file mode 100644
4e0227
index 81dd8ad..0000000
4e0227
--- a/tests/py/ip6/tcpopt.t.json.output
4e0227
+++ /dev/null
4e0227
@@ -1,16 +0,0 @@
4e0227
-# tcp option sack0 right 1
4e0227
-[
4e0227
-    {
4e0227
-        "match": {
4e0227
-            "left": {
4e0227
-                "tcp option": {
4e0227
-                    "field": "right",
4e0227
-                    "name": "sack"
4e0227
-                }
4e0227
-            },
4e0227
-	    "op": "==",
4e0227
-            "right": 1
4e0227
-        }
4e0227
-    }
4e0227
-]
4e0227
-
4e0227
diff --git a/tests/py/ip6/tcpopt.t.payload b/tests/py/ip6/tcpopt.t.payload
4e0227
deleted file mode 100644
4e0227
index 4b18919..0000000
4e0227
--- a/tests/py/ip6/tcpopt.t.payload
4e0227
+++ /dev/null
4e0227
@@ -1,181 +0,0 @@
4e0227
-# tcp option eol kind 1
4e0227
-ip6 test-ip input
4e0227
-  [ meta load l4proto => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x00000006 ]
4e0227
-  [ exthdr load tcpopt 1b @ 0 + 0 => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x00000001 ]
4e0227
-
4e0227
-# tcp option noop kind 1
4e0227
-ip6 test-ip input
4e0227
-  [ meta load l4proto => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x00000006 ]
4e0227
-  [ exthdr load tcpopt 1b @ 1 + 0 => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x00000001 ]
4e0227
-
4e0227
-# tcp option maxseg kind 1
4e0227
-ip6 test-ip input
4e0227
-  [ meta load l4proto => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x00000006 ]
4e0227
-  [ exthdr load tcpopt 1b @ 2 + 0 => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x00000001 ]
4e0227
-
4e0227
-# tcp option maxseg length 1
4e0227
-ip6 test-ip input
4e0227
-  [ meta load l4proto => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x00000006 ]
4e0227
-  [ exthdr load tcpopt 1b @ 2 + 1 => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x00000001 ]
4e0227
-
4e0227
-# tcp option maxseg size 1
4e0227
-ip6 test-ip input
4e0227
-  [ meta load l4proto => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x00000006 ]
4e0227
-  [ exthdr load tcpopt 2b @ 2 + 2 => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x00000100 ]
4e0227
-
4e0227
-# tcp option window kind 1
4e0227
-ip6 test-ip input
4e0227
-  [ meta load l4proto => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x00000006 ]
4e0227
-  [ exthdr load tcpopt 1b @ 3 + 0 => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x00000001 ]
4e0227
-
4e0227
-# tcp option window length 1
4e0227
-ip6 test-ip input
4e0227
-  [ meta load l4proto => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x00000006 ]
4e0227
-  [ exthdr load tcpopt 1b @ 3 + 1 => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x00000001 ]
4e0227
-
4e0227
-# tcp option window count 1
4e0227
-ip6 test-ip input
4e0227
-  [ meta load l4proto => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x00000006 ]
4e0227
-  [ exthdr load tcpopt 1b @ 3 + 2 => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x00000001 ]
4e0227
-
4e0227
-# tcp option sack-permitted kind 1
4e0227
-ip6 test-ip input
4e0227
-  [ meta load l4proto => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x00000006 ]
4e0227
-  [ exthdr load tcpopt 1b @ 4 + 0 => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x00000001 ]
4e0227
-
4e0227
-# tcp option sack-permitted length 1
4e0227
-ip6 test-ip input
4e0227
-  [ meta load l4proto => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x00000006 ]
4e0227
-  [ exthdr load tcpopt 1b @ 4 + 1 => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x00000001 ]
4e0227
-
4e0227
-# tcp option sack kind 1
4e0227
-ip6 test-ip input
4e0227
-  [ meta load l4proto => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x00000006 ]
4e0227
-  [ exthdr load tcpopt 1b @ 5 + 0 => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x00000001 ]
4e0227
-
4e0227
-# tcp option sack length 1
4e0227
-ip6 test-ip input
4e0227
-  [ meta load l4proto => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x00000006 ]
4e0227
-  [ exthdr load tcpopt 1b @ 5 + 1 => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x00000001 ]
4e0227
-
4e0227
-# tcp option sack left 1
4e0227
-ip6 test-ip input
4e0227
-  [ meta load l4proto => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x00000006 ]
4e0227
-  [ exthdr load tcpopt 4b @ 5 + 2 => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x01000000 ]
4e0227
-
4e0227
-# tcp option sack0 left 1
4e0227
-ip6 test-ip input
4e0227
-  [ meta load l4proto => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x00000006 ]
4e0227
-  [ exthdr load tcpopt 4b @ 5 + 2 => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x01000000 ]
4e0227
-
4e0227
-# tcp option sack1 left 1
4e0227
-ip6 test-ip input
4e0227
-  [ meta load l4proto => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x00000006 ]
4e0227
-  [ exthdr load tcpopt 4b @ 5 + 10 => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x01000000 ]
4e0227
-
4e0227
-# tcp option sack2 left 1
4e0227
-ip6 test-ip input
4e0227
-  [ meta load l4proto => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x00000006 ]
4e0227
-  [ exthdr load tcpopt 4b @ 5 + 18 => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x01000000 ]
4e0227
-
4e0227
-# tcp option sack3 left 1
4e0227
-ip6 test-ip input
4e0227
-  [ meta load l4proto => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x00000006 ]
4e0227
-  [ exthdr load tcpopt 4b @ 5 + 26 => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x01000000 ]
4e0227
-
4e0227
-# tcp option sack right 1
4e0227
-ip6 test-ip input
4e0227
-  [ meta load l4proto => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x00000006 ]
4e0227
-  [ exthdr load tcpopt 4b @ 5 + 6 => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x01000000 ]
4e0227
-
4e0227
-# tcp option sack0 right 1
4e0227
-ip6 test-ip input
4e0227
-  [ meta load l4proto => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x00000006 ]
4e0227
-  [ exthdr load tcpopt 4b @ 5 + 6 => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x01000000 ]
4e0227
-
4e0227
-# tcp option sack1 right 1
4e0227
-ip6 test-ip input
4e0227
-  [ meta load l4proto => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x00000006 ]
4e0227
-  [ exthdr load tcpopt 4b @ 5 + 14 => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x01000000 ]
4e0227
-
4e0227
-# tcp option sack2 right 1
4e0227
-ip6 test-ip input
4e0227
-  [ meta load l4proto => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x00000006 ]
4e0227
-  [ exthdr load tcpopt 4b @ 5 + 22 => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x01000000 ]
4e0227
-
4e0227
-# tcp option sack3 right 1
4e0227
-ip6 test-ip input
4e0227
-  [ meta load l4proto => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x00000006 ]
4e0227
-  [ exthdr load tcpopt 4b @ 5 + 30 => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x01000000 ]
4e0227
-
4e0227
-# tcp option timestamp kind 1
4e0227
-ip6 test-ip input
4e0227
-  [ meta load l4proto => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x00000006 ]
4e0227
-  [ exthdr load tcpopt 1b @ 8 + 0 => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x00000001 ]
4e0227
-
4e0227
-# tcp option timestamp length 1
4e0227
-ip6 test-ip input
4e0227
-  [ meta load l4proto => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x00000006 ]
4e0227
-  [ exthdr load tcpopt 1b @ 8 + 1 => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x00000001 ]
4e0227
-
4e0227
-# tcp option timestamp tsval 1
4e0227
-ip6 test-ip input
4e0227
-  [ meta load l4proto => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x00000006 ]
4e0227
-  [ exthdr load tcpopt 4b @ 8 + 2 => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x01000000 ]
4e0227
-
4e0227
-# tcp option timestamp tsecr 1
4e0227
-ip6 test-ip input
4e0227
-  [ meta load l4proto => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x00000006 ]
4e0227
-  [ exthdr load tcpopt 4b @ 8 + 6 => reg 1 ]
4e0227
-  [ cmp eq reg 1 0x01000000 ]
4e0227
-- 
4e0227
2.31.1
4e0227