Thanks Konstantinos for the quick answer. I'll surely do so in future.
After proceeding furthur with your guidance, I want to know how to get the current node's interface Ipv4Address(My IP Address) within the RouteInput() method?
I'm storing the packet counts in a static data structure like below,
| MyIP | NeighbourIP | DataPacketCount |
(This data is used by a learning algorithm)
I can get the NeighbourIP through,
RoutingTableEntry toOrigin;
//Look up therouting table
Ipv4Address NeighbourIP = toOrigin.GetNextHop();
Similarly how can I get,