Home
last modified time | relevance | path

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

/device/generic/goldfish/wifi/ipv6proxy/
Dsocket.cpp32 Socket::Socket() : mState(State::New), mSocket(-1) { in Socket()
35 Socket::Socket(Socket&& other) noexcept : mState(other.mState), mSocket(other.mSocket) { in Socket()
36 other.mSocket = -1; in Socket()
41 if (mSocket != -1) { in ~Socket()
42 close(mSocket); in ~Socket()
43 mSocket = -1; in ~Socket()
49 if (mSocket != -1) { in operator =()
50 close(mSocket); in operator =()
52 mSocket = other.mSocket; in operator =()
54 other.mSocket = -1; in operator =()
[all …]
Dsocket.h62 int get() const { return mSocket; } in get()
154 int mSocket; variable
Drouter.h50 Socket mSocket; variable
Drouter.cpp47 Result res = mSocket.open(AF_NETLINK, SOCK_RAW, NETLINK_ROUTE); in init()
147 Result res = mSocket.sendTo(netlinkAddress, data, size); in sendNetlinkMessage()
/device/generic/goldfish/wifi/wifi_hal/
Dnetlink.cpp42 , mSocket(-1) { in Netlink()
48 closeIfOpen(&mSocket); in ~Netlink()
54 if (mSocket != -1) { in init()
65 mSocket = ::socket(AF_NETLINK, SOCK_DGRAM | SOCK_CLOEXEC, NETLINK_ROUTE); in init()
66 if (mSocket == -1) { in init()
74 status = ::bind(mSocket, in init()
100 fds[0].fd = mSocket; in eventLoop()
122 if (fd.fd == mSocket) { in eventLoop()
165 int bytesSent = ::send(mSocket, message.data(), message.size(), 0); in sendMessage()
Dnetlink.h52 int mSocket; variable
/device/generic/goldfish/dhcp/server/
Ddhcpserver.cpp44 Result res = mSocket.open(AF_INET, SOCK_DGRAM, IPPROTO_UDP); in init()
48 res = mSocket.enableOption(SOL_IP, IP_PKTINFO); in init()
52 res = mSocket.enableOption(SOL_SOCKET, SO_BROADCAST); in init()
57 res = mSocket.bindIp(INADDR_ANY, PORT_BOOTP_SERVER); in init()
83 fds.fd = mSocket.get(); in run()
93 Result res = mSocket.receiveFromInterface(&message, in run()
131 return mSocket.sendOnInterface(interfaceIndex, in sendMessage()
270 if (::ioctl(mSocket.get(), type, response) == -1) { in getInterfaceData()
Ddhcpserver.h65 Socket mSocket; variable
/device/generic/goldfish/dhcp/client/
Ddhcpclient.cpp72 res = mSocket.open(PF_PACKET, SOCK_DGRAM, htons(ETH_P_IP)); in init()
77 res = mSocket.bindRaw(mInterface.getIndex()); in init()
217 fds.fd = mSocket.get(); in waitAndReceive()
472 Result res = mSocket.receiveRawUdp(PORT_BOOTP_CLIENT, msg, &isValid); in receiveDhcpMessage()
530 Result res = mSocket.sendRawUdp(INADDR_ANY, in sendMessage()
Ddhcpclient.h94 Socket mSocket; variable