hi,everyone
today I revise a little in one routing protocol,
before I revised ,the source code linkes follow:
ch->next_hop_ = -1; //Broadcast address
which means next hop is broadcast address,I want to indicate the next hop,for 
example,the topology likes this
node 0 ->   node 1  —> node 2 ,so node 0's next hop is node 1
so I revise the code linkes this
if(index_==0)
ch->next_hop_ = 1
else (index_==1)
ch->nedxt_hop_=2
I do this in order to fix the next hop,however,I recompile the ns2,everything 
goes ok,
but I use the same script to do the experimental,
the screen display : segementation fault (core dumped)
I check related website,and get the information that I may visit the memory I 
did not declared,
I think may be I use the node address as the ip address!
could any body tell me why ?
so Urgent!

Reply via email to