Lines Matching refs:rt_sock
66 static int rt_sock = -1;
1100 pfroute_event_is_interesting(int rt_sock)
1108 if ((nbytes = read(rt_sock, msg, sizeof (msg))) <= 0)
1177 if (pe.portev_object == rt_sock) {
1184 rt_sock, POLLIN, NULL) != 0) {
1195 if (pfroute_event_is_interesting(rt_sock)) {
1307 if ((rt_sock = socket(PF_ROUTE, SOCK_RAW, 0)) < 0) {
1314 if (fcntl(rt_sock, F_SETFL, O_NDELAY|O_NONBLOCK) < 0) {
1317 (void) close(rt_sock);
1323 rt_sock, POLLIN, NULL) != 0) {
1326 (void) close(rt_sock);
1335 (void) port_dissociate(idmapd_ev_port, PORT_SOURCE_FD, rt_sock);
1336 (void) close(rt_sock);