summaryrefslogtreecommitdiffstats
path: root/scripts/stl/udp_1pkt_simple.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/stl/udp_1pkt_simple.py')
-rw-r--r--scripts/stl/udp_1pkt_simple.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/stl/udp_1pkt_simple.py b/scripts/stl/udp_1pkt_simple.py
index 31492291..2cfb9f1d 100644
--- a/scripts/stl/udp_1pkt_simple.py
+++ b/scripts/stl/udp_1pkt_simple.py
@@ -3,8 +3,10 @@ from trex_stl_lib.api import *
class STLS1(object):
def create_stream (self):
- return STLStream( packet = STLPktBuilder(pkt = Ether()/IP(src="16.0.0.1",dst="48.0.0.1")/UDP(dport=12,sport=1025)/(10*'x')),
- mode = STLTXCont() )
+ return STLStream( packet = STLPktBuilder(pkt = Ether(dst = "5")/IP(src="16.0.0.1",dst="48.0.0.1")/UDP(dport=12,sport=1025)/(10*'x')),
+ #mode = STLTXCont()
+ mode = STLTXSingleBurst(total_pkts = 1)
+ )
def get_streams (self, direction = 0):
# create 1 stream