Home
last modified time | relevance | path

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

/external/openthread/src/posix/platform/
Dnetif.cpp239 static int sIpFd = -1; ///< Used to manage IPv6 stack on Thread interface. variable
443 assert(sIpFd >= 0); in UpdateUnicast()
468 rval = ioctl(sIpFd, aIsAdded ? SIOCAIFADDR_IN6 : SIOCDIFADDR_IN6, &ifr6); in UpdateUnicast()
494 VerifyOrExit(sIpFd >= 0); in UpdateMulticast()
498 …err = setsockopt(sIpFd, IPPROTO_IPV6, (aIsAdded ? IPV6_JOIN_GROUP : IPV6_LEAVE_GROUP), &mreq, size… in UpdateMulticast()
539 VerifyOrExit(sIpFd >= 0); in UpdateLink()
542 VerifyOrExit(ioctl(sIpFd, SIOCGIFFLAGS, &ifr) == 0, perror("ioctl"); error = OT_ERROR_FAILED); in UpdateLink()
553 … VerifyOrExit(ioctl(sIpFd, SIOCSIFFLAGS, &ifr) == 0, perror("ioctl"); error = OT_ERROR_FAILED); in UpdateLink()
1289 err = ioctl(sIpFd, SIOCDIFADDR_IN6, &ifr6); in processNetifAddrEvent()
1595 VerifyOrDie(ioctl(sIpFd, SIOCSIFMTU, static_cast<void *>(&ifr)) == 0, OT_EXIT_ERROR_ERRNO);
[all …]