ns2-roadv
ns2-roadv copied to clipboard
Fixes #1
-
rtwas not defined but it was used. Removed the usage. -
rq->rq_hop_countis the correct representation for hop counts by RREQ packet. - Random number was divided by 20, but it was already in range (0,1).
- Drop factor was multiplied by 1000, but it was already in range (0,1).
-
srand(time(NULL))was leading to generation of same random number every time.