void-linux / void-linux/void-packages

net-snmp 5.9.1 unexpected header length

Open
#59,505 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug needs-testing
Dominant language
Shell
Stars
3.4k
Forks
2.8k
Avg merge
2d 5h
Merged PRs (30d)
299

Description

Is this a new report?

Yes

System Info

Void 6.12.77_1 x86_64 GenuineIntel uptodate rr

Package(s) Affected

net-snmp-5.9.1_6

Does a report exist for this bug with the project's home (upstream) and/or another distro?

https://github.com/net-snmp/net-snmp/pull/785

Expected behaviour

The package is supposed to use the correct header length for the current Linux kernel

Actual behaviour

The package uses an incorrect header length suitable for pre-6.7 kernel but not 6.7 or later kernels. Logs the following error in /var/log/snmpd.log

systemstats_linux: unexpected header length in /proc/net/snmp. 237 != 224

Steps to reproduce
  1. Create a runit service for snmpd
  2. Start service on Void Linux with 6.12.77 kernel
  3. cat /var/log/snmpd.log

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the net-snmp-5.9.1_6 package and upstream pull request #785, then reproduce the issue on Void Linux with kernel 6.12.77 and inspect /var/log/snmpd.log. Done means snmpd uses the correct header length for current Linux kernels and no longer logs the unexpected-header-length error.

Written by the indexing model from the issue text.

Assessment

Tech stack
linux
Domain
networking
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.