Rewrite of glibtop_get_netload_p()
Submitted by Martin Pieuchot
Link to original bug (#759064)
Description
Created attachment 316805 Rewrite of glibtop_get_netload_p()
The attached patch is a rewrite of glibtop_get_netload_p() to use libc's getifaddrs(3) function rather than reading kernel's memory via the libkvm.
The latter is deprecated and should be avoided. I'm trying to rid of the direct reads of the "struct ifnet" structure via this interface to facilitate kernel changes.
Could it be possible to integrate this diff?
Patch 316805, "Rewrite of glibtop_get_netload_p()":
libgtop2.diff