From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id 5002DA05D3 for ; Fri, 24 May 2019 03:22:47 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 12E234C99; Fri, 24 May 2019 03:22:47 +0200 (CEST) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id B7CFF2B9E for ; Fri, 24 May 2019 03:22:45 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 23 May 2019 18:22:44 -0700 X-ExtLoop1: 1 Received: from fmsmsx104.amr.corp.intel.com ([10.18.124.202]) by fmsmga005.fm.intel.com with ESMTP; 23 May 2019 18:22:44 -0700 Received: from fmsmsx151.amr.corp.intel.com (10.18.125.4) by fmsmsx104.amr.corp.intel.com (10.18.124.202) with Microsoft SMTP Server (TLS) id 14.3.408.0; Thu, 23 May 2019 18:22:44 -0700 Received: from shsmsx104.ccr.corp.intel.com (10.239.4.70) by FMSMSX151.amr.corp.intel.com (10.18.125.4) with Microsoft SMTP Server (TLS) id 14.3.408.0; Thu, 23 May 2019 18:22:38 -0700 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.70]) by SHSMSX104.ccr.corp.intel.com ([169.254.5.33]) with mapi id 14.03.0415.000; Fri, 24 May 2019 09:22:36 +0800 From: "Li, WenjieX A" To: "Xiao, QimaiX" , "dts@dpdk.org" CC: "Xiao, QimaiX" , "Li, WenjieX A" Thread-Topic: [dts] [PATCH V1] fix NameError on latest scapy 2.4.2 Thread-Index: AQHVEVd5Vzm6E7jldkS+iDQKpZgm0qZ5cyDg Date: Fri, 24 May 2019 01:22:36 +0000 Message-ID: <8688172CD5C0B74590FAE19D9579F94B536F3B15@SHSMSX103.ccr.corp.intel.com> References: <1558609771-68480-1-git-send-email-qimaix.xiao@intel.com> In-Reply-To: <1558609771-68480-1-git-send-email-qimaix.xiao@intel.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dts] [PATCH V1] fix NameError on latest scapy 2.4.2 X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dts-bounces@dpdk.org Sender: "dts" Fix the issue of scapy 2.4: "NameError: name 'ETHER_TYPES' is not defined" And it does not affect scapy 2.2/2.3.=20 Tested-by: Li, WenjieX A =20 > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of xiao,qimai > Sent: Thursday, May 23, 2019 7:10 PM > To: dts@dpdk.org > Cc: Xiao, QimaiX > Subject: [dts] [PATCH V1] fix NameError on latest scapy 2.4.2 >=20 > fix NameError: name 'ETHER_TYPES' is not defined on scapy 2.4.2 >=20 > Signed-off-by: xiao,qimai > --- > dep/Dot1BR.py | 1 + > 1 file changed, 1 insertion(+) >=20 > 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 >=20 > class Dot1BR(Packet): > name =3D "802.1BR" > -- > 2.17.1