Method | Description | |
---|---|---|
AddLocalRoute ( ushort network, byte portId ) : |
Adds a new local route to the routing table
|
|
AddRemoteRoute ( ushort network, byte portId, |
Adds a new remote route to routing table
|
|
GetRoute ( ushort network ) : |
Gets the route to a network
|
|
GetRouteByPortId ( byte portId ) : |
Gets the local route to a directly attached network
|
|
RoutingTable ( ) : System |
Method | Description | |
---|---|---|
_findRoute ( ushort network ) : int |
Finds the route to a network
|
|
_findRouteByPortId ( byte portId ) : int |
Finds a route to a directly attached network by its port id
|
|
_upsertRoute ( int index, |
Replaces a route in the routing table, or inserts a new one if there is no suitable route to replace
|
public AddLocalRoute ( ushort network, byte portId ) : |
||
network | ushort | The network number of the route |
portId | byte | The port id of the route |
return |
public AddRemoteRoute ( ushort network, byte portId, |
||
network | ushort | The network number of the route |
portId | byte | The port id of the route |
nextHop | The next hop mac address | |
return |
public GetRoute ( ushort network ) : |
||
network | ushort | The network to get the route to |
return |
public GetRouteByPortId ( byte portId ) : |
||
portId | byte | The port id of the port |
return |