Iam working on implementing a power control algorithm in NS and am trypying to manipulate the number of neighbors with respect to the power and restrict the power. I would like to know where in NS should I implement this. Where can I find the neighbor discovery for me to manipulate that. Iam right now using DSR and ns-2.1b6. visvesh