aboutsummaryrefslogtreecommitdiffstats
path: root/lang/oo2c
diff options
context:
space:
mode:
authorglebius <glebius@FreeBSD.org>2017-04-21 06:16:00 +0800
committerglebius <glebius@FreeBSD.org>2017-04-21 06:16:00 +0800
commit6ffac0147ba5794d37625dbf08dead12032b30a4 (patch)
tree59a4a72fc918cc0fadf66c93407d0ca496c40eef /lang/oo2c
parente7b7ae1a5d2abec5cb66f4aafca5c708b70821ef (diff)
downloadfreebsd-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 'lang/oo2c')
0 files changed, 0 insertions, 0 deletions