摘要:
1.pcap_dump()和pcap_live_dump() void pcap_dump (u_char *user, const struct pcap_pkthdr *h, const u_char *sp)将数据包保存到磁盘 int pcap_live_dump (pcap_t *p, ch 阅读全文
posted @ 2016-04-15 13:22
I-hate-codes
阅读(250)
评论(0)
推荐(0)
摘要:
用 Microsoft Visual Studio 2010创建一个使用 wpcap.dll 的应用程序,需要按一下步骤: 1.在每一个使用了库的源程序中,将 pcap.h 头文件包含(include)进来。 2.如果你在程序中使用了 WinPcap 中提供给 Win32 平台的特有的函数, 记得在 阅读全文
posted @ 2016-04-15 10:28
I-hate-codes
阅读(209)
评论(0)
推荐(0)
摘要:
以下只是一部分,更多见于winpcap手册 1.typedef void(*) pcap_handler (u_char *user, const struct pcap_pkthdr *pkt_header, const u_char *pkt_data)接受数据包的回调函数的原型 2.pcap_ 阅读全文
posted @ 2016-04-15 09:22
I-hate-codes
阅读(418)
评论(0)
推荐(0)