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

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.