ARP协议数据包的捕获解析设计与.pptxVIP

  • 40
  • 0
  • 约1.57千字
  • 约 11页
  • 2017-05-26 发布于湖北
  • 举报
ARP协议数据包的捕获解析设计与课案

ARP 协议数据包的捕获解析设计与实现;一、ARP数据包结构;二、获取网卡列表;/* print devices list */ for (d = alldevs;d != NULL; d = d-next ) { printf(%d. %s,++i,d-name); if (d-description) printf((%s)\n,d-description); else printf((No description avaliable)\n); } if (i == 0) { printf(\nNo interfaces found! Make sure Winpcap is installed.\n); return -1; } printf(Enter the interface number(1-%d):,i); scanf(%d,inum); ;以混乱模式打开网络设备;编辑过滤器并设置过滤器,只捕获ARP数据包;//设置过滤器 if (pcap_setfilter(adhandle, fcode)0) { cout\nError setting the filter.\n;

文档评论(0)

1亿VIP精品文档

相关文档