LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices



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

Rep: Reputation: 0
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
 
Old 12-04-2005, 05:21 PM   #2
primo
Member
 
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, 04:22 AM   #3
Srikanth0210
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).
 
  


Reply


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 02:04 AM
Raw Ethernet Sockets alanwolfen Programming 2 01-06-2005 07:51 PM
raw sockets and C wrongman Programming 3 05-04-2004 03:17 PM
can I use mmap with raw sockets? kanth Programming 2 02-28-2004 01:42 PM
raw sockets BashTin Programming 1 06-07-2003 07:34 AM


All times are GMT -5. The time now is 11:34 AM.

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