Searched refs:socketFd (Results 1 – 6 of 6) sorted by relevance
/system/netd/client/ |
D | NetdClient.cpp | 87 int socketFd = libcSocket(domain, type, protocol); in netdClientSocket() local 88 if (socketFd == -1) { in netdClientSocket() 93 if (int error = setNetworkForSocket(netId, socketFd)) { in netdClientSocket() 94 return closeFdAndSetErrno(socketFd, error); in netdClientSocket() 97 return socketFd; in netdClientSocket() 119 int socketFd; in setNetworkForTarget() local 121 socketFd = libcSocket(AF_INET6, SOCK_DGRAM | SOCK_CLOEXEC, 0); in setNetworkForTarget() 123 socketFd = socket(AF_INET6, SOCK_DGRAM | SOCK_CLOEXEC, 0); in setNetworkForTarget() 125 if (socketFd < 0) { in setNetworkForTarget() 128 int error = setNetworkForSocket(netId, socketFd); in setNetworkForTarget() [all …]
|
/system/netd/server/ |
D | FwmarkServer.cpp | 32 int socketFd = -1; in onDataAvailable() local 33 int error = processClient(client, &socketFd); in onDataAvailable() 34 if (socketFd >= 0) { in onDataAvailable() 35 close(socketFd); in onDataAvailable() 48 int FwmarkServer::processClient(SocketClient* client, int* socketFd) { in processClient() argument 62 char cmsg[CMSG_SPACE(sizeof(*socketFd))]; in processClient() 89 cmsgh->cmsg_len == CMSG_LEN(sizeof(*socketFd))) { in processClient() 90 memcpy(socketFd, CMSG_DATA(cmsgh), sizeof(*socketFd)); in processClient() 93 if (*socketFd < 0) { in processClient() 99 if (getsockopt(*socketFd, SOL_SOCKET, SO_MARK, &fwmark.intValue, &fwmarkLen) == -1) { in processClient() [all …]
|
D | FwmarkServer.h | 33 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/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 | 39 SocketListener::SocketListener(int socketFd, bool listen) { in SocketListener() argument 40 init(NULL, socketFd, listen, false); in SocketListener() 47 void SocketListener::init(const char *socketName, int socketFd, bool listen, bool useCmdNum) { in init() argument 50 mSock = socketFd; in init()
|