diff options
author | Hanoh Haim <hhaim@cisco.com> | 2016-12-19 16:06:38 +0200 |
---|---|---|
committer | Hanoh Haim <hhaim@cisco.com> | 2016-12-19 16:06:38 +0200 |
commit | 5741208336a7ff0262eefd82a80551cf37bf576a (patch) | |
tree | d56bf6651085f369276804fcfab89437b22c6ea1 /scripts/automation/trex_control_plane/stl/services/scapy_server/scapy_service.py | |
parent | 4d81618514ca2a22d777abe22ff49d44e70569e0 (diff) | |
parent | b75910ef6bb781b0d28eb253758bbe65d573b768 (diff) |
Merge branch 'payload_gen_total_size_ether_chksum' of git://github.com/kisel/trex-core into field_engine
Diffstat (limited to 'scripts/automation/trex_control_plane/stl/services/scapy_server/scapy_service.py')
-rwxr-xr-x | scripts/automation/trex_control_plane/stl/services/scapy_server/scapy_service.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/automation/trex_control_plane/stl/services/scapy_server/scapy_service.py b/scripts/automation/trex_control_plane/stl/services/scapy_server/scapy_service.py index 01c9a75a..e5f1b20c 100755 --- a/scripts/automation/trex_control_plane/stl/services/scapy_server/scapy_service.py +++ b/scripts/automation/trex_control_plane/stl/services/scapy_server/scapy_service.py @@ -539,7 +539,8 @@ class Scapy_service(Scapy_service_api): gen.update(val) total_sz = gen['total_size'] del gen['total_size'] - gen['size'] = total_sz - len(scapy_pkt) + ether_chksum_size_bytes = 4 # will be added outside of Scapy. needs to be excluded here + gen['size'] = total_sz - len(scapy_pkt) - ether_chksum_size_bytes return generate_bytes(gen) else: return generate_bytes(val) |