X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=blobdiff_plain;f=resources%2Ftraffic_scripts%2Fsend_ip_icmp.py;h=711bf3dd2544090fa89c3508f659d3fc4fdd049e;hp=5e365ebc38252f390632d6d1c3e0d6977e52dbcd;hb=a978ecded86a28d2b195c270e074031f1704dd15;hpb=84c45de446b69f83df919a91bc684da910824d6f diff --git a/resources/traffic_scripts/send_ip_icmp.py b/resources/traffic_scripts/send_ip_icmp.py index 5e365ebc38..711bf3dd25 100755 --- a/resources/traffic_scripts/send_ip_icmp.py +++ b/resources/traffic_scripts/send_ip_icmp.py @@ -40,18 +40,18 @@ def main(): # Create empty ip ICMP packet and add padding before sending pkt_raw = Ether(src=src_mac, dst=dst_mac) / \ - IP(src=src_ip, dst=dst_ip) / \ - ICMP() + IP(src=src_ip, dst=dst_ip) / \ + ICMP() # Send created packet on one interface and receive on the other sent_packets.append(pkt_raw) txq.send(pkt_raw) - ether = rxq.recv(10) + ether = rxq.recv(2) # Check whether received packet contains layers Ether, IP and ICMP if ether is None: - raise RuntimeError('ICMPv6 echo reply Rx timeout') + raise RuntimeError('ICMP echo Rx timeout') if not ether.haslayer(IP): raise RuntimeError(