|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--SSF.OS.BGP4.RouteInfo
|
+--SSF.OS.BGP4.RouteInfoOOC
A unit of BGP route information. It contains all information about a particular route which is used by BGP, including the destination, path attributes, and degree of preference.
| Field Summary |
| Fields inherited from class SSF.OS.BGP4.RouteInfo |
AGG_CONTAINED, AGG_CONTAINS, AGG_NONE, FEASIBLE_FLAG, IMPLICIT_FLAG, INLOCRIB_FLAG, MAX_DOP, MIN_DOP, PERMISSIBLE_FLAG |
| Constructor Summary | |
RouteInfoOOC(BGPSession b)
Constructs new route information with default values. |
|
RouteInfoOOC(BGPSession b,
Route rte,
int dop,
boolean feas,
PeerEntry pe)
Constructs new route information with the given attributes. |
|
RouteInfoOOC(BGPSession b,
Route r,
int aggs,
Route aggr,
int d,
boolean feas,
boolean perm,
PeerEntry pe)
Constructs route information given all of the relevant data. |
|
| Method Summary | |
int |
compare(RouteInfo ri)
Performs a comparison with route information for another route to determine which route is more preferable. |
int |
dop()
Get the degree of preference. |
boolean |
feasible()
Returns whether or not the route is feasible. |
void |
finalize()
Frees segment of allocated out-of-core memory. |
boolean |
implicit()
Returns whether or not the last advertisement or withdrawal was implicit. |
boolean |
inlocrib()
Returns whether or not the route is in the Loc-RIB. |
int |
peerind()
Return the index of the peer who advertised the route. |
boolean |
permissible()
Returns whether or not the route is permissible. |
Route |
route()
Returns the enclosed route. |
void |
set_dop(int d)
Set the degree of preference. |
void |
set_feasible(boolean b)
Sets the feasibility of the route in this entry. |
void |
set_implicit(boolean b)
Sets whether or not the last advertisement or withdrawal was implicit. |
void |
set_inlocrib(boolean b)
Sets whether or not the route is in the Loc-RIB. |
void |
set_permissible(boolean b)
Sets the permissibility of the route in this entry. |
void |
set_route(Route r)
|
int |
toBytes(byte[] bytes,
int bindex,
boolean usenhi)
Converts route info into a series of bytes and inserts them into a given byte array. |
java.lang.String |
toString()
Returns route information as a string. |
java.lang.String |
toString(boolean usenhi)
Returns route information as a string. |
| Methods inherited from class SSF.OS.BGP4.RouteInfo |
approxBytes, bytes2str |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public RouteInfoOOC(BGPSession b)
b - The BGPSession with which this route info is associated.
public RouteInfoOOC(BGPSession b,
Route r,
int aggs,
Route aggr,
int d,
boolean feas,
boolean perm,
PeerEntry pe)
b - The BGPSession with which this route info is associated.r - The route to which this information pertains.aggs - The aggregation status of this information.aggr - An aggregation of this route with others (may be null).d - The degree of preference of the route.feas - Whether or not the route is feasible.perm - Whether or not the route is permissible.pe - The peer who advertised this route.
public RouteInfoOOC(BGPSession b,
Route rte,
int dop,
boolean feas,
PeerEntry pe)
b - The BGPSession with which this route info is associated.rte - The route held by this entry.dop - The degree of preference of the route.feas - Whether or not the route is feasible.pe - The entry for the peer who advertised this route.| Method Detail |
public int dop()
dop in class RouteInfopublic void set_dop(int d)
set_dop in class RouteInfopublic int peerind()
RouteInfo
peerind in class RouteInfopublic Route route()
RouteInfo
route in class RouteInfopublic void set_route(Route r)
public boolean feasible()
feasible in class RouteInfopublic void set_feasible(boolean b)
set_feasible in class RouteInfob - Whether or not the route is feasible.public boolean permissible()
permissible in class RouteInfopublic void set_permissible(boolean b)
set_permissible in class RouteInfob - Whether or not the route is permissible.public boolean inlocrib()
inlocrib in class RouteInfopublic void set_inlocrib(boolean b)
set_inlocrib in class RouteInfob - Whether or not the route is in the Loc-RIB.public boolean implicit()
implicit in class RouteInfopublic void set_implicit(boolean b)
set_implicit in class RouteInfob - Whether the last advertisement or withdrawal was implicit.public int compare(RouteInfo ri)
compare in class RouteInfo
public int toBytes(byte[] bytes,
int bindex,
boolean usenhi)
toBytes in class RouteInfobytes - A byte array in which to place the results.bindex - The index into the given byte array at which to begin
placing the results.usenhi - Whether or not to use NHI addressing.
public java.lang.String toString()
toString in class RouteInfopublic java.lang.String toString(boolean usenhi)
toString in class RouteInfousenhi - Whether or not to use NHI addressing.
public void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.Throwable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||