mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-17 03:25:46 +00:00
3201285690
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). |
||
---|---|---|
.. | ||
files | ||
distinfo | ||
Makefile | ||
pkg-descr | ||
pkg-plist |