Commit 7d7064e7 by Luciano Barletta

Fixed ping, added .gitignore

1 parent 3b7d0bf1
*.sh
*.db
*.pyc
__pycache__
\ No newline at end of file
......@@ -33,7 +33,7 @@ def key(dir):
return key
def mac_from_ip(ip):
os.system("ping " + ip + " c1")
os.system("ping " + ip + " -c1")
for i in get_arp_table():
if i['IP address'] == ip:
return i['HW address']
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!