[PATCH 2/2 nft] tests: improve test cases for osf

[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         |  5 ++++-
 tests/py/inet/osf.t.payload | 10 ++++++++++
 2 files changed, 14 insertions(+), 1 deletion(-)

diff --git a/tests/py/inet/osf.t b/tests/py/inet/osf.t
index 4db20b7..6533b84 100644
--- a/tests/py/inet/osf.t
+++ b/tests/py/inet/osf.t
@@ -1,6 +1,9 @@
 :osfchain;type filter hook input priority 0
 
 *ip;osfip;osfchain
+*ip6;osfip6;osfchain
+*inet;osfinet;osfchain
 
-osf name "Linux";ok;osf "Linux"
+osf name "Linux";ok
+osf name "morethansixteenbytes";fail
 osf name ;fail
diff --git a/tests/py/inet/osf.t.payload b/tests/py/inet/osf.t.payload
index 70eedb5..91ff369 100644
--- a/tests/py/inet/osf.t.payload
+++ b/tests/py/inet/osf.t.payload
@@ -2,3 +2,13 @@
 ip osfip osfchain
   [ osf 1]
   [ cmp eq reg 1 0x756e694c 0x00000078 0x00000000 0x00000000 ]
+
+# osf name "Linux"
+ip6 osfip6 osfchain
+  [ osf 1]
+  [ cmp eq reg 1 0x756e694c 0x00000078 0x00000000 0x00000000 ]
+
+# osf name "Linux"
+inet osfinet 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