packet capture and modification
Where should I look, or what library should I use to create a program in C that would capture packets, and be able to modify them, drop packets, or forward them?
Thanks :) |
To capture packets, take a look at libpcap.
|
would it permit me to alter the packets?
|
Let me rephrase my question:
How can I drop, forward, and otherwise intercept packets? I want to make a program that would intercept packets, and when it sees the need, it could drop those packets, forward them, modify them, and do all sorts of things to those packets. thanks |
Take a look at www.netfilter.org. The best way to intercept/modify packets would be at the linux kernel with the netfilter API, unless you wanna reinvent the wheel and do it with libpcap/libnet with forwarding disabled so you must do all the routing stuff too.
|
thanks! that's the answer I was looking for!
thanks primo :D |
All times are GMT -5. The time now is 11:04 AM. |