LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-16-2015, 11:24 AM   #1
mary1001
Member
 
Registered: Jul 2014
Location: Iran
Posts: 76

Rep: Reputation: Disabled
error in use a trust table that i added in aodv in ns2


hi
i have added a trust table like the routeing table in aodv routing protocol. by running this code i get a "segmentation error"
the code is :
Code:
trust_entry* trust_store::trust_lookup(nsaddr_t node_id)
{
  trust_entry *rp=trusthead.lh_first;
  for(;rp;rp=rp->trust_link.le_next){
     if(rp->node_id==node_id)
      break;
  }
  return rp;
}
this code is the same code in route table that lookup an entry in trust table. i have checked every thing and i am sure that in this case trust table is not empty , it show the 4 first entry but after that it get "segmentation error", (in this running ,before this error ,it show 4 or 5 times all entry in the table but in this time no...!!!!)

can any one help me?!!
 
  


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
How to add a new entry to routing table for AODV in NS2 simulator? silsila Linux - Software 1 04-26-2014 05:31 AM
How to assign Trust value in NS2 for simulating Blackhole attack in AODV in MANET? Rashmi Narahari Linux - Newbie 4 02-17-2014 11:43 AM
NS2: Blackhole aodv error chenil Linux - Software 5 06-28-2013 09:29 AM
error in ns2-while trying to print routing table in aodv indumit18 Linux - Software 1 09-24-2011 04:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:15 AM.

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