Home
last modified time | relevance | path

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

/device/generic/goldfish/dhcp/client/
Dinterface.cpp26 Interface::Interface() : mSocketFd(-1) { in Interface()
30 if (mSocketFd != -1) { in ~Interface()
31 close(mSocketFd); in ~Interface()
32 mSocketFd = -1; in ~Interface()
39 if (mSocketFd != -1) { in init()
43 mSocketFd = ::socket(AF_INET, SOCK_DGRAM | SOCK_CLOEXEC, IPPROTO_IP); in init()
44 if (mSocketFd == -1) { in init()
85 int status = ::ioctl(mSocketFd, SIOCSIFMTU, &request); in setMtu()
104 int status = ::ioctl(mSocketFd, SIOCSIFADDR, &request); in setAddress()
121 int status = ::ioctl(mSocketFd, SIOCSIFNETMASK, &request); in setSubnetMask()
[all …]
Drouter.cpp44 Router::Router() : mSocketFd(-1) { in Router()
48 if (mSocketFd != -1) { in ~Router()
49 ::close(mSocketFd); in ~Router()
50 mSocketFd = -1; in ~Router()
56 mSocketFd = ::socket(AF_NETLINK, SOCK_RAW, NETLINK_ROUTE); in init()
57 if (mSocketFd == -1) { in init()
95 int res = ::sendto(mSocketFd, data, size, 0, in sendNetlinkMessage()
Drouter.h42 int mSocketFd; variable
Dinterface.h53 int mSocketFd; variable
/device/generic/goldfish/network/netmgr/
Dmonitor.cpp31 Monitor::Monitor() : mSocketFd(-1) { in Monitor()
53 int status = ::recvfrom(mSocketFd, in onReadAvailable()
109 if (mSocketFd != -1) { in getPollData()
110 fds->push_back(pollfd{mSocketFd, POLLIN, 0}); in getPollData()
119 if (mSocketFd != -1) { in openSocket()
123 mSocketFd = ::socket(AF_NETLINK, SOCK_DGRAM | SOCK_CLOEXEC, NETLINK_ROUTE); in openSocket()
124 if (mSocketFd == -1) { in openSocket()
135 if (::bind(mSocketFd, sa, sizeof(addr)) != 0) { in openSocket()
144 if (mSocketFd != -1) { in closeSocket()
145 ::close(mSocketFd); in closeSocket()
[all …]
Dmonitor.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 …]
Dsocket.h33 int get() const { return mSocketFd; } in get()
76 int mSocketFd;
/device/generic/goldfish/ril/
Dif_monitor.cpp71 InterfaceMonitor() : mSocketFd(-1) { in InterfaceMonitor()
86 if (mSocketFd != -1) { in ~InterfaceMonitor()
87 ::close(mSocketFd); in ~InterfaceMonitor()
88 mSocketFd = -1; in ~InterfaceMonitor()
93 if (mSocketFd != -1) { in init()
98 mSocketFd = ::socket(AF_NETLINK, in init()
101 if (mSocketFd == -1) { in init()
118 if (::bind(mSocketFd, sa, sizeof(addr)) != 0) { in init()
148 int status = ::send(mSocketFd, &request, request.hdr.nlmsg_len, 0); in requestAddress()
167 fds[1].fd = mSocketFd; in run()
[all …]