Skip to content
Snippets Groups Projects
Commit 7fa2b9c4 authored by Guillaume Valadon's avatar Guillaume Valadon
Browse files

Update the global ARP cache

--HG--
branch : Issue #5080
parent 421c0420
No related branches found
No related tags found
No related merge requests found
......@@ -472,7 +472,7 @@ Set cache=True if you want arping to modify internal ARP-Cache"""
if cache and ans is not None:
for pair in ans:
arp_cache[pair[1].psrc] = (pair[1].hwsrc, time.time())
conf.netcache.arp_cache[pair[1].psrc] = (pair[1].hwsrc, time.time())
if verbose:
ans.show()
return ans,unans
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment