Lines Matching refs:si_fd
264 if (ctrlsock.si_fd == -1) {
274 set[PFD_RAWSOCK].fd = sock.si_fd;
278 set[PFD_RTSOCK].fd = rtsock.si_fd;
282 set[PFD_CSOCK].fd = ctrlsock.si_fd;
343 if (rtsock.si_fd != -1 && set[PFD_RTSOCK].revents & POLLIN)
477 n = read(s->si_fd, msg, sizeof(msg));
737 if ((i = recvmsg(s->si_fd, &rcvmhdr, 0)) < 0)
1560 if ((s->si_fd = socket(AF_INET6, SOCK_RAW, IPPROTO_ICMPV6)) < 0) {
1566 if (setsockopt(s->si_fd, IPPROTO_IPV6, IPV6_RECVPKTINFO, &on,
1574 if (setsockopt(s->si_fd, IPPROTO_IPV6, IPV6_RECVHOPLIMIT, &on,
1586 if (setsockopt(s->si_fd, IPPROTO_ICMPV6, ICMP6_FILTER, &filt,
1619 if ((s->si_fd = socket(PF_ROUTE, SOCK_RAW, 0)) < 0) {
1756 i = sendmsg(sock.si_fd, &sndmhdr, 0);