public interface RoutingTable
Modifier and Type | Method and Description |
---|---|
boolean |
addNetIF(NetIF inter,
RouterOptions o)
A new network interface arrives -- add to
routing table if necessary return true if change was made
|
java.util.Collection<? extends RoutingTableEntry> |
getEntries()
Get all entries from the routing table
|
RoutingTableEntry |
getEntry(Address a)
Get an entry from the table
|
NetIF |
getInterface(Address addr)
Return the interface on which to send a packet to a given address
or null if not known
|
boolean |
mergeTables(RoutingTable table2,
NetIF inter,
RouterOptions options)
Merge a RoutingTable into this one.
|
boolean |
removeAddress(Address addr)
Remove all instances of address from routing table
returns true if routing table has changed
|
boolean |
removeNetIF(NetIF inter)
Removes a network interface from a router returns true if
routing table has changed
|
void |
setListener(NetIFListener l)
Set the NetIFListener
|
boolean |
setNetIFWeight(NetIF inter,
int weight)
Sets a weight on a link on the specified NetIF.
|
java.lang.String |
showTransmitted()
SHow only data transmitted
|
int |
size()
The size of the RoutingTable.
|
byte[] |
toBytes() |
java.lang.String |
toString() |
int size()
java.util.Collection<? extends RoutingTableEntry> getEntries()
RoutingTableEntry getEntry(Address a)
boolean mergeTables(RoutingTable table2, NetIF inter, RouterOptions options)
boolean addNetIF(NetIF inter, RouterOptions o)
boolean removeNetIF(NetIF inter)
boolean setNetIFWeight(NetIF inter, int weight)
void setListener(NetIFListener l)
NetIF getInterface(Address addr)
boolean removeAddress(Address addr)
java.lang.String showTransmitted()
java.lang.String toString()
toString
in class java.lang.Object
byte[] toBytes()
User Space Routing 0.10.3