Support raw IPv4 / IPv6 pcap packet processing. (#1053)
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
This commit is contained in:
@@ -1646,6 +1646,16 @@ struct ndpi_proto ndpi_workflow_process_packet(struct ndpi_workflow * workflow,
|
|||||||
}
|
}
|
||||||
break;
|
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 */
|
/* IEEE 802.3 Ethernet - 1 */
|
||||||
case DLT_EN10MB:
|
case DLT_EN10MB:
|
||||||
ethernet = (struct ndpi_ethhdr *) &packet[eth_offset];
|
ethernet = (struct ndpi_ethhdr *) &packet[eth_offset];
|
||||||
|
|||||||
Reference in New Issue
Block a user