简体   繁体   中英

Dropping Packets By IP With C++

I'm writing a program in C++ that sniffs packets and compares them to a table by IP address. 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM