pcap in linux is dropping packets, and it appears related to shared memory-mapping as addressed here https://stackoverflow.com/a/11660759/1794758.
However, the links on that answer are down so I can't see how to compile libpcap with shared memory-mapping disabled. I've searched online and looked at the libpcap documentations but can't see how this is done.