From 5f825e20bae803984b35f9e963a4031544f065d5 Mon Sep 17 00:00:00 2001 From: imarom <imarom@cisco.com> Date: Sun, 25 Dec 2016 13:50:22 +0200 Subject: bug: ICMP ping did not ping the correct address Signed-off-by: imarom <imarom@cisco.com> --- .../stl/trex_stl_lib/rx_services/trex_stl_rx_service_icmp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/automation/trex_control_plane/stl/trex_stl_lib') diff --git a/scripts/automation/trex_control_plane/stl/trex_stl_lib/rx_services/trex_stl_rx_service_icmp.py b/scripts/automation/trex_control_plane/stl/trex_stl_lib/rx_services/trex_stl_rx_service_icmp.py index be5b6665..ae57b161 100644 --- a/scripts/automation/trex_control_plane/stl/trex_stl_lib/rx_services/trex_stl_rx_service_icmp.py +++ b/scripts/automation/trex_control_plane/stl/trex_stl_lib/rx_services/trex_stl_rx_service_icmp.py @@ -31,7 +31,7 @@ class RXServiceICMP(RXServiceAPI): # return a list of streams for request def generate_request (self): - base_pkt = Ether(dst = self.layer_cfg['ether']['dst'])/IP(src = self.layer_cfg['ipv4']['src'], dst = self.layer_cfg['ipv4']['dst'])/ICMP(type = 8) + base_pkt = Ether(dst = self.layer_cfg['ether']['dst'])/IP(src = self.layer_cfg['ipv4']['src'], dst = self.ping_ip)/ICMP(type = 8) pad = max(0, self.pkt_size - len(base_pkt)) base_pkt = base_pkt / (pad * 'x') -- cgit