From patchwork Wed Oct 28 21:51:24 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Ma, LihongX" X-Patchwork-Id: 82696 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 234F8A04B5; Thu, 29 Oct 2020 06:26:13 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id DB1726CA9; Thu, 29 Oct 2020 06:26:11 +0100 (CET) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id 8C9D46889 for ; Thu, 29 Oct 2020 06:26:09 +0100 (CET) IronPort-SDR: DBVObPHX3fS87PPLdXOXLqL9vsABzMT9b0KeEUPFsa8mx3/ALvBNRxuMIUhJDJPfE+qkU0lXGU AefAH8kOdusA== X-IronPort-AV: E=McAfee;i="6000,8403,9788"; a="253081879" X-IronPort-AV: E=Sophos;i="5.77,429,1596524400"; d="scan'208";a="253081879" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Oct 2020 22:26:07 -0700 IronPort-SDR: XLxC7RmjOUoAj5RsmENPf53FH00tkCdBmus6oYAXRCB+wrrmeIGGjGAvoC+QB8oUUg2kJQovQa xT9q4dVHEePA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.77,429,1596524400"; d="scan'208";a="351291495" Received: from dpdk-lihong-ub1604.sh.intel.com ([10.67.118.174]) by fmsmga004.fm.intel.com with ESMTP; 28 Oct 2020 22:26:06 -0700 From: LihongX Ma To: dts@dpdk.org Cc: LihongX Ma Date: Thu, 29 Oct 2020 05:51:24 +0800 Message-Id: <1603921884-27190-1-git-send-email-lihongx.ma@intel.com> X-Mailer: git-send-email 2.7.4 Subject: [dts] [PATCH V1] dep: remove local scapy module pfcp 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" use scapy module pfcp to combine pkt Signed-off-by: LihongX Ma --- dep/scapy_modules/pfcp.py | 24 ------------------------ 1 file changed, 24 deletions(-) delete mode 100644 dep/scapy_modules/pfcp.py diff --git a/dep/scapy_modules/pfcp.py b/dep/scapy_modules/pfcp.py deleted file mode 100644 index 33f2510..0000000 --- a/dep/scapy_modules/pfcp.py +++ /dev/null @@ -1,24 +0,0 @@ -from scapy.packet import Packet, bind_layers, Padding -from scapy.fields import * -from scapy.layers.inet import UDP - -class PFCP(Packet): - name = "PFCP" - fields_desc = [ BitField("version", 1, 3), - BitField("MP", 0, 4), - BitField("Sfield", 0, 1), - ByteField("MsgType", 0), - ShortField("len", None), - LongField("SEID", 0), - ThreeBytesField("SeqNum", 0), - BitField("MsgPrio", 0, 4), - BitField("spare", 0, 4)] - - - def post_build(self, pkt, pay): - if self.len is None: - l = len(pkt)+len(pay) - pkt = pkt[:2]+struct.pack("!H", l)+pkt[4:] - return pkt+pay - -bind_layers(UDP, PFCP, dport=8805)