Content-Type: multipart/mixed; boundary="===============7368150716490563232==" MIME-Version: 1.0 From: Ossama Othman Subject: [PATCH 2/2] unit: Update expected nested netlink attr data Date: Mon, 30 Nov 2020 10:57:36 -0800 Message-ID: <20201130185736.30474-3-ossama.othman@intel.com> In-Reply-To: <20201130185736.30474-1-ossama.othman@intel.com> List-Id: To: ell@lists.01.org --===============7368150716490563232== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Update raw message data used when verifying genl message content to take into account the NLA_F_NESTED attribute type bit that is now set by l_genl_msg_enter_nested(). --- unit/test-genl-msg.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/unit/test-genl-msg.c b/unit/test-genl-msg.c index 119d01e..1653da1 100644 --- a/unit/test-genl-msg.c +++ b/unit/test-genl-msg.c @@ -128,7 +128,7 @@ static void build_set_station(const void *data) static const unsigned char set_rekey_offload_request[] =3D { 0x54, 0x00, 0x00, 0x00, 0x1b, 0x00, 0x05, 0x00, 0x59, 0xa3, 0xe1, 0x53, 0xba, 0x02, 0x40, 0xe7, 0x4f, 0x00, 0x00, 0x00, 0x08, 0x00, 0x03, 0x00, - 0x03, 0x00, 0x00, 0x00, 0x38, 0x00, 0x7a, 0x00, 0x14, 0x00, 0x01, 0x00, + 0x03, 0x00, 0x00, 0x00, 0x38, 0x00, 0x7a, 0x80, 0x14, 0x00, 0x01, 0x00, 0x2f, 0x82, 0xbb, 0x0d, 0x93, 0x56, 0x60, 0x4b, 0xb1, 0x55, 0x1c, 0x85, 0xc0, 0xeb, 0x32, 0x8b, 0x14, 0x00, 0x02, 0x00, 0x43, 0x25, 0xcf, 0x08, 0x0b, 0x92, 0xa7, 0x2d, 0x86, 0xdc, 0x43, 0x21, 0xd6, 0x0c, 0x12, 0x03, @@ -264,10 +264,10 @@ static void build_set_rekey_offload(const void *data) static const unsigned char libnl_nested[] =3D { 0x4c, 0x00, 0x00, 0x00, 0x15, 0x00, 0x05, 0x00, 0x72, 0x05, 0x13, 0x55, 0x77, 0x68, 0x40, 0x0c, 0x01, 0x00, 0x00, 0x00, 0x08, 0x00, 0x01, 0x00, - 0x01, 0x00, 0x00, 0x00, 0x30, 0x00, 0x45, 0x00, 0x06, 0x00, 0x46, 0x00, + 0x01, 0x00, 0x00, 0x00, 0x30, 0x00, 0x45, 0x80, 0x06, 0x00, 0x46, 0x00, 0x66, 0x00, 0x00, 0x00, 0x09, 0x00, 0x47, 0x00, 0x66, 0x6f, 0x6f, 0x62, 0x00, 0x00, 0x00, 0x00, 0x0b, 0x00, 0x48, 0x00, 0x66, 0x6f, 0x6f, 0x62, - 0x61, 0x72, 0x00, 0x00, 0x0c, 0x00, 0x49, 0x00, 0x07, 0x00, 0x50, 0x00, + 0x61, 0x72, 0x00, 0x00, 0x0c, 0x00, 0x49, 0x80, 0x07, 0x00, 0x50, 0x00, 0x62, 0x61, 0x00, 0x00, }; = -- = 2.25.1 --===============7368150716490563232==--