Searched refs:rt_sock (Results 1 – 4 of 4) sorted by relevance
/freebsd/sbin/routed/ |
H A D | main.c | 77 int rt_sock; /* routing socket */ variable 284 rt_sock = socket(AF_ROUTE, SOCK_RAW, 0); in main() 285 if (rt_sock < 0) in main() 287 if (fcntl(rt_sock, F_SETFL, O_NONBLOCK) == -1) in main() 290 if (setsockopt(rt_sock, SOL_SOCKET,SO_USELOOPBACK, in main() 496 if (FD_ISSET(rt_sock, &ibits)) { in main() 552 FD_SET(rt_sock, &fdbits); in fix_select() 553 if (sock_max <= rt_sock) in fix_select() 554 sock_max = rt_sock+1; in fix_select()
|
H A D | defs.h | 425 extern int rt_sock; /* routing socket */
|
H A D | table.c | 722 cc = write(rt_sock, &w, w.w_rtm.rtm_msglen); in rtioctl() 1161 cc = read(rt_sock, &m, sizeof(m)); in read_rt()
|
H A D | if.c | 869 if (ioctl(rt_sock, SIOCGIFMETRIC, &ifr) < 0) { in ifinit()
|