summaryrefslogtreecommitdiffstats
path: root/scripts/stl/pcap.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/stl/pcap.py')
-rw-r--r--scripts/stl/pcap.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/stl/pcap.py b/scripts/stl/pcap.py
index bcf2257f..3dd46588 100644
--- a/scripts/stl/pcap.py
+++ b/scripts/stl/pcap.py
@@ -7,9 +7,9 @@ class STLPcap(object):
def __init__ (self, pcap_file):
self.pcap_file = pcap_file
- def get_streams (self, direction = 0, **kwargs):
+ def get_streams (self, direction = 0, ipg_usec = 10.0, loop_count = 1, **kwargs):
- profile = STLProfile.load_pcap(self.pcap_file, ipg_usec = kwargs.get('ipg_usec', 10.0), loop_count = kwargs.get('loop_count', 1))
+ profile = STLProfile.load_pcap(self.pcap_file, ipg_usec = ipg_usec, loop_count = loop_count)
return profile.get_streams()