diff options
Diffstat (limited to 'scripts/api/stl/examples')
-rw-r--r-- | scripts/api/stl/examples/stl_simple_burst.py | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/scripts/api/stl/examples/stl_simple_burst.py b/scripts/api/stl/examples/stl_simple_burst.py index 91fc9e5e..1e3e7695 100644 --- a/scripts/api/stl/examples/stl_simple_burst.py +++ b/scripts/api/stl/examples/stl_simple_burst.py @@ -14,12 +14,15 @@ def simple_burst (): pkt = STLPktBuilder(pkt = Ether()/IP(src="16.0.0.1",dst="48.0.0.1")/UDP(dport=12,sport=1025)/IP()/'a_payload_example') # create two bursts and link them - s1 = STLStream(packet = pkt, - mode = STLTXSingleBurst(total_pkts = 5000)) + s1 = STLStream(name = 'A', + packet = pkt, + mode = STLTXSingleBurst(total_pkts = 5000), + next = 'B') - s2 = STLStream(packet = pkt, - mode = STLTXSingleBurst(total_pkts = 3000), - next_stream_id = s1.get_id()) + s2 = STLStream(name = 'B', + self_start = False, + packet = pkt, + mode = STLTXSingleBurst(total_pkts = 3000)) # connect to server c.connect() |