Home
last modified time | relevance | path

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

/external/openthread/src/posix/platform/
Dnetif.cpp240 static int sNetlinkFd = -1; ///< Used to receive netlink events. variable
423 if (send(sNetlinkFd, &req, req.nh.nlmsg_len, 0) != -1) in UpdateUnicastLinux()
585 VerifyOrExit(sNetlinkFd >= 0, error = OT_ERROR_INVALID_STATE); in AddRoute()
610 if (send(sNetlinkFd, &req, sizeof(req), 0) < 0) in AddRoute()
634 VerifyOrExit(sNetlinkFd >= 0, error = OT_ERROR_INVALID_STATE); in DeleteRoute()
658 if (send(sNetlinkFd, &req, sizeof(req), 0) < 0) in DeleteRoute()
1395 length = recv(sNetlinkFd, msgBuffer.buffer, sizeof(msgBuffer.buffer), 0);
1686 sNetlinkFd = SocketWithCloseExec(AF_NETLINK, SOCK_DGRAM, NETLINK_ROUTE, kSocketNonBlock);
1688 sNetlinkFd = SocketWithCloseExec(PF_ROUTE, SOCK_RAW, 0, kSocketNonBlock);
1692 VerifyOrDie(sNetlinkFd >= 0, OT_EXIT_ERROR_ERRNO);
[all …]