I would like to find the number of hops left for a particular packet in a route to a destination at each node in NS2.
I would like to make use of the information from the routing layer to do some calculation in an algorithm which i am trying to implement using NS2.
Is it possible to extract this information at each node for a particular packet?