From ad473cc85b73c7ac9fad6dd8742e1d16ded823b2 Mon Sep 17 00:00:00 2001 From: Dirk Loss <mail@dirk-loss.de> Date: Mon, 16 Nov 2009 20:53:38 +0100 Subject: [PATCH] Increased number of iface guesses on Windows for dnet/pcap mapping Some people have reported dnet interface names like "eth14" on Windows. --- scapy/arch/windows/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scapy/arch/windows/__init__.py b/scapy/arch/windows/__init__.py index a80cbce3..288eb0a4 100755 --- a/scapy/arch/windows/__init__.py +++ b/scapy/arch/windows/__init__.py @@ -102,11 +102,11 @@ class NetworkInterface(object): def _update_pcapdata(self): """Supplement more info from pypcap and the Windows registry""" - # XXX: We try eth0 - eth9 by bruteforce and match by IP address, + # XXX: We try eth0 - eth29 by bruteforce and match by IP address, # because only the IP is available in both pypcap and dnet. # This may not work with unorthodox network configurations and is # slow because we have to walk through the Windows registry. - for n in range(10): + for n in range(30): guess = "eth%s" % n win_name = pcapdnet.pcap.ex_name(guess) if win_name.endswith("}"): -- GitLab