Searched refs:FwmarkCommand (Results 1 – 5 of 5) sorted by relevance
/system/netd/server/ |
D | FwmarkServer.cpp | 91 static bool hasDestinationAddress(FwmarkCommand::CmdId cmdId, bool redirectSocketCalls) { in hasDestinationAddress() 93 return (cmdId == FwmarkCommand::ON_SENDTO || cmdId == FwmarkCommand::ON_CONNECT || in hasDestinationAddress() 94 cmdId == FwmarkCommand::ON_SENDMSG || cmdId == FwmarkCommand::ON_SENDMMSG || in hasDestinationAddress() 95 cmdId == FwmarkCommand::ON_CONNECT_COMPLETE); in hasDestinationAddress() 97 return (cmdId == FwmarkCommand::ON_CONNECT_COMPLETE); in hasDestinationAddress() 102 FwmarkCommand command; in processClient() 130 if (command.cmdId == FwmarkCommand::QUERY_USER_ACCESS) { in processClient() 137 if (command.cmdId == FwmarkCommand::SET_COUNTERSET) { in processClient() 141 if (command.cmdId == FwmarkCommand::DELETE_TAGDATA) { in processClient() 160 if (!FwmarkCommand::isSupportedFamily(family)) { in processClient() [all …]
|
/system/netd/client/ |
D | NetdClient.cpp | 141 FwmarkCommand command = {FwmarkCommand::ON_ACCEPT, 0, 0, 0}; in netdClientAccept4() 152 FwmarkCommand command = {FwmarkCommand::ON_CONNECT, 0, 0, 0}; in netdClientConnect() 176 FwmarkCommand command = {FwmarkCommand::ON_CONNECT_COMPLETE, /* netId (ignored) */ 0, in netdClientConnect() 187 if (FwmarkCommand::isSupportedFamily(domain) && !allowNetworkingForProcess.load()) { in netdClientSocket() 209 if ((addr != nullptr) && (FwmarkCommand::isSupportedFamily(addr->sa_family))) { in netdClientSendmmsg() 211 FwmarkCommand command = {FwmarkCommand::ON_SENDMMSG, 0, 0, 0}; in netdClientSendmmsg() 224 if ((addr != nullptr) && (FwmarkCommand::isSupportedFamily(addr->sa_family))) { in netdClientSendmsg() 226 FwmarkCommand command = {FwmarkCommand::ON_SENDMSG, 0, 0, 0}; in netdClientSendmsg() 237 if ((addr != nullptr) && (FwmarkCommand::isSupportedFamily(addr->sa_family))) { in netdClientSendto() 239 FwmarkCommand command = {FwmarkCommand::ON_SENDTO, 0, 0, 0}; in netdClientSendto() [all …]
|
D | FwmarkClient.cpp | 40 return (cmdId != FwmarkCommand::QUERY_USER_ACCESS) && in commandHasFd() 41 (cmdId != FwmarkCommand::SET_COUNTERSET) && in commandHasFd() 42 (cmdId != FwmarkCommand::DELETE_TAGDATA); in commandHasFd() 51 if (!FwmarkCommand::isSupportedFamily(family)) { in shouldSetFwmark() 73 int FwmarkClient::send(FwmarkCommand* data, int fd, FwmarkConnectInfo* connectInfo) { in send()
|
D | FwmarkClient.h | 22 struct FwmarkCommand; 37 int send(FwmarkCommand* data, int fd, FwmarkConnectInfo* connectInfo);
|
/system/netd/include/ |
D | FwmarkCommand.h | 56 struct FwmarkCommand { struct
|