Domanda

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

Is it possible filtering packets with Winpcap?

È stato utile?

Soluzione

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.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top