@@ -8,7 +8,7 @@ class LiveCapture(Capture):
8
8
"""
9
9
10
10
def __init__ (self , interface = None , bpf_filter = None , display_filter = None , only_summaries = False , decryption_key = None ,
11
- encryption_type = 'wpa-pwk' , output_file = None , decode_as = None , tshark_path = None , override_prefs = None ):
11
+ encryption_type = 'wpa-pwk' , output_file = None , decode_as = None , tshark_path = None , override_prefs = None , capture_filter = None ):
12
12
"""
13
13
Creates a new live capturer on a given interface. Does not start the actual capture itself.
14
14
@@ -25,11 +25,12 @@ def __init__(self, interface=None, bpf_filter=None, display_filter=None, only_su
25
25
it attempt to decode any port 8888 traffic as HTTP. See tshark documentation for details.
26
26
:param tshark_path: Path of the tshark binary
27
27
:param override_prefs: A dictionary of tshark preferences to override, {PREFERENCE_NAME: PREFERENCE_VALUE, ...}.
28
+ :param capture_filter: Capture (wireshark) filter to use.
28
29
"""
29
30
super (LiveCapture , self ).__init__ (display_filter = display_filter , only_summaries = only_summaries ,
30
31
decryption_key = decryption_key , encryption_type = encryption_type ,
31
32
output_file = output_file , decode_as = decode_as , tshark_path = tshark_path ,
32
- override_prefs = override_prefs )
33
+ override_prefs = override_prefs , capture_filter = capture_filter )
33
34
self .bpf_filter = bpf_filter
34
35
35
36
if interface is None :
0 commit comments