summaryrefslogtreecommitdiff
path: root/arping-2/arping.c
diff options
context:
space:
mode:
authorThomas Habets <thomas@habets.pp.se>2007-07-09 22:23:28 +0000
committerThomas Habets <thomas@habets.pp.se>2007-07-09 22:23:28 +0000
commit3f37844d0aa21b282df7fbd23694edef67314198 (patch)
tree94236c97cda340a90592886881df038725aaee70 /arping-2/arping.c
parentd3ab6817bab530f344aa0a8a5b5533e2ec7749fe (diff)
downloadarping-3f37844d0aa21b282df7fbd23694edef67314198.tar.gz
flags and fast ctrl-c
Diffstat (limited to 'arping-2/arping.c')
-rw-r--r--arping-2/arping.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/arping-2/arping.c b/arping-2/arping.c
index 34ed170..ac7aea6 100644
--- a/arping-2/arping.c
+++ b/arping-2/arping.c
@@ -12,7 +12,7 @@
*
* Also finds out IP of specified MAC
*
- * $Id: arping.c 1892 2007-07-09 22:13:13Z marvin $
+ * $Id: arping.c 1893 2007-07-09 22:23:28Z marvin $
*/
/*
* Copyright (C) 2000-2002 Thomas Habets <thomas@habets.pp.se>
@@ -769,7 +769,9 @@ ping_recv_unix(pcap_t *pcap,u_int32_t packetwait, pcap_handler func)
tv.tv_usec = 1;
done = 1;
}
-
+ if (time_to_die) {
+ return;
+ }
#ifndef HAVE_WEIRD_BSD
switch((sr = select(pcap_fileno(pcap)+1,
&fds,