Searched refs:mSocket (Results 1 – 10 of 10) sorted by relevance
/device/generic/goldfish/wifi/ipv6proxy/ |
D | socket.cpp | 32 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 …]
|
D | socket.h | 62 int get() const { return mSocket; } in get() 154 int mSocket; variable
|
D | router.h | 50 Socket mSocket; variable
|
D | router.cpp | 47 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/ |
D | netlink.cpp | 42 , 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()
|
D | netlink.h | 52 int mSocket; variable
|
/device/generic/goldfish/dhcp/server/ |
D | dhcpserver.cpp | 44 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()
|
D | dhcpserver.h | 65 Socket mSocket; variable
|
/device/generic/goldfish/dhcp/client/ |
D | dhcpclient.cpp | 72 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()
|
D | dhcpclient.h | 94 Socket mSocket; variable
|