#include <iostream> | |
#include <string> | |
#include "nlsr_rte.hpp" | |
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; | |
} |