How do I know which installed devices have an Internet connection in WINPCAP?

I knew that the winpcap library allowed a person to get extended information about installed devices ...

Considering all the network devices found on the computer, how do I know which one has an Internet connection ?!

thank:)

+3
source share
2 answers

This is usually not interesting to you. Usually you just ask for the network stack to establish a connection, and don't worry about the details.

However, each “device” will have its own IP address. You can request the network stack to use this IP address when connecting.

, , intenet, , IP- IP- IP- . IP- , . - .

+1

GetAdaptersInfo() , , GetIfEntry(). , , //.

IP-, , . , IPv6, IP4, .

, GetAdaptersInfo(), pcap_findalldevs(), . , .

+1

Source: https://habr.com/ru/post/1731797/


All Articles