diff options
author | glebius <glebius@FreeBSD.org> | 2017-04-21 06:16:00 +0800 |
---|---|---|
committer | glebius <glebius@FreeBSD.org> | 2017-04-21 06:16:00 +0800 |
commit | 6ffac0147ba5794d37625dbf08dead12032b30a4 (patch) | |
tree | 59a4a72fc918cc0fadf66c93407d0ca496c40eef /MOVED | |
parent | e7b7ae1a5d2abec5cb66f4aafca5c708b70821ef (diff) | |
download | freebsd-ports-gnome-6ffac0147ba5794d37625dbf08dead12032b30a4.tar.gz freebsd-ports-gnome-6ffac0147ba5794d37625dbf08dead12032b30a4.tar.zst freebsd-ports-gnome-6ffac0147ba5794d37625dbf08dead12032b30a4.zip |
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).
Diffstat (limited to 'MOVED')
0 files changed, 0 insertions, 0 deletions