diff options
author | imarom <imarom@cisco.com> | 2016-03-08 09:20:02 +0200 |
---|---|---|
committer | imarom <imarom@cisco.com> | 2016-03-10 17:16:36 +0200 |
commit | 60fbd456c4d804adc903839f916c9c2bbe272d94 (patch) | |
tree | 319c377cbf8ac4c857bd2a60090bcd687b3541c1 /scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_packet_builder_scapy.py | |
parent | 834431083b4f9e6ac7eac00d5ec6682c92b16da9 (diff) |
RX stats - major refactor
Diffstat (limited to 'scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_packet_builder_scapy.py')
-rw-r--r-- | scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_packet_builder_scapy.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_packet_builder_scapy.py b/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_packet_builder_scapy.py index bb210226..14c04a52 100644 --- a/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_packet_builder_scapy.py +++ b/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_packet_builder_scapy.py @@ -964,8 +964,7 @@ class CScapyTRexPktBuilder(CTrexPktBuilderInterface): if self.remove_fcs and self.pkt.lastlayer().name == 'Padding': self.pkt.lastlayer().underlayer.remove_payload() - if len(self.pkt) < 60: # simulator can write padding with non-zeros, set it explicit - self.pkt /= Padding('\x00' * (60 - len(self.pkt))) + self.pkt.build() self.is_pkt_built = True |