From: imarom Date: Sun, 25 Dec 2016 11:50:22 +0000 (+0200) Subject: bug: ICMP ping did not ping the correct address X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=5f825e20bae803984b35f9e963a4031544f065d5;p=trex.git bug: ICMP ping did not ping the correct address Signed-off-by: imarom --- 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')