Merge branch 'pavlosantoniou-dev' into dev
This commit is contained in:
@@ -2955,6 +2955,7 @@ static int ndpi_init_packet_header(struct ndpi_detection_module_struct *ndpi_str
|
|||||||
u_int8_t l4protocol;
|
u_int8_t l4protocol;
|
||||||
u_int8_t l4_result;
|
u_int8_t l4_result;
|
||||||
|
|
||||||
|
if (flow) {
|
||||||
/* reset payload_packet_len, will be set if ipv4 tcp or udp */
|
/* reset payload_packet_len, will be set if ipv4 tcp or udp */
|
||||||
flow->packet.payload_packet_len = 0;
|
flow->packet.payload_packet_len = 0;
|
||||||
flow->packet.l4_packet_len = 0;
|
flow->packet.l4_packet_len = 0;
|
||||||
@@ -2966,6 +2967,7 @@ static int ndpi_init_packet_header(struct ndpi_detection_module_struct *ndpi_str
|
|||||||
#ifdef NDPI_DETECTION_SUPPORT_IPV6
|
#ifdef NDPI_DETECTION_SUPPORT_IPV6
|
||||||
flow->packet.iphv6 = NULL;
|
flow->packet.iphv6 = NULL;
|
||||||
#endif /* NDPI_DETECTION_SUPPORT_IPV6 */
|
#endif /* NDPI_DETECTION_SUPPORT_IPV6 */
|
||||||
|
}
|
||||||
|
|
||||||
if(flow) {
|
if(flow) {
|
||||||
ndpi_apply_flow_protocol_to_packet(flow, &flow->packet);
|
ndpi_apply_flow_protocol_to_packet(flow, &flow->packet);
|
||||||
|
|||||||
Reference in New Issue
Block a user