Home
last modified time | relevance | path

Searched refs:FwmarkCommand (Results 1 – 5 of 5) sorted by relevance

/system/netd/server/
DFwmarkServer.cpp85 FwmarkCommand command; in processClient()
111 if (!((command.cmdId != FwmarkCommand::ON_CONNECT_COMPLETE && messageLength == sizeof(command)) in processClient()
112 || (command.cmdId == FwmarkCommand::ON_CONNECT_COMPLETE in processClient()
119 if (command.cmdId == FwmarkCommand::QUERY_USER_ACCESS) { in processClient()
126 if (command.cmdId == FwmarkCommand::SET_COUNTERSET) { in processClient()
130 if (command.cmdId == FwmarkCommand::DELETE_TAGDATA) { in processClient()
149 if (!FwmarkCommand::isSupportedFamily(family)) { in processClient()
160 case FwmarkCommand::ON_ACCEPT: { in processClient()
167 case FwmarkCommand::ON_CONNECT: { in processClient()
211 case FwmarkCommand::ON_CONNECT_COMPLETE: { in processClient()
[all …]
/system/netd/client/
DNetdClient.cpp111 FwmarkCommand command = {FwmarkCommand::ON_ACCEPT, 0, 0, 0}; in netdClientAccept4()
122 FwmarkCommand command = {FwmarkCommand::ON_CONNECT, 0, 0, 0}; in netdClientConnect()
138 FwmarkCommand command = {FwmarkCommand::ON_CONNECT_COMPLETE, /* netId (ignored) */ 0, in netdClientConnect()
368 FwmarkCommand command = {FwmarkCommand::SELECT_NETWORK, netId, 0, 0}; in setNetworkForSocket()
384 FwmarkCommand command = {FwmarkCommand::PROTECT_FROM_VPN, 0, 0, 0}; in protectFromVpn()
390 FwmarkCommand command = {FwmarkCommand::SELECT_FOR_USER, 0, uid, 0}; in setNetworkForUser()
395 FwmarkCommand command = {FwmarkCommand::QUERY_USER_ACCESS, netId, uid, 0}; in queryUserAccess()
401 FwmarkCommand command = {FwmarkCommand::TAG_SOCKET, 0, uid, tag}; in tagSocket()
407 FwmarkCommand command = {FwmarkCommand::UNTAG_SOCKET, 0, 0, 0}; in untagSocket()
412 FwmarkCommand command = {FwmarkCommand::SET_COUNTERSET, 0, uid, counterSet}; in setCounterSet()
[all …]
DFwmarkClient.cpp50 return (cmdId != FwmarkCommand::QUERY_USER_ACCESS) && in commandHasFd()
51 (cmdId != FwmarkCommand::SET_COUNTERSET) && in commandHasFd()
52 (cmdId != FwmarkCommand::DELETE_TAGDATA); in commandHasFd()
59 return FwmarkCommand::isSupportedFamily(family); in shouldSetFwmark()
76 int FwmarkClient::send(FwmarkCommand* data, int fd, FwmarkConnectInfo* connectInfo) { in send()
DFwmarkClient.h22 struct FwmarkCommand;
41 int send(FwmarkCommand* data, int fd, FwmarkConnectInfo* connectInfo);
/system/netd/include/
DFwmarkCommand.h56 struct FwmarkCommand { struct