[dts] [PATCH V1] fix NameError on latest scapy 2.4.2

xiao,qimai qimaix.xiao at intel.com
Thu May 23 13:09:31 CEST 2019


fix NameError: name 'ETHER_TYPES' is not defined on scapy 2.4.2

Signed-off-by: xiao,qimai <qimaix.xiao at intel.com>
---
 dep/Dot1BR.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dep/Dot1BR.py b/dep/Dot1BR.py
index f985f6a..114c19a 100644
--- a/dep/Dot1BR.py
+++ b/dep/Dot1BR.py
@@ -13,6 +13,7 @@ VBPE (virtual brige port extenstion)
 from scapy.packet import *
 from scapy.fields import *
 from scapy.layers.l2 import Ether
+from scapy.data import ETHER_TYPES
 
 class Dot1BR(Packet):
     name = "802.1BR"
-- 
2.17.1



More information about the dts mailing list