Lines Matching refs:sysctl
38 #include <sys/sysctl.h>
157 if (sysctl(mib, 6, NULL, &len, NULL, 0) < 0)
433 * the two sysctl calls. This should rarely happen.
435 * memory at the first sysctl, the possibility of failure on
436 * the second sysctl call is a bit higher.
439 if (sysctl(mib, nitems(mib), NULL, &len, NULL, 0) < 0) {
441 "<%s> sysctl: NET_RT_IFLIST size get failed",
449 if (sysctl(mib, nitems(mib), msg, &len, NULL, 0) < 0) {
453 "<%s> sysctl: NET_RT_IFLIST get failed",
648 if (sysctl(mib, sizeof(mib)/sizeof(mib[0]), &value, &size, NULL, 0)
650 syslog(LOG_ERR, "<%s>: failed to get ip6 sysctl(%d): %s",