diff options
author | 2016-12-25 13:50:22 +0200 | |
---|---|---|
committer | 2016-12-25 13:50:56 +0200 | |
commit | 5f825e20bae803984b35f9e963a4031544f065d5 (patch) | |
tree | 1b68f994f4435a3162efa8ddeb5b3bf86cfa8ce6 /scripts/automation/trex_control_plane/stl/trex_stl_lib | |
parent | 34cb66c9f06c7a43e68a17b4a8802f8d34298a65 (diff) |
bug: ICMP ping did not ping the correct address
Signed-off-by: imarom <imarom@cisco.com>
Diffstat (limited to 'scripts/automation/trex_control_plane/stl/trex_stl_lib')
-rw-r--r-- | scripts/automation/trex_control_plane/stl/trex_stl_lib/rx_services/trex_stl_rx_service_icmp.py | 2 |
1 files changed, 1 insertions, 1 deletions
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') |