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