tools: ynl: Fix genlmsg header encoding formats
authorDonald Hunter <donald.hunter@gmail.com>
Sun, 19 Mar 2023 19:37:58 +0000 (19:37 +0000)
committerJakub Kicinski <kuba@kernel.org>
Thu, 23 Mar 2023 03:40:04 +0000 (20:40 -0700)
commit758d29fb3a8b3c756b4e4e0aa9b32ca8cfaf3feb
treeec0cdf6347b4c23c06f2fcaf37977d0fad9a2ebc
parentc79493c3ccf06a3aeb72017a96ca3dfd166bc16b
tools: ynl: Fix genlmsg header encoding formats

The pack strings use 'b' signed char for cmd and version but struct
genlmsghdr defines them as unsigned char. Use 'B' instead.

Fixes: 4e4480e89c47 ("tools: ynl: move the cli and netlink code around")
Signed-off-by: Donald Hunter <donald.hunter@gmail.com>
Link: https://lore.kernel.org/r/20230319193803.97453-1-donald.hunter@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/net/ynl/lib/ynl.py