netsnmp: unexpected header length in /proc/net/snmp. 237 != 224
Check-list
-
I did not find the issue in the existing issues -
I can reproduce the issue with unmodified Buildroot from this repository, not from a fork somewhere else -
I can reproduce the issue on the latest commit of the branch I'm using: -
LTS (i.e. 2025.02)
-
-
I can reproduce the issue after running make clean; make
What happens
The version of the netsnmp package is unable to read from /pron/net/snmp after it was updated in more recent versions of the Linux kernel. The error that is produced shows systemstats_linux: unexpected header length in /proc/net/snmp. 237 != 224.
What was expected
Proper loading of the /proc/net/snmp information without error.
Extra information
This was a known netsnmp issue which was resolved by 786. Creating a patch and applying it resolves this for newer versions of the kernel. The latest release (5.9.4) does not contain the fix and it is currently targeted at the 5.10 release.