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