LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Raw Sockets (https://www.linuxquestions.org/questions/programming-9/raw-sockets-389196/)

Srikanth0210 12-04-2005 01:33 PM

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

primo 12-04-2005 04:21 PM

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.

Srikanth0210 12-05-2005 03:22 AM

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 01:50 PM.