From ed46f126c90da83929625a89b5438a11f0e75401 Mon Sep 17 00:00:00 2001 From: Dan Klein Date: Thu, 24 Sep 2015 02:35:03 +0300 Subject: Cosmetics over packet builder module --- scripts/automation/trex_control_plane/client_utils/packet_builder.py | 1 + 1 file changed, 1 insertion(+) (limited to 'scripts/automation/trex_control_plane/client_utils') diff --git a/scripts/automation/trex_control_plane/client_utils/packet_builder.py b/scripts/automation/trex_control_plane/client_utils/packet_builder.py index 8fd74b1c..9adf7b1d 100644 --- a/scripts/automation/trex_control_plane/client_utils/packet_builder.py +++ b/scripts/automation/trex_control_plane/client_utils/packet_builder.py @@ -406,6 +406,7 @@ class CTRexPktBuilder(object): def _calc_offset(self, layer_name, hdr_field): pkt_header = self._pkt_by_hdr.get(layer_name) hdr_offset = len(self._packet) - len(pkt_header) + print hdr_offset inner_hdr_offsets = [] for field in pkt_header.__hdr__: if field[0] == hdr_field: -- cgit 1.2.3-korg