Home
last modified time | relevance | path

Searched refs:sysctl_buf (Results 1 – 2 of 2) sorted by relevance

/NextBSD/sbin/routed/
HDif.c645 static struct ifa_msghdr *sysctl_buf; in ifinit() local
694 if (sysctl(mib, 6, sysctl_buf,&needed, 0, 0) >= 0) in ifinit()
699 free(sysctl_buf); in ifinit()
704 sysctl_buf = rtmalloc(sysctl_buf_size = needed, in ifinit()
709 ifam_lim = (char *)sysctl_buf + needed; in ifinit()
710 for (ifam = sysctl_buf; (void *)ifam < ifam_lim; ifam = ifam2) { in ifinit()
HDtable.c1042 static char *sysctl_buf; in flush_kern() local
1068 if (sysctl(mib, 6, sysctl_buf,&needed, 0, 0) >= 0) in flush_kern()
1072 free(sysctl_buf); in flush_kern()
1082 sysctl_buf = rtmalloc(sysctl_buf_size = needed, in flush_kern()
1086 lim = sysctl_buf + needed; in flush_kern()
1087 for (next = sysctl_buf; next < lim; next += rtm->rtm_msglen) { in flush_kern()
1092 (u_long)rtm, (u_long)sysctl_buf, (u_long)lim); in flush_kern()