akmhoque | 298385a | 2014-02-13 14:13:09 -0600 | [diff] [blame] | 1 | #include <iostream> |
2 | #include <string> | ||||
3 | |||||
4 | #include "nlsr_rte.hpp" | ||||
5 | |||||
6 | using namespace std; | ||||
7 | |||||
8 | ostream& | ||||
9 | operator<<(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 | } |