Lines Matching refs:sendMsg

57             (cli)->sendMsg(ResponseCode::OperationFailed, (errMsg), (addErrno)); \
66 (cli)->sendMsg(ResponseCode::OperationFailed, (errMsg), (addErrno)); \
150 mNdc.sendMsg(500, "Command too long", false); in dispatchCommand()
156 mNdc.sendMsg(500, "Handler error", true); in dispatchCommand()
161 mNdc.sendMsg(500, "Command not recognized", false); in dispatchCommand()
169 cli->sendMsg(ResponseCode::CommandSyntaxError, "Missing argument", false); in runCommand()
179 cli->sendMsg(ResponseCode::OperationFailed, "Failed to get interface list", true); in runCommand()
183 cli->sendMsg(ResponseCode::InterfaceListResult, iface.c_str(), false); in runCommand()
186 cli->sendMsg(ResponseCode::CommandOkay, "Interface list completed", false); in runCommand()
193 cli->sendMsg(ResponseCode::CommandSyntaxError, "Missing argument", false); in runCommand()
203 cli->sendMsg(ResponseCode::OperationFailed, "Interface not found", true); in runCommand()
213 cli->sendMsg(ResponseCode::InterfaceGetCfgResult, msg.c_str(), false); in runCommand()
219 cli->sendMsg(ResponseCode::CommandSyntaxError, "Missing argument", false); in runCommand()
243 cli->sendMsg(ResponseCode::OperationFailed, "Failed to set address", true); in runCommand()
259 cli->sendMsg(ResponseCode::OperationFailed, "Failed to up interface", true); in runCommand()
270 cli->sendMsg(ResponseCode::OperationFailed, "Failed to down interface", in runCommand()
279 cli->sendMsg(ResponseCode::CommandParameterError, "Flag unsupported", false); in runCommand()
284 cli->sendMsg(ResponseCode::CommandOkay, "Interface configuration set", false); in runCommand()
292 cli->sendMsg(ResponseCode::CommandOkay, "Interface IP addresses cleared", false); in runCommand()
296 cli->sendMsg(ResponseCode::CommandSyntaxError, in runCommand()
304 cli->sendMsg(ResponseCode::CommandOkay, "IPv6 privacy extensions changed", false); in runCommand()
307 cli->sendMsg(ResponseCode::OperationFailed, "Failed to set ipv6 privacy extensions", in runCommand()
313 cli->sendMsg(ResponseCode::CommandSyntaxError, in runCommand()
321 cli->sendMsg(ResponseCode::CommandOkay, "IPv6 state changed", false); in runCommand()
324 cli->sendMsg(ResponseCode::OperationFailed, "Failed to change IPv6 state", true); in runCommand()
329 cli->sendMsg(ResponseCode::CommandSyntaxError, in runCommand()
338 cli->sendMsg(ResponseCode::CommandOkay, "MTU changed", false); in runCommand()
341 cli->sendMsg(ResponseCode::OperationFailed, "Failed to set MTU", true); in runCommand()
345 cli->sendMsg(ResponseCode::CommandSyntaxError, "Unknown interface cmd", false); in runCommand()
365 cli->sendMsg(ResponseCode::IpFwdStatusResult, msg.c_str(), false); in runCommand()
393 cli->sendMsg(ResponseCode::CommandSyntaxError, "Unknown ipfwd cmd", false); in runCommand()
398 cli->sendMsg(ResponseCode::CommandOkay, "ipfwd operation succeeded", false); in runCommand()
401 cli->sendMsg(ResponseCode::OperationFailed, "ipfwd operation failed", true); in runCommand()
412 cli->sendMsg(ResponseCode::CommandSyntaxError, "Missing argument", false); in runCommand()
423 cli->sendMsg(ResponseCode::TetherStatusResult, msg.c_str(), false); in runCommand()
430 cli->sendMsg(ResponseCode::TetherInterfaceListResult, ifname.c_str(), false); in runCommand()
435 cli->sendMsg(ResponseCode::CommandSyntaxError, "Bad number of arguments", false); in runCommand()
451 cli->sendMsg(ResponseCode::CommandSyntaxError, "Missing argument", false); in runCommand()
462 cli->sendMsg(ResponseCode::CommandParameterError, in runCommand()
469 cli->sendMsg(ResponseCode::CommandSyntaxError, "Missing argument", false); in runCommand()
480 cli->sendMsg(ResponseCode::CommandParameterError, in runCommand()
485 cli->sendMsg(ResponseCode::CommandSyntaxError, "Unknown tether cmd", false); in runCommand()
491 cli->sendMsg(ResponseCode::CommandOkay, "Tether operation succeeded", false); in runCommand()
494 cli->sendMsg(ResponseCode::OperationFailed, "Tether operation failed", true); in runCommand()
506 cli->sendMsg(ResponseCode::CommandSyntaxError, "Missing argument", false); in runCommand()
518 cli->sendMsg(ResponseCode::CommandSyntaxError, "Unknown nat cmd", false); in runCommand()
523 cli->sendMsg(ResponseCode::CommandOkay, "Nat operation succeeded", false); in runCommand()
526 cli->sendMsg(ResponseCode::OperationFailed, "Nat operation failed", true); in runCommand()
538 cli->sendMsg(ResponseCode::CommandSyntaxError, msg, false); in sendGenericSyntaxError()
544 cli->sendMsg(ResponseCode::CommandOkay, "Bandwidth command succeeeded", false); in sendGenericOkFail()
546 cli->sendMsg(ResponseCode::OperationFailed, "Bandwidth command failed", false); in sendGenericOkFail()
552 cli->sendMsg(ResponseCode::OperationFailed, errMsg, false); in sendGenericOpFailed()
675 cli->sendMsg(ResponseCode::CommandSyntaxError, "Unknown bandwidth cmd", false); in runCommand()
684 cli->sendMsg(ResponseCode::CommandSyntaxError, "Missing argument", false); in runCommand()
693 cli->sendMsg(ResponseCode::CommandSyntaxError, "Missing argument", false); in runCommand()
701 cli->sendMsg(ResponseCode::OperationFailed, "Failed to add interface", false); in runCommand()
703 cli->sendMsg(ResponseCode::CommandOkay, "Add success", false); in runCommand()
709 cli->sendMsg(ResponseCode::CommandSyntaxError, "Missing argument", false); in runCommand()
716 cli->sendMsg(ResponseCode::OperationFailed, "Failed to remove interface", false); in runCommand()
718 cli->sendMsg(ResponseCode::CommandOkay, "Remove success", false); in runCommand()
723 cli->sendMsg(ResponseCode::CommandSyntaxError, "Unknown idletimer cmd", false); in runCommand()
731 cli->sendMsg(ResponseCode::CommandOkay, "Firewall command succeeded", false); in sendGenericOkFail()
733 cli->sendMsg(ResponseCode::OperationFailed, "Firewall command failed", false); in sendGenericOkFail()
777 cli->sendMsg(ResponseCode::CommandSyntaxError, "Missing command", false); in runCommand()
783 cli->sendMsg(ResponseCode::CommandSyntaxError, in runCommand()
793 cli->sendMsg(ResponseCode::CommandSyntaxError, in runCommand()
803 cli->sendMsg(ResponseCode::CommandSyntaxError, in runCommand()
811 cli->sendMsg(ResponseCode::CommandSyntaxError, in runCommand()
823 cli->sendMsg(ResponseCode::CommandSyntaxError, in runCommand()
833 cli->sendMsg(ResponseCode::CommandSyntaxError, in runCommand()
841 cli->sendMsg(ResponseCode::CommandSyntaxError, "Unknown command", false); in runCommand()
850 cli->sendMsg(ResponseCode::CommandSyntaxError, "Missing argument", false); in runCommand()
860 cli->sendMsg(ResponseCode::CommandSyntaxError, "Missing argument", false); in runCommand()
865 cli->sendMsg(ResponseCode::CommandSyntaxError, "Unknown clatd cmd", false); in runCommand()
870 cli->sendMsg(ResponseCode::CommandOkay, in runCommand()
873 cli->sendMsg(ResponseCode::OperationFailed, "Clatd operation failed", false); in runCommand()
883 cli->sendMsg(ResponseCode::CommandOkay, "Strict command succeeded", false); in sendGenericOkFail()
885 cli->sendMsg(ResponseCode::OperationFailed, "Strict command failed", false); in sendGenericOkFail()
904 cli->sendMsg(ResponseCode::CommandSyntaxError, "Missing command", false); in runCommand()
910 cli->sendMsg(ResponseCode::CommandSyntaxError, in runCommand()
919 cli->sendMsg(ResponseCode::CommandSyntaxError, "Invalid UID", false); in runCommand()
925 cli->sendMsg(ResponseCode::CommandSyntaxError, "Invalid penalty argument", false); in runCommand()
933 cli->sendMsg(ResponseCode::CommandSyntaxError, "Unknown command", false); in runCommand()
940 cli->sendMsg(ResponseCode::CommandSyntaxError, message, false); in syntaxError()
947 cli->sendMsg(ResponseCode::OperationFailed, message, true); in operationError()
952 cli->sendMsg(ResponseCode::CommandOkay, "success", false); in success()