Home
last modified time | relevance | path

Searched refs:si_fd (Results 1 – 6 of 6) sorted by relevance

/freebsd/usr.sbin/rtadvd/
H A Dcontrol.c232 if ((fd = accept(s->si_fd, (struct sockaddr *)&sun, in csock_accept()
241 close(s->si_fd); in csock_accept()
249 fd, s->si_fd); in csock_accept()
257 close(s->si_fd); in csock_close()
266 if (s->si_fd == -1) { in csock_listen()
270 if (listen(s->si_fd, SOCK_BACKLOG) == -1) { in csock_listen()
292 if ((s->si_fd = socket(PF_UNIX, SOCK_STREAM, 0)) == -1) { in csock_open()
306 close(s->si_fd); in csock_open()
310 if (bind(s->si_fd, (struct sockaddr *)&sun, sizeof(sun)) == -1) { in csock_open()
313 close(s->si_fd); in csock_open()
[all...]
H A Dif.c86 struct sockinfo sock = { .si_fd = -1, .si_name = NULL };
87 struct sockinfo rtsock = { .si_fd = -1, .si_name = NULL };
88 struct sockinfo ctrlsock = { .si_fd = -1, .si_name = _PATH_CTRL_SOCK };
679 if (setsockopt(s->si_fd, IPPROTO_IPV6, IPV6_JOIN_GROUP, &mreq, in sock_mc_join()
717 if (setsockopt(s->si_fd, IPPROTO_IPV6, IPV6_LEAVE_GROUP, &mreq, in sock_mc_leave()
756 if (setsockopt(s->si_fd, IPPROTO_IPV6, IPV6_JOIN_GROUP, in sock_mc_rr_update()
H A Drtadvd.c264 if (ctrlsock.si_fd == -1) { in main()
274 set[PFD_RAWSOCK].fd = sock.si_fd; in main()
278 set[PFD_RTSOCK].fd = rtsock.si_fd; in main()
282 set[PFD_CSOCK].fd = ctrlsock.si_fd; in main()
343 if (rtsock.si_fd != -1 && set[PFD_RTSOCK].revents & POLLIN) in main()
477 n = read(s->si_fd, msg, sizeof(msg)); in rtmsg_input()
737 if ((i = recvmsg(s->si_fd, &rcvmhdr, 0)) < 0) in rtadvd_input()
1560 if ((s->si_fd = socket(AF_INET6, SOCK_RAW, IPPROTO_ICMPV6)) < 0) { in sock_open()
1566 if (setsockopt(s->si_fd, IPPROTO_IPV6, IPV6_RECVPKTINFO, &on, in sock_open()
1574 if (setsockopt(s->si_fd, IPPROTO_IPV in sock_open()
[all...]
H A Dif.h37 int si_fd; member
/freebsd/usr.sbin/rtadvctl/
H A Drtadvctl.c202 if ((s->si_fd = socket(PF_UNIX, SOCK_STREAM, 0)) == -1) in csock_client_open()
210 if (connect(s->si_fd, (struct sockaddr *)&sun, sizeof(sun)) == -1) in csock_client_open()
269 return (cm_handler_client(s->si_fd, CM_STATE_MSG_DISPATCH, buf)); in action_plgeneric()
/freebsd/sys/contrib/openzfs/lib/libzfs/
H A Dlibzfs.abi3364 <var-decl name='si_fd' type-id='95e97e5e' visibility='default'/>