diff --git a/scapy/layers/l2.py b/scapy/layers/l2.py index ae42b62da4f089eb115de067febffd8aaf9feec1..0c9d97a1851be99d56d5da790771693690aa9d17 100644 --- a/scapy/layers/l2.py +++ b/scapy/layers/l2.py @@ -473,7 +473,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