[dts] [PATCH] TestSuite_skeleton.py: Modified send packet count to support vector mode
nareddy at marvell.com
nareddy at marvell.com
Tue Jun 4 10:55:51 CEST 2019
From: Praneeth Reddy <nareddy at marvell.com>
In vector mode minimum of 4 packets are required to forward.
Added packet count as 4 while sending packet from scapy.
Signed-off-by: Praneeth Reddy <nareddy at marvell.com>
---
tests/TestSuite_skeleton.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/TestSuite_skeleton.py b/tests/TestSuite_skeleton.py
index 6958b32..91cf9c4 100644
--- a/tests/TestSuite_skeleton.py
+++ b/tests/TestSuite_skeleton.py
@@ -87,7 +87,7 @@ class TestSkeleton(TestCase):
"""
Send a packet to port
"""
- self.tester.scapy_append('sendp([Ether(dst="%s")/IP()/UDP()/Raw(\'X\'*18)], iface="%s")' % (self.mac, iface))
+ self.tester.scapy_append('sendp([Ether(dst="%s")/IP()/UDP()/Raw(\'X\'*18)], iface="%s", count=4)' % (self.mac, iface))
self.tester.scapy_execute()
def get_tcpdump_package(self,inst):
--
1.8.3.1
More information about the dts
mailing list