blob: 59325f07f34335aedc86cd0492728e4f464ee851 [file] [log] [blame]
akmhoque298385a2014-02-13 14:13:09 -06001#include <iostream>
2#include <string>
3
4#include "nlsr_rte.hpp"
5
akmhoqueb1710aa2014-02-19 17:13:36 -06006namespace nlsr{
7
akmhoque298385a2014-02-13 14:13:09 -06008using namespace std;
9
10ostream&
11operator<<(ostream& os, RoutingTableEntry &rte)
12{
13 os<<"Destination: "<<rte.getDestination()<<endl;
14 os<<"Nexthops: "<<endl;
15 int i=1;
16 std::list< NextHop > nhl = rte.getNhl().getNextHopList();
17 for( std::list<NextHop>::iterator it=nhl.begin();
18 it!= nhl.end() ; it++,i++)
19 {
20 os <<" Nexthop "<<i<<": "<<(*it)<<endl;
21 }
22 return os;
23}
akmhoqueb1710aa2014-02-19 17:13:36 -060024
25}//namespace nlsr