From 2f1df68512c4437e366fbfa659e9d6b3dec4ba09 Mon Sep 17 00:00:00 2001 From: Pierre LALET <pierre.lalet@cea.fr> Date: Thu, 21 Jan 2016 14:21:02 +0100 Subject: [PATCH] Use appropriate config value to call tcpdump --- scapy/arch/linux.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scapy/arch/linux.py b/scapy/arch/linux.py index 222cd011..5587b7cd 100644 --- a/scapy/arch/linux.py +++ b/scapy/arch/linux.py @@ -69,7 +69,7 @@ RTF_REJECT = 0x0200 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 -- GitLab