Here is how I would start to debug this.
I assume you have a new method, something like 'RoutingTable::UpdateX()'
Can you confirm via NS_LOG, gdb debugging, and/or the insertion of a
customized print statement, that it is entered?
Next, within your for loop, I would possibly put a print statement to
convince myself that the for loop is being run:
for (std::map<Ipv4Address, RoutingTableEntry::iterator i =
table.begin(); i != table.end(); i++)
{
std::cout << Simulator::Now ().GetSeconds () << " " <<
rt.GetDestination() << " " << it->first << " " it->second << " Setting X
to " << value << std::endl;
i->second.SetX (value);
}
- Tom