Routing Table Service.
More...
#include <RoutingTableService.h>
|
static void | printRoutingTable () |
| Prints the actual routing table in the log.
|
|
static NetworkNode * | getAllNetworkNodes () |
| Get the All Network Nodes that are inside the routing table. More...
|
|
static RouteNode * | findNode (uint16_t address) |
| Find the node that contains the address. More...
|
|
static bool | hasAddressRoutingTable (uint16_t address) |
| Returns if address is inside the routing table. More...
|
|
static uint16_t | getNextHop (uint16_t dst) |
| Get the Next Hop address. More...
|
|
static uint8_t | getNumberOfHops (uint16_t address) |
| Get the Number Of Hops of the address inside the routing table. More...
|
|
static size_t | routingTableSize () |
| Returns the routing table size. More...
|
|
static void | processRoute (RoutePacket *p) |
| Process the network packet. More...
|
|
static void | manageTimeoutRoutingTable () |
| Checks all the routing entries for a route timeout and remove the entry.
|
|
|
static LM_LinkedList< RouteNode > * | routingTableList = new LM_LinkedList<RouteNode>() |
| Routing table List.
|
|
◆ findNode()
RouteNode * RoutingTableService::findNode |
( |
uint16_t |
address | ) |
|
|
static |
Find the node that contains the address.
- Parameters
-
address | address to be found |
- Returns
- RouteNode* pointer to the RouteNode or nullptr
◆ getAllNetworkNodes()
NetworkNode * RoutingTableService::getAllNetworkNodes |
( |
| ) |
|
|
static |
Get the All Network Nodes that are inside the routing table.
- Returns
- NetworkNode* All the nodes in a list.
◆ getNextHop()
uint16_t RoutingTableService::getNextHop |
( |
uint16_t |
dst | ) |
|
|
static |
Get the Next Hop address.
- Parameters
-
dst | address of the next hop |
- Returns
- uint16_t address of the next hop
◆ getNumberOfHops()
uint8_t RoutingTableService::getNumberOfHops |
( |
uint16_t |
address | ) |
|
|
static |
Get the Number Of Hops of the address inside the routing table.
- Parameters
-
address | Address of the number of hops you want to know |
- Returns
- uint8_t Number of Hops or 0 if address not found in routing table.
◆ hasAddressRoutingTable()
bool RoutingTableService::hasAddressRoutingTable |
( |
uint16_t |
address | ) |
|
|
static |
Returns if address is inside the routing table.
- Parameters
-
address | Address you want to check if is inside the routing table |
- Returns
- true If the address is inside the routing table
-
false If the address is not inside the routing table
◆ processRoute()
void RoutingTableService::processRoute |
( |
RoutePacket * |
p | ) |
|
|
static |
Process the network packet.
- Parameters
-
◆ routingTableSize()
size_t RoutingTableService::routingTableSize |
( |
| ) |
|
|
static |
Returns the routing table size.
- Returns
- size_t
The documentation for this class was generated from the following files: