aboutsummaryrefslogtreecommitdiff
path: root/tests/can_set_rfmon_test.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2018-01-31 20:18:19 -0800
committerGuy Harris <guy@alum.mit.edu>2018-01-31 20:18:19 -0800
commita579c55cf421005ab05c77edb5246f280e26a5ed (patch)
treecfdc95d5664c89f3cbaf8ad3b651b6b61161e29a /tests/can_set_rfmon_test.c
parent23ee9387fee8a50316b7ff92d3af86f17cc9d25f (diff)
Don't use non-blocking mode unless we have a timeout or use -n.
We only need it if we're using select()/poll() and don't have a descriptor on which we can block in select()/poll() waiting for packets to be readable, so that we have to use a timeout and try reading when the timeout expires; if we can block on the descriptor, that'll let us know when the read won't block, and if we aren't using select()/poll(), pcap_dispatch() will wait until packets are available (or the packet buffer timeout expires).
Diffstat (limited to 'tests/can_set_rfmon_test.c')
0 files changed, 0 insertions, 0 deletions