]> The Tcpdump Group git mirrors - libpcap/commit
Add a new API to handle some non-select()able devices.
authorGuy Harris <[email protected]>
Sat, 20 Jan 2018 03:39:29 +0000 (19:39 -0800)
committerGuy Harris <[email protected]>
Sat, 20 Jan 2018 03:39:29 +0000 (19:39 -0800)
commitfeef04b7a69ce32456477d07dce042b34b7e65e2
tree4e33dfc103afcd09a3270559ca2d74b2686e62be
parent7a04be7771d44a2f7e74210cc39e4df0ccef8d97
Add a new API to handle some non-select()able devices.

DAG adapters don't support blocking until packets arrive; a program
using select()/poll()/epoll()/kqueue-based event loop must periodically
poll DAG pcap_t's to see if they have packets available.  Add
pcap_get_required_select_timeout(), which returns a pointer to a struct
timeval containing the appropriate timeout interval if polling is
required and NULL if polling isn't required or isn't supported.

Clean up the pcap_get_selectable_fd() documentation while we're at it.
CMakeLists.txt
Makefile.in
pcap-dag.c
pcap-int.h
pcap.c
pcap/pcap.h
pcap_get_required_select_timeout.3pcap [new file with mode: 0644]
pcap_get_selectable_fd.3pcap