Network Address Translation
Hello All,
I am presently trying to spoof the packets on the network that is basically for writing a simple router kind of thing... As I can sniff the packets but resulting to the copy of the packet. But as we know the fundamental aspect of NAT is to modify the packet address, so I am not getting how to do that. I mean can anyone help me with a small and simple router program in C which can just grab the packet (not copying of the packet as sniffers do) do the packet modification and then transmitting that packet over the link without the help of netfilter or any builtin library. I want to use the core TCP/IP functions only..... Actually I tried but am not finding how to use data structures like skbuff, net_device etc.
Thanks and regards,
Ashutosh
|