The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Special Forums > IP Networking
.
google unix.com



IP Networking Learn TCP/IP, Internet Protocol, Routing, Routers, Network protocols in this UNIX and Linux forum.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
need help with sockets crunchyuser High Level Programming 1 10-01-2008 05:55 AM
Carreer:Networking Programming in Unix (C programming Language) vibhory2j UNIX for Dummies Questions & Answers 5 09-05-2008 08:57 PM
Programming Sockets to Reconnect raistie High Level Programming 2 12-09-2007 02:10 AM
HELP!! TLI vs Sockets? adiaconou UNIX for Dummies Questions & Answers 1 06-11-2007 01:30 AM
Sockets in use kjbaumann SUN Solaris 1 07-14-2006 03:06 PM

Reply
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 08-28-2009
Sandia_man Sandia_man is offline
Registered User
  
 

Join Date: Aug 2008
Posts: 17
Raw Sockets Programming

Hi everybody!!
I'm studding at the university raw sockets, but i can't find a good place to read about them...
Does anybody now where i can find some information???
I've been goggling a lot but couldn't find nothing useful, just man pages...

by the way, I'm programming under Linux...

Bye!
  #2 (permalink)  
Old 08-29-2009
Loic Domaigne Loic Domaigne is offline
Registered User
  
 

Join Date: Aug 2009
Posts: 10
Hello Sandia_man,

I recommend Stevens classic "Unix Network Programming: Volume 1, the sockets networking API" (3rd edition) that has a chapter about raw socket and datalink: chap 27 und 28 pp 735-816.

You may also study the source of programs link ping, traceroute etc. that use raw socket.

HTH,
Loïc
  #3 (permalink)  
Old 08-30-2009
Sandia_man Sandia_man is offline
Registered User
  
 

Join Date: Aug 2008
Posts: 17
great!!
thanks a lot, I'm going to read it...
It's a good idea to study the source of ping and traceroute!!

bye!
  #4 (permalink)  
Old 08-31-2009
Zykl0n-B Zykl0n-B is offline
Registered User
  
 

Join Date: Aug 2008
Posts: 25
RAW Sockets aren't a difficult thing, but you'll need deep knowledge of TCP/IP stack protocols, and practice with socket programming.

I recommend you to read a very short book named "TCP/IP Sockets in C: Practical Guide for Programmers - Michael J. Donahoo, Kenneth L. Calvert", it's not about raw sockets, but TCP/IP sockets.

Then, when you feel comfortable with the socket calls, options, and types, here is a GREAT text about raw socket programming with examples and source code, which talks about TCP/UDP/IP/ICMP, and how to calculate headers checksums:

http://packetstormsecurity.nl/progra...raw_socket.txt

Oh, right, for the TCP/IP "theory" part, i recommend you the following books:

The TCP/IP Guide: A comprehensive, illustrated Internet Protocols Reference - Charles M. Kozierok
TCP/IP Clearly explained 4th edition - Pete Loshin
TCP/IP Illustrated, Volume 2: The Implementation - Gary R. Wright, W. Richard Stevens

And of course, UNIX® Network Programming Volume 1, Third Edition: The Sockets Networking API - W. Richard Stevens, Bill Fenner, Andrew M. Rudoff
Best regards.
  #5 (permalink)  
Old 08-31-2009
Sandia_man Sandia_man is offline
Registered User
  
 

Join Date: Aug 2008
Posts: 17
Thanks a lot, I think I know enough of TCP/IP because I already have a networks course... Now I'm in network programming one... but it's good to know where I can find more information!!! When I start programming always appear some detail that I can't remember...
I'm reading a lot from different sources in intenet, but it's always better to have a good book...

Thanks again!!!
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On




All times are GMT -4. The time now is 05:00 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0