diff options
author | Nitin Wankhade <nitin.wankhade333@gmail.com> | 2025-09-23 17:20:20 +0530 |
---|---|---|
committer | Steve Sakoman <steve@sakoman.com> | 2025-09-30 08:01:59 -0700 |
commit | 15078fe63fdd3658b0922000335b28eaefedcb8e (patch) | |
tree | 3088aafed8fc4879cd51290bdfa56454d23dca61 /meta/recipes-extended/libmnl/libmnl_1.0.5.bb | |
parent | 2a912b50658972f4e486adb8bf38c649be3e7aa0 (diff) | |
download | poky-15078fe63fdd3658b0922000335b28eaefedcb8e.tar.gz |
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>
(From OE-Core rev: bae5ecea1c40847ffc3760173192f85e28ed9d7b)
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>
Diffstat (limited to 'meta/recipes-extended/libmnl/libmnl_1.0.5.bb')
-rw-r--r-- | meta/recipes-extended/libmnl/libmnl_1.0.5.bb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/meta/recipes-extended/libmnl/libmnl_1.0.5.bb b/meta/recipes-extended/libmnl/libmnl_1.0.5.bb index 66b30d7f60..d0bf658eef 100644 --- a/meta/recipes-extended/libmnl/libmnl_1.0.5.bb +++ b/meta/recipes-extended/libmnl/libmnl_1.0.5.bb | |||
@@ -6,7 +6,10 @@ SECTION = "libs" | |||
6 | LICENSE = "LGPL-2.1-or-later" | 6 | LICENSE = "LGPL-2.1-or-later" |
7 | LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c" | 7 | LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c" |
8 | 8 | ||
9 | SRC_URI = "https://netfilter.org/projects/libmnl/files/libmnl-${PV}.tar.bz2" | 9 | SRC_URI = "https://netfilter.org/projects/libmnl/files/libmnl-${PV}.tar.bz2 \ |
10 | file://0001-examples-genl-fix-wrong-attribute-size.patch \ | ||
11 | " | ||
12 | |||
10 | SRC_URI[sha256sum] = "274b9b919ef3152bfb3da3a13c950dd60d6e2bcd54230ffeca298d03b40d0525" | 13 | SRC_URI[sha256sum] = "274b9b919ef3152bfb3da3a13c950dd60d6e2bcd54230ffeca298d03b40d0525" |
11 | 14 | ||
12 | inherit autotools pkgconfig | 15 | inherit autotools pkgconfig |