* [dts] [PATCH] framework: add tcp and sctp parameters
@ 2017-11-17 9:37 Peng Yuan
2017-11-20 11:12 ` Liu, Yong
0 siblings, 1 reply; 2+ messages in thread
From: Peng Yuan @ 2017-11-17 9:37 UTC (permalink / raw)
To: dts; +Cc: Peng Yuan
Signed-off-by: Peng Yuan <yuan.peng@intel.com>
diff --git a/framework/packet.py b/framework/packet.py
index 4ee51dd..fc9c9cc 100755
--- a/framework/packet.py
+++ b/framework/packet.py
@@ -283,9 +283,11 @@ class scapy(object):
pkt_layer.src = src
pkt_layer.dst = dst
- def tcp(self, pkt_layer, src=53, dst=53, len=None, chksum=None):
+ def tcp(self, pkt_layer, src=53, dst=53, flags=None, len=None, chksum=None):
pkt_layer.sport = src
pkt_layer.dport = dst
+ if flags is not None:
+ pkt_layer.flags = flags
if len is not None:
pkt_layer.len = len
if chksum is not None:
@@ -299,9 +301,11 @@ class scapy(object):
if chksum is not None:
pkt_layer.chksum = chksum
- def sctp(self, pkt_layer, src=53, dst=53, len=None, chksum=None):
+ def sctp(self, pkt_layer, src=53, dst=53, tag=None, len=None, chksum=None):
pkt_layer.sport = src
pkt_layer.dport = dst
+ if tag is not None:
+ pkt_layer.tag = tag
if len is not None:
pkt_layer.len = len
if chksum is not None:
--
2.5.0
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [dts] [PATCH] framework: add tcp and sctp parameters
2017-11-17 9:37 [dts] [PATCH] framework: add tcp and sctp parameters Peng Yuan
@ 2017-11-20 11:12 ` Liu, Yong
0 siblings, 0 replies; 2+ messages in thread
From: Liu, Yong @ 2017-11-20 11:12 UTC (permalink / raw)
To: Peng Yuan, dts
Thanks Yuan, applied.
On 11/17/2017 05:37 PM, Peng Yuan wrote:
> Signed-off-by: Peng Yuan<yuan.peng@intel.com>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-11-20 3:19 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-17 9:37 [dts] [PATCH] framework: add tcp and sctp parameters Peng Yuan
2017-11-20 11:12 ` Liu, Yong
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).