Re: [PATCH v2 1/1] dts: add send_packets to test suites and rework packet addressing

2024-09-26 Thread Juraj Linkeš
diff --git a/dts/framework/test_suite.py b/dts/framework/test_suite.py @@ -243,41 +255,74 @@ def get_expected_packet(self, packet: Packet) -> Packet: Returns: `packet` with injected L2/L3 addresses. """ -return self._adjust_addresses(packet, expec

Re: [PATCH v2 1/1] dts: add send_packets to test suites and rework packet addressing

2024-09-26 Thread Juraj Linkeš
+if num_ip_layers > 0: +ip_src_is_unset = "src" not in l3_to_use.fields +ip_dst_is_unset = "dst" not in l3_to_use.fields +else: +ip_src_is_unset = None +ip_dst_is_unset = None -# The packet is r

Re: [PATCH v2 1/1] dts: add send_packets to test suites and rework packet addressing

2024-09-25 Thread Jeremy Spewock
On Tue, Sep 24, 2024 at 10:30 AM Juraj Linkeš wrote: > > > > On 20. 9. 2024 20:08, jspew...@iol.unh.edu wrote: > > From: Jeremy Spewock > > > > Currently the only method provided in the test suite class for sending > > packets sends a single packet and then captures the results. There is, > > in

Re: [PATCH v2 1/1] dts: add send_packets to test suites and rework packet addressing

2024-09-24 Thread Juraj Linkeš
On 20. 9. 2024 20:08, jspew...@iol.unh.edu wrote: From: Jeremy Spewock Currently the only method provided in the test suite class for sending packets sends a single packet and then captures the results. There is, in some cases, a need to send multiple packets at once while not really needing

[PATCH v2 1/1] dts: add send_packets to test suites and rework packet addressing

2024-09-20 Thread jspewock
From: Jeremy Spewock Currently the only method provided in the test suite class for sending packets sends a single packet and then captures the results. There is, in some cases, a need to send multiple packets at once while not really needing to capture any traffic received back. The method to do