Searched refs:socketFd (Results 1 – 6 of 6) sorted by relevance
/system/netd/client/ |
D | NetdClient.cpp | 108 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/ |
D | FwmarkServer.cpp | 42 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 …]
|
D | FwmarkServer.h | 38 int processClient(SocketClient* client, int* socketFd);
|
/system/netd/include/ |
D | NetdClient.h | 28 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/ |
D | SocketListener.h | 37 SocketListener(int socketFd, bool listen); 57 void init(const char *socketName, int socketFd, bool listen, bool useCmdNum);
|
/system/core/libsysutils/src/ |
D | SocketListener.cpp | 41 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()
|