如何在 ANSI C 中从以太网卡获取网络数据包?
我必须编写一些代码来使用 ANSI C 从 Windows 中的以太网卡检索网络数据包。有人能告诉我从哪里开始吗?
I have to write some code to retrieve network packets from an Ethernet card in Windows using ANSI C. Can anybody tell me where to get started?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
最简单的方法是使用 PCAP 库,此处有一个适用于 Windows 的版本
和一个基本示例此处
The easiest way to do this is to use the PCAP library, there's a version for Windows here
and a basic example here