hi all any anybody explain what the following is doing netif_->node()->energy_model()->add_neighbor(src); the above line is in 802_11.cc file. where it is storing the neighbors.where is energy_model() function in the ns-2.30 Neeraj Gupta Assistant Professor HOD, CSE & IT Department Hindu College of Engineering Sonepat