}
}
-static void msgproc_device_req_network(ECS_Client* ccli, ECS__DeviceReq* msg)
+#define MSG_NET_GROUP 0
+#define MSG_NET_ACTION 123
+static void msgproc_device_req_network(ECS_Client* ccli, ECS__DeviceReq* msg, char* cmd)
{
char* data = NULL;
-
+ char ret[2] = {'1', 0};
if (msg->has_data && msg->data.len > 0)
{
data = (char*) g_malloc0(msg->data.len + 1);
LOG_TRACE(">>> Network msg: '%s'\n", data);
if(net_slirp_redir(data) < 0) {
LOG_SEVERE( "redirect [%s] fail\n", data);
+ make_send_device_ntf(cmd, MSG_NET_GROUP, MSG_NET_ACTION, ret);
} else {
LOG_TRACE("redirect [%s] success\n", data);
}
if (!strcmp(cmd, MSG_TYPE_SENSOR)) {
msgproc_device_req_sensor(ccli, msg, cmd);
} else if (!strcmp(cmd, "Network")) {
- msgproc_device_req_network(ccli, msg);
+ msgproc_device_req_network(ccli, msg, cmd);
} else if (!strcmp(cmd, "TGesture")) {
msgproc_device_req_tgesture(ccli, msg);
} else if (!strcmp(cmd, "info")) {