]> git.ipfire.org Git - thirdparty/nftables.git/commitdiff
tests: py: add test cases for "osf" matching
authorFernando Fernandez Mancera <ffmancera@riseup.net>
Fri, 3 Aug 2018 21:47:12 +0000 (23:47 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 3 Aug 2018 22:21:36 +0000 (00:21 +0200)
Signed-off-by: Fernando Fernandez Mancera <ffmancera@riseup.net>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
tests/py/inet/osf.t [new file with mode: 0644]
tests/py/inet/osf.t.payload [new file with mode: 0644]

diff --git a/tests/py/inet/osf.t b/tests/py/inet/osf.t
new file mode 100644 (file)
index 0000000..743049a
--- /dev/null
@@ -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 (file)
index 0000000..bb11051
--- /dev/null
@@ -0,0 +1,4 @@
+# osf name Linux
+ip osfip osfchain
+  [ osf 1]
+  [ cmp eq reg 1 0x756e694c 0x00000078 0x00000000 0x00000000 ]