Restore protocol extraction to original method.

Add microseconds to time series if milliseconds returns 0.

Signed-off-by: Ravi Kerur <ravi.kerur@viasat.com>
This commit is contained in:
Ravi Kerur
2019-09-21 10:38:04 -07:00
parent d92015a092
commit e8d501158e
3 changed files with 33 additions and 10 deletions
+2 -2
View File
@@ -664,13 +664,13 @@ static struct ndpi_flow_info *get_ndpi_flow_info(struct ndpi_workflow * workflow
l4_offset = iph->ihl * 4;
l3 = (const u_int8_t*)iph;
*proto = iph->protocol;
} else {
l4_offset = sizeof(struct ndpi_ipv6hdr);
l3 = (const u_int8_t*)iph6;
*proto = iph6->ip6_hdr.ip6_un1_nxt;
}
*proto = iph->protocol;
if(l4_packet_len < 64)
workflow->stats.packet_len[0]++;
else if(l4_packet_len >= 64 && l4_packet_len < 128)