Searched refs:mSocketFd (Results 1 – 6 of 6) sorted by relevance
/device/generic/goldfish/dhcp/client/ |
D | interface.cpp | 39 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 …]
|
D | router.cpp | 27 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()
|
D | router.h | 42 int mSocketFd; variable
|
D | interface.h | 52 int mSocketFd; variable
|
/device/generic/goldfish/dhcp/common/ |
D | socket.cpp | 64 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/dhcp/common/include/ |
D | socket.h | 33 int get() const { return mSocketFd; } in get() 76 int mSocketFd;
|