Code Review
/
csit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Revert "vpp-device: GENEVE tunnel test, l3 mode"
[csit.git]
/
GPL
/
traffic_scripts
/
PacketVerifier.py
diff --git
a/GPL/traffic_scripts/PacketVerifier.py
b/GPL/traffic_scripts/PacketVerifier.py
index
bb91b93
..
c915921
100644
(file)
--- a/
GPL/traffic_scripts/PacketVerifier.py
+++ b/
GPL/traffic_scripts/PacketVerifier.py
@@
-331,10
+331,9
@@
def create_gratuitous_arp_request(src_mac, src_ip):
def auto_pad(packet):
"""Pads zeroes at the end of the packet if the total packet length is less
def auto_pad(packet):
"""Pads zeroes at the end of the packet if the total packet length is less
- then 6
0
bytes in case of IPv4 or 78 bytes in case of IPv6.
+ then 6
4
bytes in case of IPv4 or 78 bytes in case of IPv6.
"""
"""
- # TODO: add document explaining deduction of FCS part
- min_len = 78 if packet.haslayer(IPv6) else 60
+ min_len = 78 if packet.haslayer(IPv6) else 64
pad_layer = Raw if packet.haslayer(Raw) \
else Padding if packet.haslayer(Padding) else None
if pad_layer:
pad_layer = Raw if packet.haslayer(Raw) \
else Padding if packet.haslayer(Padding) else None
if pad_layer: