Raw Sockets
hi
can someone plz help me out .i m working on raw sockets i have to capture a packet and divert it to another host. with the packet captured as payloadto the new packet created usin raw sockets. how can i make it some one kindly help me out.. ,,.... regards |
You may use libpcap to capture any packets portably. It lets you specify a filter based on information on the packet such as protocol, port numbers, etc. Then you may use libnet to replay them (possibly modified) or you may use the sockets API and tunnel them through it.
|
i m using libpcap library for capturing and i can capture the packet even but the problem is that how can i encapsulate the complete captured packet as payload to the newly created packet(using raw sockets).
|
All times are GMT -5. The time now is 12:45 PM. |