Searched refs:link_fd (Results 1 – 5 of 5) sorted by relevance
| /netbsd-src/external/bsd/dhcpcd/dist/src/ |
| H A D | if-bsd.c | 182 ctx->link_fd = xsocket(PF_ROUTE, SOCK_RAW | SOCK_CXNB, AF_UNSPEC); in if_opensockets_os() 183 if (ctx->link_fd == -1) in if_opensockets_os() 188 if (setsockopt(ctx->link_fd, SOL_SOCKET, SO_RERROR, &n,sizeof(n)) == -1) in if_opensockets_os() 196 if (setsockopt(ctx->link_fd, SOL_SOCKET, SO_USELOOPBACK, in if_opensockets_os() 206 if (setsockopt(ctx->link_fd, SOL_SOCKET, SO_RCVBUF, in if_opensockets_os() 213 if (setsockopt(ctx->link_fd, PF_ROUTE, RO_MSGFILTER, in if_opensockets_os() 221 if (setsockopt(ctx->link_fd, PF_ROUTE, ROUTE_MSGFILTER, in if_opensockets_os() 232 ps_rights_limit_fd_sockopt(ctx->link_fd); in if_opensockets_os() 844 if (write(ctx->link_fd, rtm, rtm->rtm_msglen) == -1) in if_route() 1617 return setsockopt(ctx->link_fd, PF_ROUTE, RO_MISSFILTER, in if_missfilter_apply() [all …]
|
| H A D | if.c | 135 if (ctx->link_fd != -1) { in if_closesockets() 136 eloop_event_delete(ctx->eloop, ctx->link_fd); in if_closesockets() 137 close(ctx->link_fd); in if_closesockets() 138 ctx->link_fd = -1; in if_closesockets()
|
| H A D | dhcpcd.h | 154 int link_fd; member
|
| H A D | dhcpcd.c | 1176 if (setsockopt(ctx->link_fd, SOL_SOCKET, in dhcpcd_setlinkrcvbuf() 1204 if (getsockopt(ctx->link_fd, SOL_SOCKET, in dhcpcd_linkoverflow() 1221 rlen = read(ctx->link_fd, buf, sizeof(buf)); in dhcpcd_linkoverflow() 1989 ctx.control_fd = ctx.control_unpriv_fd = ctx.link_fd = -1; in main() 2543 if (eloop_event_add(ctx.eloop, ctx.link_fd, ELE_READ, in main()
|
| H A D | privsep-bsd.c | 142 return write(ctx->link_fd, data, len); in ps_root_doroute()
|