[ns] IsNeighbor function

Daniel Charles daniel at ppgi.di.ufpb.br
Wed Aug 5 00:41:43 PDT 2009


neerajgupta escreveu:
>  hi all
>
>    i am using IsNeigbor() function(defined in /mobile/god.cc) in mac802_11.cc to check whether the two nodes are neighbors or not.
>
> the parameters are like 
> God::instance()->IsNeighbor((u_int32_t)index_,src)
>
> in god.cc i have diable the energy model in IsNeighbor(int i, int j) function.
>
> after recompiling the code and on my tcl script. i am getting the
> segmentation fault.
>
> plz. help....
>
>
>
> Neeraj Gupta
> Assistant Professor
> HOD, CSE & IT Department
> Hindu College of Engineering
> Sonepat
>   
paste your error message here or at pastebin.com and paste your tcl 
script too. It will make easier to understand what's happening..
I recommend you to check the dimensions of your topology and node placement.

Daniel Charles F Porto
Researcher
Brazil



More information about the Ns-users mailing list