Help answer threads with 0 replies.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 12-04-2005, 01:33 PM   #1
LQ Newbie
Registered: Aug 2004
Location: india
Posts: 5

Rep: Reputation: 0
Raw Sockets

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..
Old 12-04-2005, 04:21 PM   #2
Registered: Jun 2005
Posts: 542

Rep: Reputation: 34
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.
Old 12-05-2005, 03:22 AM   #3
LQ Newbie
Registered: Aug 2004
Location: india
Posts: 5

Original Poster
Rep: Reputation: 0
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).


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Pblm in Raw Sockets fpfernando Linux - Software 1 10-08-2005 01:04 AM
Raw Ethernet Sockets alanwolfen Programming 2 01-06-2005 06:51 PM
raw sockets and C wrongman Programming 3 05-04-2004 02:17 PM
can I use mmap with raw sockets? kanth Programming 2 02-28-2004 12:42 PM
raw sockets BashTin Programming 1 06-07-2003 06:34 AM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:30 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration