摘要:
知道如何获取适配器的信息了,那我们就开始一项更具意义的工作,打开适配器并捕获数据包。编写一个程序,将每一个通过适配器的数据包打印出来。打开设备的函数是pcap_open()。(Open a generic source in order to capture / send (WinPcap on... 阅读全文
摘要:
由pcap_findalldevs_ex()返回的每一个pcap_if结构体,都包含一个pcap_addr结构体,这个结构体由如下元素组成:一个地址列表一个掩码列表 (each of which corresponds to an entry in the addresses list).一个广播地... 阅读全文
摘要:
获取设备列表int pcap_findalldevs_ex ( char * source, //The 'source' is a parameter that tells the function where the lookup has to be done and it us... 阅读全文
摘要:
使用WinPcap编程创建一个使用wpcap.dll的应用程序用 Microsoft Visual C++ 创建一个使用wpcap.dll的应用程序,需要按以下步骤:在每一个使用了库的源程序中,将pcap.h头文件包含(include)进来。如果你在程序中使用了WinPcap中提供给Win32平台的... 阅读全文