Searched refs:rt_sock (Results 1 - 4 of 4) sorted by relevance

/netbsd-6-1-5-RELEASE/sbin/routed/
H A Dmain.c96 int rt_sock; /* routing socket */ variable
307 rt_sock = socket(AF_ROUTE, SOCK_RAW, 0);
308 if (rt_sock < 0)
309 BADERR(1,"rt_sock = socket()");
310 if (fcntl(rt_sock, F_SETFL, O_NONBLOCK) == -1)
311 logbad(1, "fcntl(rt_sock) O_NONBLOCK: %s", strerror(errno));
313 if (setsockopt(rt_sock, SOL_SOCKET,SO_USELOOPBACK,
526 if (FD_ISSET(rt_sock, ibitsp)) {
578 if (sock_max <= rt_sock)
579 sock_max = rt_sock
[all...]
H A Ddefs.h473 extern int rt_sock; /* routing socket */
H A Dtable.c736 cc = write(rt_sock, &w, w.w_rtm.rtm_msglen);
747 msglog("write(rt_sock)" PAT ": %s", ARGS, strerror(errno));
750 msglog("write(rt_sock) wrote %ld instead of %d for" PAT,
1179 cc = read(rt_sock, &m, sizeof(m));
1182 LOGERR("read(rt_sock)");
H A Dif.c918 if (ioctl(rt_sock, SIOCGIFMETRIC, &ifr) < 0) {

Completed in 106 milliseconds