Lines Matching refs:mib
162 int mib[6]; in updatestat() local
183 mib[0] = CTL_KERN; in updatestat()
184 mib[1] = KERN_CLOCKRATE; in updatestat()
186 if (sysctl(mib, 2, &clockrate, &len, 0, 0) < 0) { in updatestat()
206 mib[0] = CTL_KERN; in updatestat()
207 mib[1] = KERN_BOOTTIME; in updatestat()
209 if (sysctl(mib, 2, &btm, &len, 0, 0) < 0) { in updatestat()
245 mib[0] = CTL_NET; in updatestat()
246 mib[1] = PF_LINK; in updatestat()
247 mib[2] = NETLINK_GENERIC; in updatestat()
248 mib[3] = IFMIB_SYSTEM; in updatestat()
249 mib[4] = IFMIB_IFCOUNT; in updatestat()
251 if (sysctl(mib, 5, &ifcount, &len, 0, 0) < 0) { in updatestat()
263 mib[3] = IFMIB_IFDATA; in updatestat()
264 mib[4] = i; in updatestat()
265 mib[5] = IFDATA_GENERAL; in updatestat()
266 if (sysctl(mib, 6, &ifmd, &len, 0, 0) < 0) { in updatestat()