summaryrefslogtreecommitdiffstats
path: root/census/arping.py
diff options
context:
space:
mode:
authorkrebs <krebs@fuerkrebs>2011-11-04 12:44:25 -0400
committerkrebs <krebs@fuerkrebs>2011-11-04 12:44:25 -0400
commit207a4ec405d3229a9d2e200b7803c3068d513265 (patch)
tree28824c72755215d83148dae2e2f0aa7356ddeffc /census/arping.py
parent5876c5a411e77b6518148712abc0c5d5bd45049e (diff)
//census: fix arping scripts, print data in json
Diffstat (limited to 'census/arping.py')
-rwxr-xr-xcensus/arping.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/census/arping.py b/census/arping.py
index 3cffa6be..ed257441 100755
--- a/census/arping.py
+++ b/census/arping.py
@@ -11,11 +11,10 @@ try:
from scapy.all import * #might throws "no such module"
def arpingy(iprange="10.42.1.0/24",iface='eth0'):
- log.debug("pinging "+ str(iprange))
"""Arping function takes IP Address or Network, returns nested mac/ip list"""
try:
conf.verb=0
- ans,unans=arping(iprange,iface=iface,timeout=0.4,retry=1)
+ ans,unans=arping(iprange,iface=iface,timeout=3,retry=1)
collection = []
for snd, rcv in ans: