test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [PATCH V1] dep: remove local scapy module pfcp
@ 2020-10-28 21:51 LihongX Ma
  2020-11-03  2:47 ` Tu, Lijuan
  0 siblings, 1 reply; 2+ messages in thread
From: LihongX Ma @ 2020-10-28 21:51 UTC (permalink / raw)
  To: dts; +Cc: LihongX Ma

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [dts] [PATCH V1] dep: remove local scapy module pfcp
  2020-10-28 21:51 [dts] [PATCH V1] dep: remove local scapy module pfcp LihongX Ma
@ 2020-11-03  2:47 ` Tu, Lijuan
  0 siblings, 0 replies; 2+ messages in thread
From: Tu, Lijuan @ 2020-11-03  2:47 UTC (permalink / raw)
  To: Ma, LihongX, dts; +Cc: Ma, LihongX

> use scapy module pfcp to combine pkt
> 
> Signed-off-by: LihongX Ma <lihongx.ma@intel.com>

Applied

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-11-03  2:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-28 21:51 [dts] [PATCH V1] dep: remove local scapy module pfcp LihongX Ma
2020-11-03  2:47 ` Tu, Lijuan

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).