Home
last modified time | relevance | path

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

/openthread-latest/src/posix/platform/
Dnetif.cpp246 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);
[all …]