From 2a15dfbf1b06c832e367ce6978cfd87c81df2b49 Mon Sep 17 00:00:00 2001 From: Guillaume Valadon <guillaume.valadon@ssi.gouv.fr> Date: Tue, 19 Apr 2016 13:30:34 +0200 Subject: [PATCH] Introducing the SCAPY_USE_PCAPDNET environment variable --- scapy/config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scapy/config.py b/scapy/config.py index 6c32d6d6..95fb43d2 100755 --- a/scapy/config.py +++ b/scapy/config.py @@ -363,8 +363,8 @@ extensions_paths: path or list of paths where extensions are to be looked for resolve = Resolve() noenum = Resolve() emph = Emphasize() - use_pcap = False - use_dnet = False + use_pcap = os.getenv("SCAPY_USE_PCAPDNET", "").lower().startswith("y") + use_dnet = os.getenv("SCAPY_USE_PCAPDNET", "").lower().startswith("y") use_winpcapy = False ipv6_enabled = socket.has_ipv6 ethertypes = ETHER_TYPES -- GitLab