LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 08-18-2012, 04:11 PM   #1
D4SH_SI4
LQ Newbie
 
Registered: Aug 2012
Posts: 7

Rep: Reputation: Disabled
how get 2 next hop in aodv in ns2,


hi
In aodv we have this "rt->rt_nexthop" for accessing to next hop but i want how to access to the 2's node is this true? rt->rt_nexthop_nexthop

tnx for your time
 
Old 08-20-2012, 10:27 PM   #2
Ygrex
Member
 
Registered: Nov 2004
Location: Russia (St.Petersburg)
Distribution: Debian
Posts: 666

Rep: Reputation: 68
please, clarify what is it the 2nd next-hop?
 
Old 08-21-2012, 09:26 AM   #3
D4SH_SI4
LQ Newbie
 
Registered: Aug 2012
Posts: 7

Original Poster
Rep: Reputation: Disabled
we have 3 nodes n1 n2 n3 and this 3 nodes in a route, when we want to access to n2 address from n1 we use rt->rt_nexthop
now i need the code to accees n3 address from n1.(n3 is the 2nd next hop)
so tanx fo r your attention.

---------- Post added 08-21-12 at 04:57 PM ----------

we have 3 nodes n1 n2 n3 and this 3 nodes in a route, when we want to access to n2 address from n1 we use rt->rt_nexthop
now i need the code to accees n3 address from n1.(n3 is the 2nd next hop)
so tanx fo r your attention.
 
Old 08-21-2012, 12:12 PM   #4
Ygrex
Member
 
Registered: Nov 2004
Location: Russia (St.Petersburg)
Distribution: Debian
Posts: 666

Rep: Reputation: 68
seems like you are asking about precursor list; you didn't specify which aodv implementation you are using, but most likely these rt-entries have .next attribute
 
Old 08-21-2012, 12:50 PM   #5
D4SH_SI4
LQ Newbie
 
Registered: Aug 2012
Posts: 7

Original Poster
Rep: Reputation: Disabled
Infact i don't wat to use precursor list, i use aodv which exist in ns 2.34, in aodv folder and in aodv.cc I uploaded it for you.at line 1216 you can see "ch->next_hop_ = rt->rt_nexthop;" . now i want to now command for 2nd node may be like this:
ch->next_hop_ = rt->rt_nexthop_nexthop; but this is not.
Attached Files
File Type: txt aodv.txt (35.6 KB, 11 views)
 
Old 08-21-2012, 09:33 PM   #6
Ygrex
Member
 
Registered: Nov 2004
Location: Russia (St.Petersburg)
Distribution: Debian
Posts: 666

Rep: Reputation: 68
well, RREP do not contain sequences of next-hops, but next-hop counter
 
Old 08-22-2012, 03:01 AM   #7
D4SH_SI4
LQ Newbie
 
Registered: Aug 2012
Posts: 7

Original Poster
Rep: Reputation: Disabled
how I add this counter for second next hop?
 
  


Reply

Tags
aodv, ns2


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
how to patch aodv-uu0.9.6 in ns2.34 khinmyo Linux - Newbie 46 07-12-2014 11:20 AM
ns2-aodv hello packet indumit18 Linux - Software 0 03-05-2012 05:33 AM
k-hop clustering algorithm on ns2 DeepanAnbu Linux - Newbie 0 02-03-2012 03:09 AM
after doing some modifications in aodv.cc file in ns2.34 i will get error breeze259 Linux - Newbie 1 01-05-2012 09:04 PM
help for two hop relay in ns2 rajkumar_marimuthu Linux - Newbie 0 04-28-2009 06:48 AM


All times are GMT -5. The time now is 09:27 AM.

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