Home
last modified time | relevance | path

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

/external/chromium/net/base/
Dnetwork_change_notifier_linux.cc55 int netlink_fd_; member in net::NetworkChangeNotifierLinux::Thread
66 netlink_fd_(kInvalidSocket), in Thread()
72 netlink_fd_ = InitializeNetlinkSocket(); in Init()
73 if (netlink_fd_ < 0) { in Init()
74 netlink_fd_ = kInvalidSocket; in Init()
81 if (netlink_fd_ != kInvalidSocket) { in CleanUp()
82 if (HANDLE_EINTR(close(netlink_fd_)) != 0) in CleanUp()
84 netlink_fd_ = kInvalidSocket; in CleanUp()
90 DCHECK_EQ(fd, netlink_fd_); in OnFileCanReadWithoutBlocking()
124 rv = MessageLoopForIO::current()->WatchFileDescriptor(netlink_fd_, false, in ListenForNotifications()
[all …]
/external/chromium_org/net/base/
Daddress_tracker_linux.cc74 netlink_fd_(-1), in AddressTrackerLinux()
87 netlink_fd_ = socket(AF_NETLINK, SOCK_RAW, NETLINK_ROUTE); in Init()
88 if (netlink_fd_ < 0) { in Init()
101 int rv = bind(netlink_fd_, in Init()
125 rv = HANDLE_EINTR(sendto(netlink_fd_, &request, request.header.nlmsg_len, in Init()
143 rv = HANDLE_EINTR(sendto(netlink_fd_, &request, request.header.nlmsg_len, 0, in Init()
161 netlink_fd_, true, base::MessageLoopForIO::WATCH_READ, &watcher_, this); in Init()
204 int rv = HANDLE_EINTR(recv(netlink_fd_, in ReadMessages()
296 DCHECK_EQ(netlink_fd_, fd); in OnFileCanReadWithoutBlocking()
309 if (netlink_fd_ >= 0 && IGNORE_EINTR(close(netlink_fd_)) < 0) in CloseSocket()
[all …]
Daddress_tracker_linux.h81 int netlink_fd_; variable