blob: 5222cb9322904acb4f896c89a4d261f3baa5462c [file] [log] [blame]
#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