LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-09-2003, 04:08 PM   #1
linuxnw
LQ Newbie
 
Registered: Dec 2003
Posts: 3

Rep: Reputation: 0
ping without raw socket


Hello all,
Iam wondering if there is any way to send/receive ICMP ECHO and REPLY messages w/o using RAW socket??

thank you
 
Old 12-09-2003, 06:45 PM   #2
nikhiljosh
Member
 
Registered: Jun 2001
Posts: 126

Rep: Reputation: 16
I've read in a book by Bach that ICMP echo uses raw BSD sockets,
can u give more info as what are u trying to achieve,
 
Old 12-09-2003, 11:54 PM   #3
linuxnw
LQ Newbie
 
Registered: Dec 2003
Posts: 3

Original Poster
Rep: Reputation: 0
yeah thats correct actual/known PING program uses RAW sockets.

Iam working on my masters project and in that i needed to find "distance between given nodes" .. distance can be any metric like how many hops away,how much time it takes to go frm one nore to other etc,.

i tought i can construct an ICMP-ECHO message and send to the other node and get reply and parse the receive messages to get the required data,as used in PING/Traceroute programs. but problem here is,as said, they need/use raw sockets. so i thought of asking if any body knew any method of getting the work done w/o RAW sockets.

if not this info.. any suggestions on how to get the above said information would be great!!

thanks
 
Old 12-09-2003, 11:57 PM   #4
linuxnw
LQ Newbie
 
Registered: Dec 2003
Posts: 3

Original Poster
Rep: Reputation: 0
BTW for the moment i have solved the problem by popening ping and parsing the result!!
 
  


Reply



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
Raw socket with perl Whiteghost Linux - General 1 10-14-2005 10:29 AM
Help with raw socket programming tuxfood Programming 2 07-25-2005 01:17 PM
Raw Socket Programing djgerbavore Programming 2 08-18-2004 12:58 PM
Using Raw Socket for UDP myself_rajat Linux - Networking 0 05-17-2004 03:35 AM
Socket Raw linuxanswer Programming 1 04-01-2004 09:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:05 PM.

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
Open Source Consulting | Domain Registration