⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 wpcap_tut2.txt

📁 用来监视网络通信数据的源代码和应用程序,方便网络程序底层开发.
💻 TXT
字号:
/** @ingroup wpcap_tut
 */

/** @defgroup wpcap_tut2 Obtaining advanced information about installed devices
 *  @{

Lesson 1 (\ref wpcap_tut1) demonstrated how to get basic information (i.e. device name and description) about available adapters. Actually, WinPcap provides also other advanced information. In particular, every pcap_if structure returned by pcap_findalldevs() contains also a list of pcap_addr structures, with:
- a list of addresses for that interface.
- a list of netmasks (each of which corresponds to an entry in the addresses list).
- a list of broadcast addresses (each of which corresponds to an entry in the addresses list).
- a list of destination addresses (each of which corresponds to an entry in the addresses list).

Additionally, the pcap_findalldevs_ex() allows returning also remote adapters and a list of pcap files that are located in a given local folder.

The following sample provides an ifprint() function that prints the whole content of a pcap_if structure. It is invoked by the program for every entry returned by pcap_findalldevs().

\include iflist/iflist.c

\ref wpcap_tut1 "<<< Previous" \ref wpcap_tut3 "Next >>>"

@}*/

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -