Networking Forums

Networking Forums > Computer Networking > Linux Networking > RAW Sockets, how to read sent data?

Reply
Thread Tools Display Modes

RAW Sockets, how to read sent data?

 
 
Ludwig Moser
Guest
Posts: n/a

 
      04-03-2006, 11:24 AM
Hi NG!

I already implemented a litte program that 'sniffs' my local traffic; it
copies all incoming (received) traffic (does not remove it from stack)
my next step was doing the same for all sent data, but i wasnt able to do it
(actually i do not have a clue how to to it...)

i searched the web for any solutions&examples but all i found was fully
implemented libs which i do not want to use (winPcap etc.)

thanks in advance
Ludwig Moser

ps: i can post my current code (receive, which listens on ALL ports TCP and
UDP) if anyone is insterested in.



 
Reply With Quote
 
 
 
 
rrs.matrix@gmail.com
Guest
Posts: n/a

 
      04-04-2006, 05:46 AM
u can use the SOCK_PACKET mechanism.
using this u can sniff all incomming/outgoing traffic.
check up this link...
http://www.senie.com/dan/technology/sock_packet.html

 
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Data sent through sockets are *sometimes* inverted ?!!! mast4as Linux Networking 27 02-26-2012 01:02 PM
Data sent through sockets are *sometimes* inverted ?!!! mast4as Linux Networking 0 02-17-2012 07:38 AM
How to read all the route table entries using netlink sockets Sharanbasu Linux Networking 0 12-08-2003 09:42 AM



1 2 3 4 5 6 7 8 9 10 11