blob: 5222cb9322904acb4f896c89a4d261f3baa5462c [file] [log] [blame]
akmhoque53353462014-04-22 08:43:45 -05001#include <iostream>
2#include <string>
3
4#include "routing-table-entry.hpp"
5
6namespace nlsr {
7
8using 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}
24
25}//namespace nlsr