Home
last modified time | relevance | path

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

/external/openthread/src/posix/platform/
Dnetif.cpp238 static int sTunFd = -1; ///< Used to exchange IPv6 packets. variable
903 VerifyOrExit(sTunFd > 0); in processReceive()
920 VerifyOrExit(write(sTunFd, packet, length) == length, perror("write"); error = OT_ERROR_FAILED); in processReceive()
941 rval = read(sTunFd, packet, sizeof(packet)); in processTransmit()
1572 sTunFd = open(OPENTHREAD_POSIX_TUN_DEVICE, O_RDWR | O_CLOEXEC | O_NONBLOCK);
1573 VerifyOrDie(sTunFd >= 0, OT_EXIT_ERROR_ERRNO);
1589 VerifyOrDie(ioctl(sTunFd, TUNSETIFF, static_cast<void *>(&ifr)) == 0, OT_EXIT_ERROR_ERRNO);
1590 VerifyOrDie(ioctl(sTunFd, TUNSETLINK, ARPHRD_VOID) == 0, OT_EXIT_ERROR_ERRNO);
1607 sTunFd = SocketWithCloseExec(PF_SYSTEM, SOCK_DGRAM, SYSPROTO_CONTROL, kSocketNonBlock);
1608 VerifyOrDie(sTunFd >= 0, OT_EXIT_ERROR_ERRNO);
[all …]