From e0b9e385873da7690fbe3c81f7a3f161490a150d Mon Sep 17 00:00:00 2001 From: Matias Fontanini Date: Sun, 7 Sep 2014 17:53:37 -0300 Subject: [PATCH] Utils::network_interface returns pcap compatible names on Windows. --- src/utils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.cpp b/src/utils.cpp index 8b8ff66..7dc1814 100644 --- a/src/utils.cpp +++ b/src/utils.cpp @@ -63,7 +63,7 @@ struct InterfaceCollector { #ifdef WIN32 bool operator() (PIP_ADAPTER_ADDRESSES addr) { - ifaces.insert(addr->AdapterName); + ifaces.insert(string("\\Device\\NPF_") + addr->AdapterName); return false; } #else