[PATCH 2/2 nftables] test: py: add test cases for "osf" matching

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Fernando Fernandez Mancera <ffmancera@xxxxxxxxxx>
---
 tests/py/inet/osf.t         | 6 ++++++
 tests/py/inet/osf.t.payload | 4 ++++
 2 files changed, 10 insertions(+)
 create mode 100644 tests/py/inet/osf.t
 create mode 100644 tests/py/inet/osf.t.payload

diff --git a/tests/py/inet/osf.t b/tests/py/inet/osf.t
new file mode 100644
index 0000000..743049a
--- /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 0000000..bb11051
--- /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 ]
-- 
2.18.0

--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux