diff options
author | imarom <imarom@cisco.com> | 2016-06-02 15:08:39 +0300 |
---|---|---|
committer | imarom <imarom@cisco.com> | 2016-06-02 15:08:39 +0300 |
commit | 825a35322828e53080549c4f09bb9469d7806387 (patch) | |
tree | 2933d66b4bdf44abf622dbe746efd604d52d8e46 /scripts/external_libs | |
parent | 8898b74ac605224ff254e66308ef68a133360bf5 (diff) |
python3 scapy fix (TCPDUMP)
Diffstat (limited to 'scripts/external_libs')
-rw-r--r-- | scripts/external_libs/scapy-2.3.1/python3/scapy/arch/linux.py | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/scripts/external_libs/scapy-2.3.1/python3/scapy/arch/linux.py b/scripts/external_libs/scapy-2.3.1/python3/scapy/arch/linux.py index 3eab16c6..40ff9e35 100644 --- a/scripts/external_libs/scapy-2.3.1/python3/scapy/arch/linux.py +++ b/scripts/external_libs/scapy-2.3.1/python3/scapy/arch/linux.py @@ -71,13 +71,14 @@ PCAP_ERRBUF_SIZE=256 LOOPBACK_NAME="lo" -with os.popen("tcpdump -V 2> /dev/null") as _f: - if _f.close() >> 8 == 0x7f: - log_loading.warning("Failed to execute tcpdump. Check it is installed and in the PATH") - TCPDUMP=0 - else: - TCPDUMP=1 -del(_f) +#with os.popen("tcpdump -V 2> /dev/null") as _f: +# if _f.close() >> 8 == 0x7f: +# log_loading.warning("Failed to execute tcpdump. Check it is installed and in the PATH") +# TCPDUMP=0 +# else: +# TCPDUMP=1 +#del(_f) +TCPDUMP=0 def get_if_raw_hwaddr(iff): |