LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 07-12-2004, 03:48 PM   #1
nedian123
Member
 
Registered: Jun 2004
Location: PAKISTAN
Posts: 46

Rep: Reputation: 15
Unhappy plz plz solve my route mapping problem


hi,

Actually i have to count number of routers to reach a specific IP. What i did is i created a packet with the help of DatagramPacket class and used the method "setAddress(InetAddress ip)".NOTE:I m sending the packet to my self...
DatagramPacket obj3= new DatagramPacket(data1,10,obj2.getLocalHost(),25);
Now since this class sends the packet thru a connectionless facility.
therefore i didn't used the DatagramSocket function connect.
Then i used the function of class DatagramSocket the function is
send(obj3);

Now to count number of routers i have to use the abstract class DatagramSocketImpl and its method getTimeToLive() and setTimeToLive()

Since these methods are abstract what would be its implementation.......
Shall i receive that sent packet(which was sent to me by myself) how will i access its new TTL value updated by ROUTER........, with which function i will get the intermediate IP's(i.e. Router IP's)


Kindly solve my problem...............
 
Old 07-12-2004, 09:41 PM   #2
Capt_Caveman
Senior Member
 
Registered: Mar 2003
Distribution: Fedora
Posts: 3,658

Rep: Reputation: 57
have you looked at the traceroute man page?
 
  


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
PLZ, PLZ help - need some info kevmif Linux - General 9 12-17-2007 06:12 AM
just 1 little problem to solve before I can run GTA III in wine plz help! vegetassj2 Linux - Games 2 04-27-2005 11:20 AM
plz plz help me regarding route mapping nedian123 Programming 1 07-13-2004 08:17 AM
plz, help me (plz realy ) h4ng4m3 Linux - General 10 08-18-2003 06:07 AM
redhat problems plz plz help sap666 Linux - Newbie 5 07-30-2003 10:57 AM


All times are GMT -5. The time now is 06:41 PM.

Main Menu
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