详解 pcap

您所在的位置:网站首页 pcap_if_t 详解 pcap

详解 pcap

#详解 pcap| 来源: 网络整理| 查看: 265

pcap是packet capture的缩写。意为抓包。

功能:查找所有网络设备

原型:int pcap_findalldevs_ex(char* source,  struct pcap_rmtauth *auth,  pcap_if_t** alldevs,   char* errbuf );

返回值:0表示查找成功。-1表示查找失败

参数说明:

source:

指定是本地适配器或者远程适配器

本地适配器:'rpcap://'

远程适配器:'rpcap://host:port'

抓包文件。'file://c:/myfolder/'.

Defined:

 

#define  PCAP_SRC_FILE_STRING   "file://"   String that will be used to determine the type of source in use (file, remote/local interface).  #define  PCAP_SRC_IF_STRING   "rpcap://"   String that will be used to determine the type of source in use (file, remote/local interface). 

 

    详细描述:

The formats allowed by the 



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3