#include <iostream> | |
#include <string> | |
#include "routing-table-entry.hpp" | |
namespace nlsr { | |
using namespace std; | |
ostream& | |
operator<<(ostream& os, RoutingTableEntry& rte) | |
{ | |
os << "Destination: " << rte.getDestination() << endl; | |
os << "Nexthops: " << endl; | |
int i = 1; | |
std::list<NextHop> nhl = rte.getNhl().getNextHopList(); | |
for (std::list<NextHop>::iterator it = nhl.begin(); | |
it != nhl.end() ; it++, i++) | |
{ | |
os << " Nexthop " << i << ": " << (*it) << endl; | |
} | |
return os; | |
} | |
}//namespace nlsr |