From: Pablo Neira Ayuso Date: Tue, 7 Aug 2018 15:58:21 +0000 (+0200) Subject: tests: py: test osf with sets X-Git-Tag: v0.9.1~328 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=300e9b3dcbd78e5f14831ccddcdcf7bd9a558127;p=thirdparty%2Fnftables.git tests: py: test osf with sets Signed-off-by: Pablo Neira Ayuso --- 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