Lines Matching refs:sIpFd
246 static int sIpFd = -1; ///< Used to manage IPv6 stack on Thread interface. variable
511 assert(sIpFd >= 0); in UpdateUnicast()
537 rval = ioctl(sIpFd, aIsAdded ? SIOCAIFADDR_IN6 : SIOCDIFADDR_IN6, &ifr6); in UpdateUnicast()
562 VerifyOrExit(sIpFd >= 0); in UpdateMulticast()
566 …err = setsockopt(sIpFd, IPPROTO_IPV6, (aIsAdded ? IPV6_JOIN_GROUP : IPV6_LEAVE_GROUP), &mreq, size… in UpdateMulticast()
607 VerifyOrExit(sIpFd >= 0); in SetLinkState()
610 VerifyOrExit(ioctl(sIpFd, SIOCGIFFLAGS, &ifr) == 0, perror("ioctl"); error = OT_ERROR_FAILED); in SetLinkState()
620 … VerifyOrExit(ioctl(sIpFd, SIOCSIFFLAGS, &ifr) == 0, perror("ioctl"); error = OT_ERROR_FAILED); in SetLinkState()
1602 err = ioctl(sIpFd, SIOCDIFADDR_IN6, &ifr6); in processNetifAddrEvent()
2058 VerifyOrDie(ioctl(sIpFd, SIOCSIFMTU, static_cast<void *>(&ifr)) == 0, OT_EXIT_ERROR_ERRNO);
2104 VerifyOrExit(ioctl(sIpFd, SIOCIFDESTROY, &ifr) == 0, perror("ioctl"); error = OT_ERROR_FAILED);
2222 sIpFd = SocketWithCloseExec(AF_INET6, SOCK_DGRAM, IPPROTO_IP, kSocketNonBlock);
2223 VerifyOrDie(sIpFd >= 0, OT_EXIT_ERROR_ERRNO);
2298 if (sIpFd != -1)
2300 close(sIpFd);
2301 sIpFd = -1;
2328 assert(sIpFd >= 0);