Support raw IPv4 / IPv6 pcap packet processing. (#1053)

Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
This commit is contained in:
Toni
2020-11-09 16:18:05 +01:00
committed by GitHub
parent ac18d5a084
commit af02ffb60f
+10
View File
@@ -1646,6 +1646,16 @@ struct ndpi_proto ndpi_workflow_process_packet(struct ndpi_workflow * workflow,
}
break;
case DLT_IPV4:
type = ETH_P_IP;
ip_offset = 0;
break;
case DLT_IPV6:
type = ETH_P_IPV6;
ip_offset = 0;
break;
/* IEEE 802.3 Ethernet - 1 */
case DLT_EN10MB:
ethernet = (struct ndpi_ethhdr *) &packet[eth_offset];