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

Shijie Dong shijiex.dong at intel.com
Mon Dec 7 03:52:23 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_mac_filter.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/TestSuite_mac_filter.py b/tests/TestSuite_mac_filter.py
index 1d4e77d..3ca7387 100644
--- a/tests/TestSuite_mac_filter.py
+++ b/tests/TestSuite_mac_filter.py
@@ -86,7 +86,7 @@ class TestWhitelist(TestCase):
         """
         itf = self.tester.get_interface(self.tester.get_local_port(portid))
         self.tester.scapy_foreground()
-        self.tester.scapy_append('sendp([Ether(dst="%s", src="52:00:00:00:00:00")], iface="%s", count=%d)' % (destMac,
+        self.tester.scapy_append('sendp([Ether(dst="%s", src="52:00:00:00:00:00")/Raw(load="X"*26)], iface="%s", count=%d)' % (destMac,
                                                                                              itf, self.frames_to_send))
         self.tester.scapy_execute()
         time.sleep(5)
-- 
1.9.3



More information about the dts mailing list