summaryrefslogtreecommitdiffstats
path: root/scripts/automation/trex_control_plane/stl/services/scapy_server
diff options
context:
space:
mode:
authoritraviv <itraviv@cisco.com>2016-08-04 16:07:45 +0300
committeritraviv <itraviv@cisco.com>2016-08-04 16:07:45 +0300
commit930120461225e602e366a404180a48cdaf657dcf (patch)
tree2dd8d59a4e6be2f39adff05748a62f45381e889f /scripts/automation/trex_control_plane/stl/services/scapy_server
parent36f1db884d653f077bdafab908cbbf65833e8772 (diff)
1) added build_pkt when calculating offsets
Diffstat (limited to 'scripts/automation/trex_control_plane/stl/services/scapy_server')
-rwxr-xr-xscripts/automation/trex_control_plane/stl/services/scapy_server/scapy_server.py1
1 files changed, 1 insertions, 0 deletions
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):