Question

I want to filter (drop) incoming and outgoing packets with Winpcap library.

Is it possible filtering packets with Winpcap?

Was it helpful?

Solution

EDIT: You seem to mean that you want to block incoming or outgoing packets from the hosts's TCP/IP stack using WinPcap. 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.

When it comes to just filtering which traffic you want to capture/listen to, then yes, the tutorial has a page on that.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top