Skip to content

Commit

Permalink
Merge pull request phaethon#22 from p-l-/fix-tcpdump-call
Browse files Browse the repository at this point in the history
Use appropriate config value to call tcpdump
  • Loading branch information
guedou committed Jan 21, 2016
2 parents 6217358 + 2f1df68 commit b62f2b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scapy/arch/linux.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@

LOOPBACK_NAME="lo"

with os.popen("tcpdump -V 2> /dev/null") as _f:
with os.popen("%s -V 2> /dev/null" % conf.prog.tcpdump) as _f:
if _f.close() >> 8 == 0x7f:
log_loading.warning("Failed to execute tcpdump. Check it is installed and in the PATH")
TCPDUMP=0
Expand Down

0 comments on commit b62f2b2

Please sign in to comment.