Problem with detect IP Layer When Pcap file have several Ethernet

34 Views Asked by At

I use the latest version of pcapplusplus(23.09). I have a pcap file that each frame has several Ethernet, like the below image: enter image description here

I can't find the IP packet with the following commands. I think pcap can't find the second Ethernet.

if (parsedPacket.isPacketOfType(pcpp::IPv4) || parsedPacket.isPacketOfType(pcpp::IPv6)) {....}

The pcapplusplus also does not find the second Ethernet.

0

There are 0 best solutions below