Searched defs:rt_sock (Results 1 - 3 of 3) sorted by relevance

/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/in.routed/
H A Dmain.c97 int rt_sock; /* routing socket */ variable
350 rt_sock = socket(PF_ROUTE, SOCK_RAW, AF_INET);
351 if (rt_sock < 0)
352 BADERR(_B_TRUE, "rt_sock = socket()");
353 if (fcntl(rt_sock, F_SETFL, O_NONBLOCK) == -1)
354 logbad(_B_TRUE, "fcntl(rt_sock) O_NONBLOCK: %s",
357 if (setsockopt(rt_sock, SOL_SOCKET, SO_USELOOPBACK,
595 if (FD_ISSET(rt_sock, &ibits)) {
656 FD_SET(rt_sock, &fdbits);
657 if (sock_max <= rt_sock)
[all...]
/illumos-gate/usr/src/cmd/nscd/
H A Dnscd_frontend.c1468 int rt_sock, rdlen, idx; local
1480 rt_sock = socket(PF_ROUTE, SOCK_RAW, 0);
1481 if (rt_sock < 0) {
1488 rdlen = read(rt_sock, &mbuf, sizeof (mbuf));
/illumos-gate/usr/src/cmd/idmap/idmapd/
H A Didmap_config.c95 static int rt_sock = -1; variable
1205 pfroute_event_is_interesting(int rt_sock) argument
1213 if ((nbytes = read(rt_sock, msg, sizeof (msg))) <= 0)
1286 if (pe.portev_object == rt_sock) {
1293 rt_sock, POLLIN, NULL) != 0) {
1304 if (pfroute_event_is_interesting(rt_sock)) {
1442 if ((rt_sock = socket(PF_ROUTE, SOCK_RAW, 0)) < 0) {
1449 if (fcntl(rt_sock, F_SETFL, O_NDELAY|O_NONBLOCK) < 0) {
1452 (void) close(rt_sock);
1458 rt_sock, POLLI
[all...]

Completed in 52 milliseconds