diff --git a/scapy/config.py b/scapy/config.py index 6c32d6d61bf64c2207572f739d9c0e57ae72ccfc..95fb43d2c028e51efa2c5722bce55cb61f7a6128 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