blob: 129ab8a5ee919faabf979a224ec44ba427f3dc78 [file] [log] [blame]
#include <iostream>
#include <string>
#include "nlsr_rte.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