packet - 是否可以使用 Winpcap 过滤(丢弃)数据包?

标签 packet winpcap

我想使用 Winpcap 库过滤(丢弃)传入和传出的数据包。

是否可以使用Winpcap过滤数据包?

最佳答案

编辑:您的意思似乎是要使用 WinPcap 阻止来自主机 TCP/IP 堆栈的传入或传出数据包。 That it cannot do ;

WinPcap receives and sends the packets independently from the host protocols, like TCP-IP. This means that it isn't able to block, filter or manipulate the traffic generated by other programs on the same machine: it simply "sniffs" the packets that transit on the wire. Therefore, it does not provide the appropriate support for applications like traffic shapers, QoS schedulers and personal firewalls.

如果只是过滤您想要捕获/监听的流量,那么是的,the tutorial有一个页面。

关于packet - 是否可以使用 Winpcap 过滤(丢弃)数据包?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16654030/

相关文章:

browser - 开始浏览时发送的第一个数据包

http - Wireshark 如何将 TCP 数据包的协议(protocol)识别为 HTTP?

tcp - 如何使用 gsocket 管理多数据包发送?

python - 在数据包中添加有效负载

python - 用pip安装后尝试导入scapy失败

c - 接收不同MAC地址的数据包

java - Windows 7 上的 Jpcap(32 位)

c# - 发送和接收 UDP 数据包

python - 查找已从 pcap 数据传输了多少数据

java - 无法使用 jpcap 打开设备