diff options
Diffstat (limited to 'scripts/stl/udp_1pkt_pcap.py')
-rw-r--r-- | scripts/stl/udp_1pkt_pcap.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/stl/udp_1pkt_pcap.py b/scripts/stl/udp_1pkt_pcap.py index 9fb0e269..2a364810 100644 --- a/scripts/stl/udp_1pkt_pcap.py +++ b/scripts/stl/udp_1pkt_pcap.py @@ -1,11 +1,14 @@ from trex_stl_lib.api import * +import os # stream from pcap file. continues pps 10 in sec +CP = os.path.join(os.path.dirname(__file__)) + class STLS1(object): def get_streams (self, direction = 0, **kwargs): - return [STLStream(packet = STLPktBuilder(pkt ="stl/yaml/udp_64B_no_crc.pcap"), # path relative to pwd + return [STLStream(packet = STLPktBuilder(pkt = os.path.join(CP, "yaml/udp_64B_no_crc.pcap")), mode = STLTXCont(pps=10)) ] #rate continues, could be STLTXSingleBurst,STLTXMultiBurst |