[dts] [PATCH V1] add payload for send eth packet

Shijie Dong shijiex.dong at intel.com
Thu Dec 3 11:34:12 CET 2015


scapy can't support send packet only inlcude eth herd  in ubutu 15.10

Signed-off-by: Shijie Dong <shijiex.dong at intel.com>
---
 tests/TestSuite_dynamic_config.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/TestSuite_dynamic_config.py b/tests/TestSuite_dynamic_config.py
index d1ad49c..ba740b1 100644
--- a/tests/TestSuite_dynamic_config.py
+++ b/tests/TestSuite_dynamic_config.py
@@ -111,7 +111,7 @@ class TestDynamicConfig(TestCase):
 
         self.tester.scapy_foreground()
         self.tester.scapy_append(
-            'sendp([Ether(dst="%s", src="52:00:00:00:00:00")], iface="%s")' % (destMac, itf))
+            'sendp([Ether(dst="%s", src="52:00:00:00:00:00")/Raw(load="X"*26)], iface="%s")' % (destMac, itf))
 
         self.tester.scapy_execute()
 
-- 
1.9.3



More information about the dts mailing list