#include <tora_neighbor.h>
Collaboration diagram for TORANeighbor:

Definition at line 53 of file tora_neighbor.h.
Public Member Functions | |
| void | dump (void) |
| TORANeighbor (nsaddr_t id, Agent *a) | |
| void | update_link_status (Height *h) |
Private Member Functions | |
| LIST_ENTRY (TORANeighbor) link | |
Private Attributes | |
| toraAgent * | agent |
| Height | height |
| nsaddr_t | index |
| LinkStatus | lnk_stat |
| double | time_act |
Friends | |
| class | toraAgent |
| class | TORADest |
|
||||||||||||
|
Definition at line 54 of file tora_neighbor.cc. References a, agent, Scheduler::clock(), index, Scheduler::instance(), LINK_UN, lnk_stat, and time_act. 00054 : height(id) 00055 { 00056 index = id; 00057 lnk_stat = LINK_UN; 00058 time_act = Scheduler::instance().clock(); 00059 00060 agent = (toraAgent*) a; 00061 }
Here is the call graph for this function: ![]() |
|
|
Definition at line 86 of file tora_neighbor.cc. References Height::delta, height, Height::id, index, lnk_stat, Height::oid, Height::r, Height::tau, and time_act. Referenced by TORADest::dump(). 00087 { 00088 fprintf(stdout, "\t\tNEIG: %d, Link Status: %d, Time Active: %f\n", 00089 index, lnk_stat, time_act); 00090 fprintf(stdout, "\t\t\ttau: %f, oid: %d, r: %d, delta: %d, id: %d\n", 00091 height.tau, height.oid, height.r, height.delta, height.id); 00092 }
|
|
|
|
|
|
Definition at line 65 of file tora_neighbor.cc. References agent, Height::compare(), height, Height::isNull(), LINK_DN, LINK_UN, LINK_UP, and lnk_stat. Referenced by TORADest::update_height(), and TORADest::update_height_nb(). 00066 { 00067 #ifdef LOGGING 00068 int t = lnk_stat; 00069 #endif 00070 if(height.isNull()) 00071 lnk_stat = LINK_UN; 00072 else if(h->isNull()) 00073 lnk_stat = LINK_DN; 00074 else if(height.compare(h) > 0) 00075 lnk_stat = LINK_DN; 00076 else if(height.compare(h) < 0) 00077 lnk_stat = LINK_UP; 00078 #ifdef LOGGING 00079 if(t != lnk_stat) { 00080 agent->log_nb_state_change(this); 00081 } 00082 #endif 00083 }
Here is the call graph for this function: ![]() |
|
|
Definition at line 55 of file tora_neighbor.h. |
|
|
Definition at line 54 of file tora_neighbor.h. |
|
|
Definition at line 74 of file tora_neighbor.h. Referenced by TORANeighbor(), and update_link_status(). |
|
|
|
Definition at line 63 of file tora_neighbor.h. Referenced by dump(), TORADest::dump(), toraAgent::log_route_table(), toraAgent::logNextHopChange(), toraAgent::logToraNeighbor(), TORADest::nb_add(), TORADest::nb_del(), TORADest::nb_find(), toraAgent::recvCLR(), toraAgent::recvTORA(), toraAgent::recvUPD(), and TORANeighbor(). |
|
|
Definition at line 71 of file tora_neighbor.h. Referenced by dump(), toraAgent::log_route_table(), toraAgent::logToraNeighbor(), TORADest::nb_add(), TORADest::nb_del(), TORADest::nb_find_next_hop(), toraAgent::recvCLR(), toraAgent::recvUPD(), TORANeighbor(), TORADest::update_height(), TORADest::update_height_nb(), and update_link_status(). |
|
|
Definition at line 72 of file tora_neighbor.h. Referenced by dump(), toraAgent::log_route_table(), toraAgent::logToraNeighbor(), toraAgent::recvQRY(), and TORANeighbor(). |
1.4.6