Home
last modified time | relevance | path

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

/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/dhcp/common/include/
Dsocket.h33 int get() const { return mSocketFd; } in get()
76 int mSocketFd;