SCE适配Firewall控制报文变更: Reset All控制报文的mpack->Session ID为0,mbuffer->Payload Offset为0

This commit is contained in:
luwenpeng
2023-11-20 15:36:28 +08:00
parent 134d2c82b7
commit dc305adb3b
2 changed files with 11 additions and 7 deletions

View File

@@ -69,11 +69,14 @@ int control_packet_parse(struct control_packet *handler, const char *data, size_
goto error_out;
}
handler->session_id = mpack_node_u64(temp);
if (handler->session_id == 0)
{
LOG_ERROR("%s: unexpected control packet: (invalid session_id value) %lu", LOG_TAG_CTRLPKT, handler->session_id);
goto error_out;
}
/*
* reset all session id is zero
* if (handler->session_id == 0)
* {
* LOG_ERROR("%s: unexpected control packet: (invalid session_id value) %lu", LOG_TAG_CTRLPKT, handler->session_id);
* goto error_out;
* }
*/
// state
temp = mpack_node_map_cstr(root, "state");