mirror of
https://github.com/optim-enterprises-bv/nDPId.git
synced 2025-11-03 19:57:50 +00:00
moved PACKET_EVENT_PAYLOAD_FLOW after FLOW_EVENT_NEW (and before FLOW_EVENT_END/IDLE)
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
This commit is contained in:
4
nDPId.c
4
nDPId.c
@@ -1558,8 +1558,6 @@ static void ndpi_process_packet(uint8_t * const args,
|
|||||||
flow_to_process->min_l4_data_len = l4_len;
|
flow_to_process->min_l4_data_len = l4_len;
|
||||||
}
|
}
|
||||||
|
|
||||||
jsonize_packet_event(reader_thread, header, packet, flow_to_process, PACKET_EVENT_PAYLOAD_FLOW);
|
|
||||||
|
|
||||||
if (is_new_flow != 0)
|
if (is_new_flow != 0)
|
||||||
{
|
{
|
||||||
flow_to_process->max_l4_data_len = l4_len;
|
flow_to_process->max_l4_data_len = l4_len;
|
||||||
@@ -1567,6 +1565,8 @@ static void ndpi_process_packet(uint8_t * const args,
|
|||||||
jsonize_flow_event(reader_thread, flow_to_process, FLOW_EVENT_NEW);
|
jsonize_flow_event(reader_thread, flow_to_process, FLOW_EVENT_NEW);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
jsonize_packet_event(reader_thread, header, packet, flow_to_process, PACKET_EVENT_PAYLOAD_FLOW);
|
||||||
|
|
||||||
/* TCP-FIN: indicates that at least one side wants to end the connection */
|
/* TCP-FIN: indicates that at least one side wants to end the connection */
|
||||||
if (flow.flow_fin_ack_seen != 0 && flow_to_process->flow_fin_ack_seen == 0)
|
if (flow.flow_fin_ack_seen != 0 && flow_to_process->flow_fin_ack_seen == 0)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user