X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=resources%2Ftraffic_scripts%2Fsend_ip_icmp.py;h=5e365ebc38252f390632d6d1c3e0d6977e52dbcd;hb=84c4bb50e13685176751e90bd67ce02730061032;hp=fd15376fb12262d25b093728db5b1d52866a1b5c;hpb=33499c81c94c2d3baef9d3e9f061cd76ef86fa74;p=csit.git diff --git a/resources/traffic_scripts/send_ip_icmp.py b/resources/traffic_scripts/send_ip_icmp.py index fd15376fb1..5e365ebc38 100755 --- a/resources/traffic_scripts/send_ip_icmp.py +++ b/resources/traffic_scripts/send_ip_icmp.py @@ -47,24 +47,20 @@ def main(): sent_packets.append(pkt_raw) txq.send(pkt_raw) - ether = rxq.recv(1) + ether = rxq.recv(10) # Check whether received packet contains layers Ether, IP and ICMP if ether is None: - rxq._proc.terminate() raise RuntimeError('ICMPv6 echo reply Rx timeout') if not ether.haslayer(IP): - rxq._proc.terminate() raise RuntimeError( 'Not an IP packet received {0}'.format(ether.__repr__())) if not ether.haslayer(ICMP): - rxq._proc.terminate() raise RuntimeError( 'Not an ICMP packet received {0}'.format(ether.__repr__())) - rxq._proc.terminate() sys.exit(0) if __name__ == "__main__":