]> The Tcpdump Group git mirrors - libpcap/commit
pcap-usb-linux: clean up the calculation of the packets-to-fetch value.
authorGuy Harris <[email protected]>
Thu, 27 Jan 2022 06:56:08 +0000 (22:56 -0800)
committerGuy Harris <[email protected]>
Sun, 20 Feb 2022 23:56:23 +0000 (15:56 -0800)
commit7a84edcfce3f97d9e06a7114464dcadb02d12478
treed65df25baa6829656c66c32866276fe45136775f
parenta94d5a3f5426b1e91c9ba1851d35d4fee55e80df
pcap-usb-linux: clean up the calculation of the packets-to-fetch value.

This should produce the same results as the previous code, but it's a
little clearer what's going on.  Add comments to explain what's being
done (from which one can infer that it produces the same results).

Add more comments explaining other things in the code and noting a
potential issue with allowing pcap_breakloop() to break out of the
packet-processing inner loop.

(cherry picked from commit 1a0912467fca23404cdde032a4ad0e9fbae52632)
pcap-usb-linux.c