Code Review
/
csit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Move Send and receive L2 traffic KWs to standalone file.
[csit.git]
/
resources
/
traffic_scripts
/
send_ip_icmp.py
diff --git
a/resources/traffic_scripts/send_ip_icmp.py
b/resources/traffic_scripts/send_ip_icmp.py
index
5e365eb
..
f797bda
100755
(executable)
--- a/
resources/traffic_scripts/send_ip_icmp.py
+++ b/
resources/traffic_scripts/send_ip_icmp.py
@@
-40,8
+40,8
@@
def main():
# Create empty ip ICMP packet and add padding before sending
pkt_raw = Ether(src=src_mac, dst=dst_mac) / \
# 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)
# Send created packet on one interface and receive on the other
sent_packets.append(pkt_raw)
@@
-51,7
+51,7
@@
def main():
# Check whether received packet contains layers Ether, IP and ICMP
if ether is None:
# Check whether received packet contains layers Ether, IP and ICMP
if ether is None:
- raise RuntimeError('ICMP
v6 echo reply
Rx timeout')
+ raise RuntimeError('ICMP
echo
Rx timeout')
if not ether.haslayer(IP):
raise RuntimeError(
if not ether.haslayer(IP):
raise RuntimeError(