SSF.Net
Interface RoutingTable

All Superinterfaces:
com.renesys.raceway.DML.Configurable
All Known Implementing Classes:
RadixTreeRoutingTable

public interface RoutingTable
extends com.renesys.raceway.DML.Configurable

This is the generic interface for a routing table.


Method Summary
 void add(java.lang.String destination_ip, NIC via_nic, int next_hop_ip)
          Add a route to the specified destination through the given interface.
 void add(java.lang.String destination_ip, NIC via_nic, int next_hop_ip, int cost)
          Add a route to the specified destination through the specified host with the given cost.
 void add(java.lang.String destination_ip, NIC via_nic, int next_hop_ip, int cost, java.lang.String routingProtocol)
          Add a route to the specified destination through the specified host with the given cost, from the given routing protocol (if any).
 void add(java.lang.String destination_ip, NIC via_nic, int next_hop_ip, java.lang.String routingProtocol)
          Add a route to the specified destination through the given interface from the given routing protocol (if any).
 void addDefault(NIC via_nic, int next_hop_ip)
          Add a default route through the specified host.
 void addDefault(NIC via_nic, int next_hop_ip, int cost)
          Add a default route through the specified host with the given cost.
 void addDefault(NIC via_nic, int next_hop_ip, int cost, java.lang.String routingProtocol)
          Add a default route through the specified host with the given cost from the named routing protocol.
 void addFIBChangeListener(FIBChangeListener p)
          Register the given FIBChangeListener, so that it can be notified about changes to this FIB -- insertions or deletions of routes -- in order to make decisions about route redistribution.
 void del(java.lang.String destination_ip)
          Delete the route to the specified destination.
 void del(java.lang.String destination_ip, java.lang.String routingProtocol)
          Delete the route to the specified destination, from the given routing protocol.
 RoutingInfo find(int ipAddr)
          Returns the data in the leaf of the path defined by the given boolean array, if the path exists.
 RoutingInfo find(int ipAddr, int prefix_length)
          Returns the data in the leaf of the path defined by the given IP address, if the path exists.
 RoutingInfo findBest(int ipaddr)
          Returns the data in the node which is deepest in the tree along the path from the root to what would be the BEST (not EXACT) match in the tree, if it existed (which it might, in which case that would be the deepest node and thus the best match).
 RoutingInfo findBest(int srcaddr, int dstaddr)
          Returns the data in the node which is deepest in the tree along the path from the root to what would be the BEST (not EXACT) match in the tree, if it existed (which it might, in which case that would be the deepest node and thus the best match).
 void print()
          Prints this table.
 void removeFIBChangeListener(FIBChangeListener p)
          Unregister the given FIBChangeListener.
 void rep(java.lang.String destination_ip, NIC via_nic, int next_hop_addr, int cost, java.lang.String routingProtocol)
          Inserts new routing information into the table, replacing any previous routing information from the same routing protocol that may have already existed.
 
Methods inherited from interface com.renesys.raceway.DML.Configurable
config
 

Method Detail

addFIBChangeListener

public void addFIBChangeListener(FIBChangeListener p)
Register the given FIBChangeListener, so that it can be notified about changes to this FIB -- insertions or deletions of routes -- in order to make decisions about route redistribution.


removeFIBChangeListener

public void removeFIBChangeListener(FIBChangeListener p)
Unregister the given FIBChangeListener.


add

public void add(java.lang.String destination_ip,
                NIC via_nic,
                int next_hop_ip)
Add a route to the specified destination through the given interface.


add

public void add(java.lang.String destination_ip,
                NIC via_nic,
                int next_hop_ip,
                java.lang.String routingProtocol)
Add a route to the specified destination through the given interface from the given routing protocol (if any).


add

public void add(java.lang.String destination_ip,
                NIC via_nic,
                int next_hop_ip,
                int cost)
Add a route to the specified destination through the specified host with the given cost.


add

public void add(java.lang.String destination_ip,
                NIC via_nic,
                int next_hop_ip,
                int cost,
                java.lang.String routingProtocol)
Add a route to the specified destination through the specified host with the given cost, from the given routing protocol (if any).


addDefault

public void addDefault(NIC via_nic,
                       int next_hop_ip)
Add a default route through the specified host.


addDefault

public void addDefault(NIC via_nic,
                       int next_hop_ip,
                       int cost)
Add a default route through the specified host with the given cost.


addDefault

public void addDefault(NIC via_nic,
                       int next_hop_ip,
                       int cost,
                       java.lang.String routingProtocol)
Add a default route through the specified host with the given cost from the named routing protocol.


rep

public void rep(java.lang.String destination_ip,
                NIC via_nic,
                int next_hop_addr,
                int cost,
                java.lang.String routingProtocol)
Inserts new routing information into the table, replacing any previous routing information from the same routing protocol that may have already existed.


del

public void del(java.lang.String destination_ip)
Delete the route to the specified destination.


del

public void del(java.lang.String destination_ip,
                java.lang.String routingProtocol)
Delete the route to the specified destination, from the given routing protocol.


find

public RoutingInfo find(int ipAddr)
Returns the data in the leaf of the path defined by the given boolean array, if the path exists. Returns NULL if the path does not exist.


find

public RoutingInfo find(int ipAddr,
                        int prefix_length)
Returns the data in the leaf of the path defined by the given IP address, if the path exists. Returns NULL if the path does not exist.


findBest

public RoutingInfo findBest(int ipaddr)
Returns the data in the node which is deepest in the tree along the path from the root to what would be the BEST (not EXACT) match in the tree, if it existed (which it might, in which case that would be the deepest node and thus the best match). findBest starts from the rightmost bit of bin.


findBest

public RoutingInfo findBest(int srcaddr,
                            int dstaddr)
Returns the data in the node which is deepest in the tree along the path from the root to what would be the BEST (not EXACT) match in the tree, if it existed (which it might, in which case that would be the deepest node and thus the best match). findBest starts from the rightmost bit of bin.


print

public void print()
Prints this table.