Home
last modified time | relevance | path

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

/netbsd-src/sbin/routed/
H A Dif.c682 static char *sysctl_buf; in ifinit() local
730 if (sysctl(mib, 6, sysctl_buf,&needed, 0, 0) >= 0) in ifinit()
735 free(sysctl_buf); in ifinit()
740 sysctl_buf = rtmalloc(sysctl_buf_size = needed, in ifinit()
744 ifam_lim = (struct ifa_msghdr *)(sysctl_buf + needed); in ifinit()
745 for (ifam = (struct ifa_msghdr *)sysctl_buf; in ifinit()
H A Dtable.c1049 static char *sysctl_buf; in flush_kern() local
1075 if (sysctl(mib, 6, sysctl_buf,&needed, 0, 0) >= 0) in flush_kern()
1079 free(sysctl_buf); in flush_kern()
1089 sysctl_buf = rtmalloc(sysctl_buf_size = needed, in flush_kern()
1093 lim = sysctl_buf + needed; in flush_kern()
1094 for (next = sysctl_buf; next < lim; next += rtm->rtm_msglen) { in flush_kern()
1099 (u_long)rtm, (u_long)sysctl_buf, (u_long)lim); in flush_kern()