The test gets the Ethernet header length from Scapy with len(Ether()).

When building DTS API documentation, Sphinx imports the test module
and shows this warning:
WARNING: MAC address to reach destination not found. Using broadcast.

Use a dummy MAC address so Scapy no longer performs
destination resolution during import.

Fixes: 01c70544cffd ("dts: add selective Rx tests")

Signed-off-by: Thomas Monjalon <[email protected]>
---
 dts/tests/TestSuite_rx_split.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dts/tests/TestSuite_rx_split.py b/dts/tests/TestSuite_rx_split.py
index 0c7913bbd8..5f5a2e6187 100644
--- a/dts/tests/TestSuite_rx_split.py
+++ b/dts/tests/TestSuite_rx_split.py
@@ -27,7 +27,7 @@
 from framework.test_suite import TestSuite, func_test
 
 PAYLOAD = bytes(range(256))
-ETHER_HDR_LEN = len(Ether())
+ETHER_HDR_LEN = len(Ether(dst="00:00:00:00:00:00"))
 IP_HDR_LEN = len(IP())
 ETHER_IP_HDR_LEN = ETHER_HDR_LEN + IP_HDR_LEN
 ETHER_MIN_FRAME_LEN = 60
-- 
2.54.0

Reply via email to