Home
last modified time | relevance | path

Searched refs:routesock (Results 1 – 7 of 7) sorted by relevance

/openbsd/sbin/resolvd/
H A Dresolvd.c164 int kq, ch, debug = 0, routesock; in main() local
214 if ((routesock = socket(AF_ROUTE, SOCK_RAW, 0)) == -1) in main()
218 if (setsockopt(routesock, AF_ROUTE, ROUTE_MSGFILTER, &rtfilter, in main()
222 solicit_dns_proposals(routesock); in main()
255 if (routesock != -1) in main()
256 EV_SET(&kev[kevi++], routesock, EVFILT_READ, in main()
293 route_receive(routesock); in main()
556 solicit_dns_proposals(int routesock) in solicit_dns_proposals() argument
575 if (writev(routesock, iov, iovcnt) == -1) in solicit_dns_proposals()
/openbsd/sbin/slaacd/
H A Dslaacd.c91 int routesock, ioctl_sock, rtm_seq = 0; variable
213 if ((routesock = socket(AF_ROUTE, SOCK_RAW | SOCK_CLOEXEC | in main()
216 shutdown(routesock, SHUT_RD); in main()
800 if (writev(routesock, iov, iovcnt) == -1) in configure_gateway()
855 if (writev(routesock, iov, iovcnt) == -1) in send_rdns_proposal()
/openbsd/sbin/unwind/
H A Dunwind.c85 int routesock; variable
282 if ((routesock = socket(AF_ROUTE, SOCK_RAW | SOCK_CLOEXEC | in main()
285 shutdown(routesock, SHUT_RD); in main()
867 if (writev(routesock, iov, iovcnt) == -1) in solicit_dns_proposals()
H A Dfrontend.c436 static int routesock = -1; in frontend_dispatch_main() local
438 if (routesock != -1) in frontend_dispatch_main()
445 routesock = fd; in frontend_dispatch_main()
/openbsd/sbin/dhcpleased/
H A Ddhcpleased.c106 int routesock, ioctl_sock, rtm_seq, no_lease_files; variable
255 if ((routesock = socket(AF_ROUTE, SOCK_RAW | SOCK_CLOEXEC | in main()
258 shutdown(routesock, SHUT_RD); in main()
1153 if (writev(routesock, iov, iovcnt) == -1) { in configure_route()
1233 if (writev(routesock, iov, iovcnt) == -1) in propose_rdns()
/openbsd/sbin/dhcp6leased/
H A Ddhcp6leased.c98 int routesock, ioctl_sock, rtm_seq, no_lease_files; variable
242 if ((routesock = socket(AF_ROUTE, SOCK_RAW | SOCK_CLOEXEC | in main()
245 shutdown(routesock, SHUT_RD); in main()
/openbsd/usr.sbin/rad/
H A Dfrontend.c172 int ioctlsock = -1, routesock = -1; variable
491 if (routesock != -1) in frontend_dispatch_main()
494 if ((routesock = imsg_get_fd(&imsg)) == -1) in frontend_dispatch_main()
498 event_set(&ev_route, routesock, EV_READ | EV_PERSIST, in frontend_dispatch_main()