Home
last modified time | relevance | path

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

/device/generic/goldfish/network/netmgr/
Dmonitor.cpp31 Monitor::Monitor() : mSocketFd(-1) { in Monitor()
57 int status = ::recvfrom(mSocketFd, in onReadAvailable()
113 if (mSocketFd != -1) { in getPollData()
114 fds->push_back(pollfd{mSocketFd, POLLIN, 0}); in getPollData()
123 if (mSocketFd != -1) { in openSocket()
127 mSocketFd = ::socket(AF_NETLINK, SOCK_DGRAM | SOCK_CLOEXEC, NETLINK_ROUTE); in openSocket()
128 if (mSocketFd == -1) { in openSocket()
139 if (::bind(mSocketFd, sa, sizeof(addr)) != 0) { in openSocket()
148 if (mSocketFd == -1) { in requestInterfaces()
166 ssize_t result = TEMP_FAILURE_RETRY(::send(mSocketFd, in requestInterfaces()
[all …]
Dbridge.cpp33 if (mSocketFd != -1) { in ~Bridge()
34 ::close(mSocketFd); in ~Bridge()
35 mSocketFd = -1; in ~Bridge()
60 if (mSocketFd != -1) { in createSocket()
63 mSocketFd = ::socket(AF_INET, SOCK_DGRAM | SOCK_CLOEXEC, 0); in createSocket()
64 if (mSocketFd < 0) { in createSocket()
72 int res = ::ioctl(mSocketFd, SIOCBRADDBR, mBridgeName.c_str()); in createBridge()
92 res = ::ioctl(mSocketFd, SIOCGIFFLAGS, &request); in createBridge()
105 res = ::ioctl(mSocketFd, SIOCSIFFLAGS, &request); in createBridge()
126 int res = ::ioctl(mSocketFd, operation, &request); in doInterfaceOperation()
Dbridge.h40 int mSocketFd = -1; variable
Dmonitor.h53 int mSocketFd; variable
/device/generic/goldfish/dhcp/client/
Dinterface.cpp39 Interface::Interface() : mSocketFd(-1) { in Interface()
43 if (mSocketFd != -1) { in ~Interface()
44 close(mSocketFd); in ~Interface()
45 mSocketFd = -1; in ~Interface()
52 if (mSocketFd != -1) { in init()
56 mSocketFd = ::socket(AF_NETLINK, SOCK_RAW | SOCK_CLOEXEC, NETLINK_ROUTE); in init()
57 if (mSocketFd == -1) { in init()
98 int status = ::ioctl(mSocketFd, SIOCSIFMTU, &request); in setMtu()
139 int status = ::sendto(mSocketFd, &request, request.hdr.nlmsg_len, 0, in setAddress()
147 status = ::recv(mSocketFd, buffer, sizeof(buffer), 0); in setAddress()
[all …]
Drouter.cpp27 Router::Router() : mSocketFd(-1) { in Router()
31 if (mSocketFd != -1) { in ~Router()
32 ::close(mSocketFd); in ~Router()
33 mSocketFd = -1; in ~Router()
39 mSocketFd = ::socket(AF_NETLINK, SOCK_RAW, NETLINK_ROUTE); in init()
40 if (mSocketFd == -1) { in init()
78 int res = ::sendto(mSocketFd, data, size, 0, in sendNetlinkMessage()
Drouter.h42 int mSocketFd; variable
Dinterface.h52 int mSocketFd; variable
/device/generic/goldfish/dhcp/common/
Dsocket.cpp64 Socket::Socket() : mSocketFd(-1) { in Socket()
68 if (mSocketFd != -1) { in ~Socket()
69 ::close(mSocketFd); in ~Socket()
70 mSocketFd = -1; in ~Socket()
76 if (mSocketFd != -1) { in open()
79 mSocketFd = ::socket(domain, type, protocol); in open()
80 if (mSocketFd == -1) { in open()
87 if (mSocketFd == -1) { in bind()
91 int status = ::bind(mSocketFd, in bind()
125 if (mSocketFd == -1) { in sendOnInterface()
[all …]
/device/generic/goldfish/radio/ril/
Dipv6_monitor.cpp136 int mSocketFd; member in Ipv6Monitor
145 mSocketFd(-1) { in Ipv6Monitor()
158 if (mSocketFd != -1) { in ~Ipv6Monitor()
159 ::close(mSocketFd); in ~Ipv6Monitor()
160 mSocketFd = -1; in ~Ipv6Monitor()
165 if (mSocketFd != -1) { in init()
176 mSocketFd = ::socket(AF_PACKET, SOCK_DGRAM | SOCK_CLOEXEC, ETH_P_IPV6); in init()
177 if (mSocketFd == -1) { in init()
199 int status = ::ioctl(mSocketFd, SIOCGIFFLAGS, &request); in initInterfaces()
219 status = ::ioctl(mSocketFd, SIOCSIFFLAGS, &request); in initInterfaces()
[all …]
Dif_monitor.cpp86 InterfaceMonitor() : mSocketFd(-1) { in InterfaceMonitor()
101 if (mSocketFd != -1) { in ~InterfaceMonitor()
102 ::close(mSocketFd); in ~InterfaceMonitor()
103 mSocketFd = -1; in ~InterfaceMonitor()
108 if (mSocketFd != -1) { in init()
113 mSocketFd = ::socket(AF_NETLINK, in init()
116 if (mSocketFd == -1) { in init()
133 if (::bind(mSocketFd, sa, sizeof(addr)) != 0) { in init()
225 fds[1].fd = mSocketFd; in run()
278 int status = ::recvfrom(mSocketFd, in onReadAvailable()
[all …]
/device/generic/goldfish/dhcp/common/include/
Dsocket.h33 int get() const { return mSocketFd; } in get()
76 int mSocketFd;