diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2018-08-07 17:58:21 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2018-08-07 17:58:21 +0200 |
commit | 300e9b3dcbd78e5f14831ccddcdcf7bd9a558127 (patch) | |
tree | 7cf54ba6045a38d6357604fc55574c56b7fe6d06 /tests | |
parent | ec916a449903f30e00bf5d392ce84b0bb248363a (diff) |
tests: py: test osf with sets
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/py/inet/osf.t | 1 | ||||
-rw-r--r-- | tests/py/inet/osf.t.payload | 8 |
2 files changed, 9 insertions, 0 deletions
diff --git a/tests/py/inet/osf.t b/tests/py/inet/osf.t index 7cf90931..bccfc751 100644 --- a/tests/py/inet/osf.t +++ b/tests/py/inet/osf.t @@ -7,4 +7,5 @@ osf name "Linux";ok osf name "morethansixteenbytes";fail osf name ;fail +osf name { "Windows", "MacOs" };ok ct mark set osf name map { "Windows" : 0x00000001, "MacOs" : 0x00000002 };ok diff --git a/tests/py/inet/osf.t.payload b/tests/py/inet/osf.t.payload index 0381378f..850ca29e 100644 --- a/tests/py/inet/osf.t.payload +++ b/tests/py/inet/osf.t.payload @@ -13,6 +13,14 @@ inet osfinet osfchain [ osf dreg 1 ] [ cmp eq reg 1 0x756e694c 0x00000078 0x00000000 0x00000000 ] +# osf name { "Windows", "MacOs" } +__set%d osfinet 3 size 2 +__set%d osfinet 0 + element 646e6957 0073776f 00000000 00000000 : 0 [end] element 4f63614d 00000073 00000000 00000000 : 0 [end] +inet osfinet osfchain + [ osf dreg 1 ] + [ lookup reg 1 set __set%d ] + # ct mark set osf name map { "Windows" : 0x00000001, "MacOs" : 0x00000002 } __map%d osfip b size 2 __map%d osfip 0 |