]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
examples: genl: fix wrong attribute size
authorNitin Wankhade <nitin.wankhade333@gmail.com>
Tue, 23 Sep 2025 11:50:20 +0000 (17:20 +0530)
committerSteve Sakoman <steve@sakoman.com>
Wed, 24 Sep 2025 17:14:48 +0000 (10:14 -0700)
commitbae5ecea1c40847ffc3760173192f85e28ed9d7b
tree24272e7f19a52270aaa7f2435e72a2c192efce79
parent96602ea67463170c4cadf748525f5615ce9bbd91
examples: genl: fix wrong attribute size

This example no longer works on more recent kernels:

genl-family-get
error: Invalid argument

dmesg says:
netlink: 'genl-family-get': attribute type 1 has an invalid length.

Fix this and also zero out the reserved field in the genl header,
while not validated yet for dumps this could change.

Upstream-Status: Backport [https://git.netfilter.org/libmnl/patch/?id=54dea548d796653534645c6e3c8577eaf7d77411]

Reported-by: Divyanshu Rathore <Divyanshu.Rathore@bmwtechworks.in>
Signed-off-by: Florian Westphal <fw@strlen.de>
(cherry picked from commit 54dea548d796653534645c6e3c8577eaf7d77411)
Signed-off-by: Divyanshu Rathore <divyanshu.rathore@bmwtechworks.in>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/recipes-extended/libmnl/files/0001-examples-genl-fix-wrong-attribute-size.patch [new file with mode: 0644]
meta/recipes-extended/libmnl/libmnl_1.0.5.bb