aboutsummaryrefslogtreecommitdiffstats
path: root/GPL/traffic_scripts/PacketVerifier.py
diff options
context:
space:
mode:
authorJan Gelety <jgelety@cisco.com>2020-10-24 07:12:05 +0200
committerJan Gelety <jgelety@cisco.com>2020-12-03 09:36:08 +0100
commita9f54ca5080aeef17686f300a6807bf9b46b7c90 (patch)
treea5ea1c5bcfc5400f5063e2906a36097e73dc2499 /GPL/traffic_scripts/PacketVerifier.py
parent70b633f637f6923d1e266473389ddbba02ca37f1 (diff)
vpp-device: GENEVE tunnel test, l3 mode
Jira: CSIT-1769 Change-Id: I0ab906966f760b809b8431530c010a8f0835d62c Signed-off-by: Jan Gelety <jgelety@cisco.com>
Diffstat (limited to 'GPL/traffic_scripts/PacketVerifier.py')
-rw-r--r--GPL/traffic_scripts/PacketVerifier.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/GPL/traffic_scripts/PacketVerifier.py b/GPL/traffic_scripts/PacketVerifier.py
index c915921625..bb91b9361c 100644
--- a/GPL/traffic_scripts/PacketVerifier.py
+++ b/GPL/traffic_scripts/PacketVerifier.py
@@ -331,9 +331,10 @@ 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
- then 64 bytes in case of IPv4 or 78 bytes in case of IPv6.
+ then 60 bytes in case of IPv4 or 78 bytes in case of IPv6.
"""
- min_len = 78 if packet.haslayer(IPv6) else 64
+ # TODO: add document explaining deduction of FCS part
+ min_len = 78 if packet.haslayer(IPv6) else 60
pad_layer = Raw if packet.haslayer(Raw) \
else Padding if packet.haslayer(Padding) else None
if pad_layer: