From 7fa2b9c4cb12a2d8613d0ea19486e7ba9d7a9fc9 Mon Sep 17 00:00:00 2001
From: Guillaume Valadon <guillaume@valadon.net>
Date: Mon, 24 Feb 2014 16:36:52 +0100
Subject: [PATCH] Update the global ARP cache

--HG--
branch : Issue #5080
---
 scapy/layers/l2.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scapy/layers/l2.py b/scapy/layers/l2.py
index 749d571b..6f3654f6 100644
--- a/scapy/layers/l2.py
+++ b/scapy/layers/l2.py
@@ -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
-- 
GitLab