Lines Matching refs:mib
169 int mib[6]; in updatestat() local
190 mib[0] = CTL_KERN; in updatestat()
191 mib[1] = KERN_CLOCKRATE; in updatestat()
193 if (sysctl(mib, 2, &clockrate, &len, 0, 0) < 0) { in updatestat()
213 mib[0] = CTL_KERN; in updatestat()
214 mib[1] = KERN_BOOTTIME; in updatestat()
216 if (sysctl(mib, 2, &btm, &len, 0, 0) < 0) { in updatestat()
252 mib[0] = CTL_NET; in updatestat()
253 mib[1] = PF_LINK; in updatestat()
254 mib[2] = NETLINK_GENERIC; in updatestat()
255 mib[3] = IFMIB_SYSTEM; in updatestat()
256 mib[4] = IFMIB_IFCOUNT; in updatestat()
258 if (sysctl(mib, 5, &ifcount, &len, 0, 0) < 0) { in updatestat()
270 mib[3] = IFMIB_IFDATA; in updatestat()
271 mib[4] = i; in updatestat()
272 mib[5] = IFDATA_GENERAL; in updatestat()
273 if (sysctl(mib, 6, &ifmd, &len, 0, 0) < 0) { in updatestat()