diff options
author | Fernando Fernandez Mancera <ffmancera@riseup.net> | 2018-08-07 11:44:07 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2018-08-07 17:31:42 +0200 |
commit | 2a704dff296de5b3bbe9973d253f98a5556a2e87 (patch) | |
tree | cbda23df761fcbb78777a71a47556a90e88761eb | |
parent | cfa7f3aa145755a2abc6e6751e11bac95978cfe4 (diff) |
tests: improve test cases for osf
Signed-off-by: Fernando Fernandez Mancera <ffmancera@riseup.net>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
-rw-r--r-- | tests/py/inet/osf.t | 5 | ||||
-rw-r--r-- | tests/py/inet/osf.t.payload | 12 |
2 files changed, 15 insertions, 2 deletions
diff --git a/tests/py/inet/osf.t b/tests/py/inet/osf.t index 4db20b7b..6533b84e 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 70eedb56..f94c17ec 100644 --- a/tests/py/inet/osf.t.payload +++ b/tests/py/inet/osf.t.payload @@ -1,4 +1,14 @@ # osf name "Linux" ip osfip osfchain - [ osf 1] + [ osf dreg 1 ] + [ cmp eq reg 1 0x756e694c 0x00000078 0x00000000 0x00000000 ] + +# osf name "Linux" +ip6 osfip6 osfchain + [ osf dreg 1 ] + [ cmp eq reg 1 0x756e694c 0x00000078 0x00000000 0x00000000 ] + +# osf name "Linux" +inet osfinet osfchain + [ osf dreg 1 ] [ cmp eq reg 1 0x756e694c 0x00000078 0x00000000 0x00000000 ] |