test suite reviews and discussions
 help / color / mirror / Atom feed
From: LihongX Ma <lihongx.ma@intel.com>
To: dts@dpdk.org
Cc: LihongX Ma <lihongx.ma@intel.com>
Subject: [dts] [PATCH V1] dep: remove local scapy module pfcp
Date: Thu, 29 Oct 2020 05:51:24 +0800	[thread overview]
Message-ID: <1603921884-27190-1-git-send-email-lihongx.ma@intel.com> (raw)

use scapy module pfcp to combine pkt

Signed-off-by: LihongX Ma <lihongx.ma@intel.com>
---
 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)
-- 
2.7.4


             reply	other threads:[~2020-10-29  5:26 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-28 21:51 LihongX Ma [this message]
2020-11-03  2:47 ` Tu, Lijuan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1603921884-27190-1-git-send-email-lihongx.ma@intel.com \
    --to=lihongx.ma@intel.com \
    --cc=dts@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).