summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Habets <habets@google.com>2014-12-05 11:20:05 +0000
committerThomas Habets <habets@google.com>2014-12-05 11:20:05 +0000
commit4d5ac9011f8d262fba3afd92d7913455b800e3cc (patch)
tree0e0c61717981a0c28af46f7ac04cacc29b42beb3
parentf53e461f346f79cf9454a1b9b49048e30012b85a (diff)
downloadarping-4d5ac9011f8d262fba3afd92d7913455b800e3cc.tar.gz
Add comment on BIOCIMMEDIATE use.
-rw-r--r--src/arping.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/arping.c b/src/arping.c
index 5e48a09..85ef1b7 100644
--- a/src/arping.c
+++ b/src/arping.c
@@ -1658,6 +1658,7 @@ int main(int argc, char **argv)
#ifdef BIOCIMMEDIATE
{
+ // This may be redundant if pcap_set_immediate_mode() is present.
uint32_t on = 1;
if (0 < (ioctl(pcap_fileno(pcap), BIOCIMMEDIATE,
&on))) {