Can I use Winpkfltr to look at the ip header and make a decision on to drop/forward the packet?
Basically I would like to have a function:
int drop_forward(sourceip, sourceport, destip, destport);
This function should be able to drop or forward the packet based on some criteria. But here is the problem:
I dont want to drop all packets going to certain ip and port. For the same ip and port, I only want to drop say 10% of the packets and for some other ip/port, drop 20% of the packets.
Can I achieve this using winpkfilter?
IF so, can you give me some hints?
Thank you very much.