Detect packet loss in AF_PACKET
At least in ringbuffer mode AF_PACKET can set the 0x4 TP_STATUS_LOSING flag indicating the user space program is not keeping up.
It would be nice to use this information to tell the user that this is happening. Maybe to start a flag "losing packets" could be logged to the stats.log in a way similar to "emergency mode entered".
Additionally, maybe others like pfring and pcap have similar features?