blob: f96da113b547ac2f944d7db039bddd4bbd8ea376 [file] [log] [blame]
akmhoque298385a2014-02-13 14:13:09 -06001#include <iostream>
2#include <string>
3
4#include "nlsr_rte.hpp"
5
akmhoque1fd8c1e2014-02-19 19:41:49 -06006namespace nlsr
akmhoque298385a2014-02-13 14:13:09 -06007{
akmhoque1fd8c1e2014-02-19 19:41:49 -06008
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 }
akmhoqueb1710aa2014-02-19 17:13:36 -060025
26}//namespace nlsr