Skip to content
Snippets Groups Projects
Commit 87f87ece authored by gpotter2's avatar gpotter2
Browse files

Fix L2ListenTcpdump

parent a37b38ab
No related branches found
No related tags found
No related merge requests found
...@@ -192,7 +192,15 @@ class L2ListenTcpdump(SuperSocket): ...@@ -192,7 +192,15 @@ class L2ListenTcpdump(SuperSocket):
self.outs = None self.outs = None
args = ['-w', '-', '-s', '65535'] args = ['-w', '-', '-s', '65535']
if iface is not None: if iface is not None:
args.extend(['-i', iface]) if WINDOWS:
try:
args.extend(['-i', iface.pcap_name])
except AttributeError:
args.extend(['-i', iface])
else:
args.extend(['-i', iface])
elif WINDOWS:
args.extend(['-i', conf.iface.pcap_name])
if not promisc: if not promisc:
args.append('-p') args.append('-p')
if not nofilter: if not nofilter:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment