summaryrefslogtreecommitdiffstats
path: root/scripts/stl/simple_3st.py
diff options
context:
space:
mode:
authorIdo Barnea <ibarnea@cisco.com>2016-06-21 15:30:16 +0300
committerIdo Barnea <ibarnea@cisco.com>2016-06-21 15:30:34 +0300
commit3bf54917e0d8817dbadaae73a7545a011676cccf (patch)
treef1ca0e91e67effc90dcac982796d31348825735f /scripts/stl/simple_3st.py
parent131bb55c38c0e59d14043766b0d3a38d5f775771 (diff)
profile fixes
Diffstat (limited to 'scripts/stl/simple_3st.py')
-rw-r--r--scripts/stl/simple_3st.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/stl/simple_3st.py b/scripts/stl/simple_3st.py
index 8979057c..ae388f13 100644
--- a/scripts/stl/simple_3st.py
+++ b/scripts/stl/simple_3st.py
@@ -8,15 +8,15 @@ class STLS1(object):
def create_stream (self):
- # create a base packet and pad it to size
- size = self.fsize - 4; # no FCS
+ # Create base packet and pad it to size
+ size = self.fsize - 4; # HW will add 4 bytes ethernet FCS
base_pkt = Ether()/IP(src="16.0.0.1",dst="48.0.0.1")/UDP(dport=12,sport=1025)
base_pkt1 = Ether()/IP(src="16.0.0.2",dst="48.0.0.1")/UDP(dport=12,sport=1025)
base_pkt2 = Ether()/IP(src="16.0.0.3",dst="48.0.0.1")/UDP(dport=12,sport=1025)
pad = max(0, size - len(base_pkt)) * 'x'
- return STLProfile( [ STLStream( isg = 1.0, # star in delay in usec
+ return STLProfile( [ STLStream( isg = 1.0, # start in delay in usec
packet = STLPktBuilder(pkt = base_pkt/pad),
mode = STLTXCont( pps = 10),
),