Dear All, I am using Windows 7 Home Premium 64-bit.
I copied and pasted the codes from http://www.winpcap.org/docs/docs_411/html/group__wpcap__tut3.html to Visual C++ 2008 Express and compiled it. It seems like the application does not detect some of my network adapters. I tried to run "ipconfig /all" command in the command prompt, and the following are the output: C:\Users\user>ipconfig /all > > Windows IP Configuration > > Host Name . . . . . . . . . . . . : user-PC > Primary Dns Suffix . . . . . . . : > Node Type . . . . . . . . . . . . : Hybrid > IP Routing Enabled. . . . . . . . : No > WINS Proxy Enabled. . . . . . . . : No > > Ethernet adapter MyNetwork - VPN Client: > > Media State . . . . . . . . . . . : Media disconnected > Connection-specific DNS Suffix . : > Description . . . . . . . . . . . : VPN Client Adapter - MyNetwork > Physical Address. . . . . . . . . : 00-AC-3D-2C-CF-D8 > DHCP Enabled. . . . . . . . . . . : Yes > Autoconfiguration Enabled . . . . : Yes > > Wireless LAN adapter Wireless Network Connection 2: > > Media State . . . . . . . . . . . : Media disconnected > Connection-specific DNS Suffix . : > Description . . . . . . . . . . . : Microsoft Virtual WiFi Miniport > Adapter > Physical Address. . . . . . . . . : F6-7B-CB-81-B6-A2 > DHCP Enabled. . . . . . . . . . . : Yes > Autoconfiguration Enabled . . . . : Yes > > Wireless LAN adapter Wireless Network Connection: > > Media State . . . . . . . . . . . : Media disconnected > Connection-specific DNS Suffix . : > Description . . . . . . . . . . . : Atheros AR5B93 Wireless Network > Adapter > Physical Address. . . . . . . . . : F0-7B-CB-81-B6-A2 > DHCP Enabled. . . . . . . . . . . : Yes > Autoconfiguration Enabled . . . . : Yes > > Ethernet adapter Local Area Connection: > > Media State . . . . . . . . . . . : Media disconnected > Connection-specific DNS Suffix . : > Description . . . . . . . . . . . : Atheros AR8151 PCI-E Gigabit > Ethernet Con > troller > Physical Address. . . . . . . . . : C8-0A-A9-4A-D4-72 > DHCP Enabled. . . . . . . . . . . : Yes > Autoconfiguration Enabled . . . . : Yes > > Ethernet adapter VirtualBox Host-Only Network: > > Connection-specific DNS Suffix . : > Description . . . . . . . . . . . : VirtualBox Host-Only Ethernet > Adapter > Physical Address. . . . . . . . . : 08-00-27-00-64-E6 > DHCP Enabled. . . . . . . . . . . : No > Autoconfiguration Enabled . . . . : Yes > Link-local IPv6 Address . . . . . : > fe80::9d48:38ec:d383:4dee%27(Preferred) > IPv4 Address. . . . . . . . . . . : 192.168.56.1(Preferred) > Subnet Mask . . . . . . . . . . . : 255.255.255.0 > Default Gateway . . . . . . . . . : > DHCPv6 IAID . . . . . . . . . . . : 805830695 > DHCPv6 Client DUID. . . . . . . . : > 00-01-00-01-13-49-CF-47-C8-0A-A9-4A-D4-72 > > DNS Servers . . . . . . . . . . . : fec0:0:0:ffff::1%1 > fec0:0:0:ffff::2%1 > fec0:0:0:ffff::3%1 > NetBIOS over Tcpip. . . . . . . . : Enabled > > Ethernet adapter VMware Network Adapter VMnet1: > > Connection-specific DNS Suffix . : > Description . . . . . . . . . . . : VMware Virtual Ethernet Adapter for > VMnet > 1 > Physical Address. . . . . . . . . : 00-50-56-C0-00-01 > DHCP Enabled. . . . . . . . . . . : No > Autoconfiguration Enabled . . . . : Yes > Link-local IPv6 Address . . . . . : > fe80::6115:6d2d:afe4:a66d%41(Preferred) > IPv4 Address. . . . . . . . . . . : 192.168.152.1(Preferred) > Subnet Mask . . . . . . . . . . . : 255.255.255.0 > Default Gateway . . . . . . . . . : > DHCPv6 IAID . . . . . . . . . . . : 1107316822 > DHCPv6 Client DUID. . . . . . . . : > 00-01-00-01-13-49-CF-47-C8-0A-A9-4A-D4-72 > > DNS Servers . . . . . . . . . . . : fec0:0:0:ffff::1%1 > fec0:0:0:ffff::2%1 > fec0:0:0:ffff::3%1 > NetBIOS over Tcpip. . . . . . . . : Enabled > > Ethernet adapter VMware Network Adapter VMnet8: > > Connection-specific DNS Suffix . : > Description . . . . . . . . . . . : VMware Virtual Ethernet Adapter for > VMnet > 8 > Physical Address. . . . . . . . . : 00-50-56-C0-00-08 > DHCP Enabled. . . . . . . . . . . : No > Autoconfiguration Enabled . . . . : Yes > Link-local IPv6 Address . . . . . : > fe80::6135:a580:48d9:b458%43(Preferred) > IPv4 Address. . . . . . . . . . . : 192.168.254.1(Preferred) > Subnet Mask . . . . . . . . . . . : 255.255.255.0 > Default Gateway . . . . . . . . . : > DHCPv6 IAID . . . . . . . . . . . : 1140871254 > DHCPv6 Client DUID. . . . . . . . : > 00-01-00-01-13-49-CF-47-C8-0A-A9-4A-D4-72 > > DNS Servers . . . . . . . . . . . : fec0:0:0:ffff::1%1 > fec0:0:0:ffff::2%1 > fec0:0:0:ffff::3%1 > NetBIOS over Tcpip. . . . . . . . : Enabled > > Tunnel adapter isatap.{301CF116-89E0-4037-AD49-1E03408FB1F4}: > > Media State . . . . . . . . . . . : Media disconnected > Connection-specific DNS Suffix . : > Description . . . . . . . . . . . : Microsoft ISATAP Adapter > Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0 > DHCP Enabled. . . . . . . . . . . : No > Autoconfiguration Enabled . . . . : Yes > > Tunnel adapter isatap.{65F0F8C3-6333-4869-A03E-275BEDBDFFE4}: > > Media State . . . . . . . . . . . : Media disconnected > Connection-specific DNS Suffix . : > Description . . . . . . . . . . . : Microsoft ISATAP Adapter #3 > Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0 > DHCP Enabled. . . . . . . . . . . : No > Autoconfiguration Enabled . . . . : Yes > > Tunnel adapter Teredo Tunneling Pseudo-Interface: > > Media State . . . . . . . . . . . : Media disconnected > Connection-specific DNS Suffix . : > Description . . . . . . . . . . . : Teredo Tunneling Pseudo-Interface > Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0 > DHCP Enabled. . . . . . . . . . . : No > Autoconfiguration Enabled . . . . : Yes > > Tunnel adapter isatap.{C99B10E4-AF74-4E16-B32C-1721E313412B}: > > Media State . . . . . . . . . . . : Media disconnected > Connection-specific DNS Suffix . : > Description . . . . . . . . . . . : Microsoft ISATAP Adapter #4 > Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0 > DHCP Enabled. . . . . . . . . . . : No > Autoconfiguration Enabled . . . . : Yes > > Tunnel adapter isatap.{8325B539-7117-4591-8E47-CDDB303BD623}: > > Media State . . . . . . . . . . . : Media disconnected > Connection-specific DNS Suffix . : > Description . . . . . . . . . . . : Microsoft ISATAP Adapter #6 > Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0 > DHCP Enabled. . . . . . . . . . . : No > Autoconfiguration Enabled . . . . : Yes > > Tunnel adapter isatap.{04018DBA-0F4A-40CA-AA8D-978389D0E3BF}: > > Media State . . . . . . . . . . . : Media disconnected > Connection-specific DNS Suffix . : > Description . . . . . . . . . . . : Microsoft ISATAP Adapter #7 > Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0 > DHCP Enabled. . . . . . . . . . . : No > Autoconfiguration Enabled . . . . : Yes > > Tunnel adapter isatap.{1400CEE9-3B52-4DFC-9ABD-74A51F5323AC}: > > Media State . . . . . . . . . . . : Media disconnected > Connection-specific DNS Suffix . : > Description . . . . . . . . . . . : Microsoft ISATAP Adapter #2 > Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0 > DHCP Enabled. . . . . . . . . . . : No > Autoconfiguration Enabled . . . . : Yes > > Tunnel adapter isatap.{3A465CF1-C001-42E7-9D12-C3270A536B58}: > > Media State . . . . . . . . . . . : Media disconnected > Connection-specific DNS Suffix . : > Description . . . . . . . . . . . : Microsoft ISATAP Adapter #5 > Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0 > DHCP Enabled. . . . . . . . . . . : No > Autoconfiguration Enabled . . . . : Yes > When I run my application, the following are the output: 1. rpcap://\Device\NPF_{3A465CF1-C001-42E7-9D12-C3270A536B58} (Network > adapter ' > Microsoft' on local host) > 2. rpcap://\Device\NPF_{65F0F8C3-6333-4869-A03E-275BEDBDFFE4} (Network > adapter ' > VPN Client Adapter - mynetwork' on local host) > 3. rpcap://\Device\NPF_{C99B10E4-AF74-4E16-B32C-1721E313412B} (Network > adapter ' > Sun' on local host) > 4. rpcap://\Device\NPF_{301CF116-89E0-4037-AD49-1E03408FB1F4} (Network > adapter ' > Atheros L1C PCI-E Ethernet Controller' on local host) > 5. rpcap://\Device\NPF_{1400CEE9-3B52-4DFC-9ABD-74A51F5323AC} (Network > adapter ' > Microsoft' on local host) > 6. rpcap://\Device\NPF_{04018DBA-0F4A-40CA-AA8D-978389D0E3BF} (Network > adapter ' > VMware Virtual Ethernet Adapter' on local host) > 7. rpcap://\Device\NPF_{8325B539-7117-4591-8E47-CDDB303BD623} (Network > adapter ' > VMware Virtual Ethernet Adapter' on local host) > Enter the interface number (1-7): > According to the application output above, the application does not detect my wireless adapter "Atheros AR5B93 Wireless Network Adapter" together with other "tunnel" adapters. Why? Regards,
_______________________________________________ Winpcap-users mailing list [email protected] https://www.winpcap.org/mailman/listinfo/winpcap-users
