From 13426f7cad870a2bb2501791cc429d9dc0d16526 Mon Sep 17 00:00:00 2001 From: Fernando Fernandez Mancera Date: Fri, 3 Aug 2018 23:47:12 +0200 Subject: tests: py: add test cases for "osf" matching Signed-off-by: Fernando Fernandez Mancera Signed-off-by: Pablo Neira Ayuso --- 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 (limited to 'tests/py') 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 ] -- cgit v1.2.3