Pcap now works in non-blocking mode and packet capture timeout is managed through a select().
Packet buffer timeout does not guarantee that pcap_next_ex() returns in a short amount of time (see https://www.tcpdump.org/manpages/pcap.3pcap.html -> packet buffer timeout).
This solution should also work on MacOS. Please check it before pull it.
Pcap now works in non-blocking mode and packet capture timeout is managed through a select(). Packet buffer timeout does not guarantee that pcap_next_ex() returns in a short amount of time (see https://www.tcpdump.org/manpages/pcap.3pcap.html -> packet buffer timeout). This solution should also work on MacOS. Please check it before pull it.
Added support for RTLoss2 using two bits signal (https://tools.ietf.org/html/draft-cfb-tsvwg-spinbit-new-measurements-00#section-7). Same rtloss1 event has been used since measurement format is equal to RTLoss1.