#include <tora_packet.h>
Collaboration diagram for Height:

Public Member Functions | |
| Height (int ID) | |
| int | isZero () |
| int | isNull () |
| int | compare (Height *h) |
| void | Zero () |
| void | Null () |
| void | update (Height *h) |
Public Attributes | |
| double | tau |
| nsaddr_t | oid |
| int | r |
| int | delta |
| nsaddr_t | id |
|
|
Definition at line 58 of file tora_packet.h. References delta, id, oid, r, and tau.
|
|
|
Definition at line 69 of file tora_packet.h. References delta, id, oid, r, and tau. Referenced by TORADest::nb_find_max_height(), TORADest::nb_find_min_height(), TORADest::nb_find_min_nonnull_height(), TORADest::nb_find_next_hop(), and TORANeighbor::update_link_status().
00069 {
00070 if(h->tau > tau) return 1; if(tau > h->tau) return -1;
00071 if(h->oid > oid) return 1; if(oid > h->oid) return -1;
00072 if(h->r > r) return 1; if(r > h->r) return -1;
00073 if(h->delta > delta) return 1; if(delta > h->delta) return -1;
00074 if(h->id > id) return 1; if(id > h->id) return -1;
00075
00076 return 0; // heights equal
00077 }
|
|
|
Definition at line 66 of file tora_packet.h. References delta, oid, r, and tau. Referenced by TORADest::nb_check_same_ref(), TORADest::nb_find_max_height(), TORADest::nb_find_min_nonnull_height(), TORADest::nb_find_next_hop(), toraAgent::recvCLR(), toraAgent::recvUPD(), and TORANeighbor::update_link_status().
|
|
|
Definition at line 63 of file tora_packet.h. References delta, oid, r, and tau.
|
|
|
Definition at line 84 of file tora_packet.h. References delta, oid, r, and tau. Referenced by toraAgent::recvCLR(), and toraAgent::recvUPD().
|
|
|
Definition at line 86 of file tora_packet.h. References delta, id, oid, r, and tau. Referenced by TORADest::update_height_nb().
|
|
|
Definition at line 82 of file tora_packet.h. References delta, oid, r, and tau. Referenced by TORADest::nb_add(), toraAgent::recvCLR(), and toraAgent::recvUPD().
|
|
|
Definition at line 95 of file tora_packet.h. Referenced by compare(), TORANeighbor::dump(), TORADest::dump(), Height(), isNull(), isZero(), toraAgent::log_route_table(), toraAgent::logToraDest(), toraAgent::logToraNeighbor(), Null(), toraAgent::recvQRY(), toraAgent::recvUPD(), toraAgent::sendUPD(), update(), TORADest::update_height(), TORADest::update_height_nb(), and Zero(). |
|
|
Definition at line 96 of file tora_packet.h. Referenced by compare(), TORANeighbor::dump(), TORADest::dump(), Height(), toraAgent::log_route_table(), toraAgent::logToraDest(), toraAgent::logToraNeighbor(), toraAgent::sendUPD(), update(), and TORADest::update_height(). |
|
|
|
1.3.3