Home
last modified time | relevance | path

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

/system/netd/client/
DNetdClient.cpp108 int socketFd = libcSocket(domain, type, protocol); in netdClientSocket() local
109 if (socketFd == -1) { in netdClientSocket()
114 if (int error = setNetworkForSocket(netId, socketFd)) { in netdClientSocket()
115 return closeFdAndSetErrno(socketFd, error); in netdClientSocket()
118 return socketFd; in netdClientSocket()
140 int socketFd; in setNetworkForTarget() local
142 socketFd = libcSocket(AF_INET6, SOCK_DGRAM | SOCK_CLOEXEC, 0); in setNetworkForTarget()
144 socketFd = socket(AF_INET6, SOCK_DGRAM | SOCK_CLOEXEC, 0); in setNetworkForTarget()
146 if (socketFd < 0) { in setNetworkForTarget()
149 int error = setNetworkForSocket(netId, socketFd); in setNetworkForTarget()
[all …]
/system/netd/server/
DFwmarkServer.cpp42 int socketFd = -1; in onDataAvailable() local
43 int error = processClient(client, &socketFd); in onDataAvailable()
44 if (socketFd >= 0) { in onDataAvailable()
45 close(socketFd); in onDataAvailable()
58 int FwmarkServer::processClient(SocketClient* client, int* socketFd) { in processClient() argument
73 char cmsg[CMSG_SPACE(sizeof(*socketFd))]; in processClient()
102 cmsgh->cmsg_len == CMSG_LEN(sizeof(*socketFd))) { in processClient()
103 memcpy(socketFd, CMSG_DATA(cmsgh), sizeof(*socketFd)); in processClient()
106 if (*socketFd < 0) { in processClient()
112 if (getsockopt(*socketFd, SOL_SOCKET, SO_MARK, &fwmark.intValue, &fwmarkLen) == -1) { in processClient()
[all …]
DFwmarkServer.h38 int processClient(SocketClient* client, int* socketFd);
/system/netd/include/
DNetdClient.h28 int getNetworkForSocket(unsigned* netId, int socketFd);
29 int setNetworkForSocket(unsigned netId, int socketFd);
36 int protectFromVpn(int socketFd);
38 int setNetworkForUser(uid_t uid, int socketFd);
/system/core/libsysutils/include/sysutils/
DSocketListener.h37 SocketListener(int socketFd, bool listen);
57 void init(const char *socketName, int socketFd, bool listen, bool useCmdNum);
/system/core/libsysutils/src/
DSocketListener.cpp41 SocketListener::SocketListener(int socketFd, bool listen) { in SocketListener() argument
42 init(NULL, socketFd, listen, false); in SocketListener()
49 void SocketListener::init(const char *socketName, int socketFd, bool listen, bool useCmdNum) { in init() argument
52 mSock = socketFd; in init()