I'm writing a program in C++ that sniffs packets and compares them to a table by IP addr开发者_C百科ess. I would ike to know how to "Drop A Packet" if it does not meet the criteria that I setup. Everything is done, the sniffer, the criteria. I just need to know how to drop the packet... Windows 7, Visual Studio 2010.
In general, packet sniffers don't modify the underlying stream, they just observe it.
It sound like what you really want is some sort of transparent proxy.
However, you should post some sample code or more details on what you are doing, since we have no idea how you actually implemented anything, and thus can't offer any suggestions.
精彩评论