Searched refs:cli (Results 1 - 13 of 13) sorted by relevance

/system/netd/
H A DCommandListener.cpp222 int CommandListener::InterfaceCmd::runCommand(SocketClient *cli, argument
225 cli->sendMsg(ResponseCode::CommandSyntaxError, "Missing argument", false);
234 cli->sendMsg(ResponseCode::OperationFailed, "Failed to open sysfs dir", true);
241 cli->sendMsg(ResponseCode::InterfaceListResult, de->d_name, false);
244 cli->sendMsg(ResponseCode::CommandOkay, "Interface list completed", false);
248 cli->sendMsg(ResponseCode::CommandSyntaxError,
254 cli->sendMsg(ResponseCode::OperationFailed, "Failed to read counters", true);
260 cli->sendMsg(ResponseCode::InterfaceRxCounterResult, msg, false);
266 cli->sendMsg(ResponseCode::CommandSyntaxError,
272 cli
576 runCommand(SocketClient *cli, int argc, char **argv) argument
593 runCommand(SocketClient *cli, int argc, char **argv) argument
631 runCommand(SocketClient *cli, int argc, char **argv) argument
735 runCommand(SocketClient *cli, int argc, char **argv) argument
772 runCommand(SocketClient *cli, int argc, char **argv) argument
824 runCommand(SocketClient *cli, int argc, char **argv) argument
873 runCommand(SocketClient *cli, int argc, char **argv) argument
983 sendGenericSyntaxError(SocketClient *cli, const char *usageMsg) argument
990 sendGenericOkFail(SocketClient *cli, int cond) argument
998 sendGenericOpFailed(SocketClient *cli, const char *errMsg) argument
1002 runCommand(SocketClient *cli, int argc, char **argv) argument
1278 runCommand(SocketClient *cli, int argc, char **argv) argument
1340 sendGenericOkFail(SocketClient *cli, int cond) argument
1357 runCommand(SocketClient *cli, int argc, char **argv) argument
[all...]
H A DSecondaryTableController.h38 int addRoute(SocketClient *cli, char *iface, char *dest, int prefixLen, char *gateway);
39 int removeRoute(SocketClient *cli, char *iface, char *dest, int prefixLen, char *gateway);
45 int modifyRoute(SocketClient *cli, const char *action, char *iface, char *dest, int prefix,
54 int runAndFree(SocketClient *cli, char *cmd);
H A DSecondaryTableController.cpp63 int SecondaryTableController::addRoute(SocketClient *cli, char *iface, char *dest, int prefix, argument
71 cli->sendMsg(ResponseCode::OperationFailed, "Max number NATed", true);
79 return modifyRoute(cli, ADD, iface, dest, prefix, gateway, tableIndex);
82 int SecondaryTableController::modifyRoute(SocketClient *cli, const char *action, char *iface, argument
95 if (runAndFree(cli, cmd)) {
99 cli->sendMsg(ResponseCode::OperationFailed, "ip route modification failed", true);
112 cli->sendMsg(ResponseCode::CommandOkay, "Route modified", false);
145 int SecondaryTableController::removeRoute(SocketClient *cli, char *iface, char *dest, int prefix, argument
151 cli->sendMsg(ResponseCode::OperationFailed, "Interface not found", true);
155 return modifyRoute(cli, DE
190 runAndFree(SocketClient *cli, char *cmd) argument
[all...]
H A DMDnsSdListener.cpp59 void MDnsSdListener::Handler::discover(SocketClient *cli, argument
73 cli->sendMsg(ResponseCode::CommandParameterError,
86 cli->sendMsg(ResponseCode::CommandParameterError,
92 cli->sendMsg(ResponseCode::CommandOkay, "Discover operation started", false);
130 void MDnsSdListener::Handler::stop(SocketClient *cli, int argc, char **argv, const char *str) { argument
134 cli->sendMsg(ResponseCode::CommandParameterError, msg, false);
142 cli->sendMsg(ResponseCode::CommandParameterError, "Unknown requestId", false);
150 cli->sendMsg(ResponseCode::CommandOkay, msg, false);
154 void MDnsSdListener::Handler::serviceRegister(SocketClient *cli, int requestId, argument
166 cli
210 resolveService(SocketClient *cli, int requestId, const char *interfaceName, const char *serviceName, const char *regType, const char *domain) argument
269 getAddrInfo(SocketClient *cli, int requestId, const char *interfaceName, uint32_t protocol, const char *hostname) argument
329 setHostname(SocketClient *cli, int requestId, const char *hostname) argument
392 runCommand(SocketClient *cli, int argc, char **argv) argument
[all...]
H A DMDnsSdListener.h111 void stop(SocketClient *cli, int argc, char **argv, const char *str);
113 void discover(SocketClient *cli, const char *iface, const char *regType,
117 void serviceRegister(SocketClient *cli, int requestId, const char *interfaceName,
121 void resolveService(SocketClient *cli, int requestId,
125 void setHostname(SocketClient *cli, int requestId, const char *hostname);
127 void getAddrInfo(SocketClient *cli, int requestId, const char *interfaceName,
H A DCommandListener.h111 void sendGenericOkFail(SocketClient *cli, int cond);
112 void sendGenericOpFailed(SocketClient *cli, const char *errMsg);
113 void sendGenericSyntaxError(SocketClient *cli, const char *usageMsg);
136 int sendGenericOkFail(SocketClient *cli, int cond);
H A DDnsProxyListener.cpp108 int DnsProxyListener::GetAddrInfoCmd::runCommand(SocketClient *cli, argument
119 cli->sendMsg(ResponseCode::CommandParameterError, msg, false);
158 cli->incRef();
160 new DnsProxyListener::GetAddrInfoHandler(cli, name, service, hints);
173 int DnsProxyListener::GetHostByAddrCmd::runCommand(SocketClient *cli, argument
185 cli->sendMsg(ResponseCode::CommandParameterError, msg, false);
201 cli->sendMsg(ResponseCode::OperationFailed, msg, false);
207 cli->incRef();
209 new DnsProxyListener::GetHostByAddrHandler(cli, addr, addrLen, addrFamily);
/system/vold/
H A DCommandListener.cpp85 int CommandListener::DumpCmd::runCommand(SocketClient *cli, argument
87 cli->sendMsg(0, "Dumping loop status", false);
88 if (Loop::dumpState(cli)) {
89 cli->sendMsg(ResponseCode::CommandOkay, "Loop dump failed", true);
91 cli->sendMsg(0, "Dumping DM status", false);
92 if (Devmapper::dumpState(cli)) {
93 cli->sendMsg(ResponseCode::CommandOkay, "Devmapper dump failed", true);
95 cli->sendMsg(0, "Dumping mounted filesystems", false);
101 cli->sendMsg(0, line, false);;
106 cli
115 runCommand(SocketClient *cli, int argc, char **argv) argument
213 runCommand(SocketClient *cli, int argc, char **argv) argument
264 listAsecsInDirectory(SocketClient *cli, const char *directory) argument
302 runCommand(SocketClient *cli, int argc, char **argv) argument
432 runCommand(SocketClient *cli, int argc, char **argv) argument
496 runCommand(SocketClient *cli, int argc, char **argv) argument
539 runCommand(SocketClient *cli, int argc, char **argv) argument
[all...]
H A DVolumeManager.h80 int listVolumes(SocketClient *cli);
115 int listMountedObbs(SocketClient* cli);
H A DVolumeManager.cpp155 int VolumeManager::listVolumes(SocketClient *cli) { argument
163 cli->sendMsg(ResponseCode::VolumeListResult, buffer, false);
166 cli->sendMsg(ResponseCode::CommandOkay, "Volumes listed.", false);
1116 int VolumeManager::listMountedObbs(SocketClient* cli) { argument
1149 cli->sendMsg(ResponseCode::AsecListResult,
/system/core/libsysutils/src/
H A DFrameworkListener.cpp73 void FrameworkListener::dispatchCommand(SocketClient *cli, char *data) { argument
109 cli->sendMsg(500, "Unsupported escape sequence", false);
135 cli->sendMsg(500, "Invalid sequence number", false);
138 cli->setCmdNum(cmdNum);
163 cli->sendMsg(500, "Unclosed quotes error", false);
177 if (c->runCommand(cli, argc, argv)) {
184 cli->sendMsg(500, "Command not recognized", false);
192 LOG_EVENT_INT(78001, cli->getUid());
193 cli->sendMsg(500, "Command too long", false);
H A DNetlinkListener.cpp44 bool NetlinkListener::onDataAvailable(SocketClient *cli) argument
46 int socket = cli->getSocket();
/system/core/include/sysutils/
H A DNetlinkListener.h44 virtual bool onDataAvailable(SocketClient *cli);

Completed in 104 milliseconds