summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorFernando Fernandez Mancera <ffmancera@riseup.net>2018-08-03 23:47:12 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2018-08-04 00:21:36 +0200
commit13426f7cad870a2bb2501791cc429d9dc0d16526 (patch)
treee68fdb6cb2cf57d9324abc23d47a9ec5c0c14719 /tests
parent9f28b685b473b2424524d0443ef1e0ed8ba276de (diff)
tests: py: add test cases for "osf" matching
Signed-off-by: Fernando Fernandez Mancera <ffmancera@riseup.net> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tests')
-rw-r--r--tests/py/inet/osf.t6
-rw-r--r--tests/py/inet/osf.t.payload4
2 files changed, 10 insertions, 0 deletions
diff --git a/tests/py/inet/osf.t b/tests/py/inet/osf.t
new file mode 100644
index 00000000..743049a0
--- /dev/null
+++ b/tests/py/inet/osf.t
@@ -0,0 +1,6 @@
+:osfchain;type filter hook input priority 0
+
+*ip;osfip;osfchain
+
+osf name Linux;ok
+osf name;fail
diff --git a/tests/py/inet/osf.t.payload b/tests/py/inet/osf.t.payload
new file mode 100644
index 00000000..bb110516
--- /dev/null
+++ b/tests/py/inet/osf.t.payload
@@ -0,0 +1,4 @@
+# osf name Linux
+ip osfip osfchain
+ [ osf 1]
+ [ cmp eq reg 1 0x756e694c 0x00000078 0x00000000 0x00000000 ]