From 930120461225e602e366a404180a48cdaf657dcf Mon Sep 17 00:00:00 2001 From: itraviv Date: Thu, 4 Aug 2016 16:07:45 +0300 Subject: 1) added build_pkt when calculating offsets --- .../trex_control_plane/stl/services/scapy_server/scapy_server.py | 1 + 1 file changed, 1 insertion(+) (limited to 'scripts') diff --git a/scripts/automation/trex_control_plane/stl/services/scapy_server/scapy_server.py b/scripts/automation/trex_control_plane/stl/services/scapy_server/scapy_server.py index ca09333c..14cc0bfe 100755 --- a/scripts/automation/trex_control_plane/stl/services/scapy_server/scapy_server.py +++ b/scripts/automation/trex_control_plane/stl/services/scapy_server/scapy_server.py @@ -214,6 +214,7 @@ class scapy_service: def get_all_pkt_offsets(self,pkt_desc): pkt_protocols = pkt_desc.split('/') scapy_pkt = eval(pkt_desc) + scapy_pkt.build() total_protocols = len(pkt_protocols) res = {} for i in range(total_protocols): -- cgit 1.2.3-korg