diff options
author | Guy Harris <guy@alum.mit.edu> | 2017-11-08 16:30:31 -0800 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2017-11-08 16:30:31 -0800 |
commit | 07fe9e7b7563aefc28a7522c3a014521d1e5fca6 (patch) | |
tree | 8d9b4414d00d8d3eefcda568d07b9f66246b8ed6 /tests | |
parent | cfdaba0c0e39eb1d2498b7a102b62195c62e6256 (diff) |
Report not seeing packets from pcap_dispatch.
That way we know whether the pcap_dispatch() returned due to a timeout
rather than due to being signaled on UN*X or the event being set on
Windows.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/threadsignaltest.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/threadsignaltest.c b/tests/threadsignaltest.c index 8ad51125..2a493223 100644 --- a/tests/threadsignaltest.c +++ b/tests/threadsignaltest.c @@ -152,7 +152,8 @@ capture_thread_func(THREAD_FUNC_ARG_TYPE arg) if (status != 0) { printf("%d packets seen, %d packets counted after pcap_dispatch returns\n", status, packet_count); - } + } else + printf("No packets seen by pcap_dispatch\n"); } if (status == -2) { /* |