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