Lines Matching refs:command
102 FwmarkCommand command; in processClient() local
105 char buf[sizeof(command) + sizeof(connectInfo)]; in processClient()
116 memcpy(&command, buf, sizeof(command)); in processClient()
117 memcpy(&connectInfo, buf + sizeof(command), sizeof(connectInfo)); in processClient()
119 size_t expectedLen = sizeof(command); in processClient()
120 if (hasDestinationAddress(command.cmdId, mRedirectSocketCalls)) { in processClient()
130 if (command.cmdId == FwmarkCommand::QUERY_USER_ACCESS) { in processClient()
134 return mNetworkController->checkUserNetworkAccess(command.uid, command.netId); in processClient()
137 if (command.cmdId == FwmarkCommand::SET_COUNTERSET) { in processClient()
138 return mTrafficCtrl->setCounterSet(command.trafficCtrlInfo, command.uid, client->getUid()); in processClient()
141 if (command.cmdId == FwmarkCommand::DELETE_TAGDATA) { in processClient()
142 return mTrafficCtrl->deleteTagData(command.trafficCtrlInfo, command.uid, client->getUid()); in processClient()
170 switch (command.cmdId) { in processClient()
260 fwmark.netId = command.netId; in processClient()
261 if (command.netId == NETID_UNSET) { in processClient()
267 command.netId)) { in processClient()
298 fwmark.netId = mNetworkController->getNetworkForUser(command.uid); in processClient()
309 if (static_cast<int>(command.uid) == -1) { in processClient()
310 command.uid = client->getUid(); in processClient()
312 return mTrafficCtrl->tagSocket(*socketFd, command.trafficCtrlInfo, command.uid, in processClient()