1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-25 04:43:33 +00:00
freebsd-ports/net-mgmt/net-snmp
Gleb Smirnoff 3201285690 Fixing net-snmpd after src revision r317061 (struct vmmeter changes),
I discovered that net-snmpd tries to read { CTL_VM, VM_TOTAL } mib into
'struct vmmeter' variable, instead of 'struct vmtotal'.  Of course,
sysctl(3) fails, but net-snmpd doesn't check for errors.  Basicly this
is broken for all supported FreeBSD versions, and I believe for all
unsupported as well.  OIDs that report interruprs, context switches,
paging and swap in/out were returning garbage from the application
stack.

To patch that problem, provide dummy struct __vmmeter, which works
both on pre-r317061 and after, and add block of code that reads all
necessary stats one by one.  To keep with the style of the file, do
not check for errors from sysctl(3).
2017-04-20 22:16:00 +00:00
..
files Fixing net-snmpd after src revision r317061 (struct vmmeter changes), 2017-04-20 22:16:00 +00:00
distinfo
Makefile Fixing net-snmpd after src revision r317061 (struct vmmeter changes), 2017-04-20 22:16:00 +00:00
pkg-descr
pkg-plist