SSF.OS.BGP4
Class AdjRIBIn

java.lang.Object
  |
  +--SSF.OS.BGP4.Util.RadixTree
        |
        +--SSF.OS.BGP4.RIBElement
              |
              +--SSF.OS.BGP4.AdjRIBIn

public class AdjRIBIn
extends RIBElement

One element of the Adj-RIBs-In section of BGP's Routing Information Base.


Field Summary
 PeerEntry peer
          The peer with whom this element of Adj-RIB-In is associated.
 
Fields inherited from class SSF.OS.BGP4.RIBElement
bgp, rtes, version
 
Method Summary
 RouteInfo add(RouteInfo info)
          Adds route information.
 int dump_zmrt(java.io.BufferedOutputStream out, int seq)
          Dumps the RIB to a given file in Zebra-MRT format.
 RouteInfo remove(IPaddress ipa)
          Removes the route information corresponding to the given route destination.
 RouteInfo replace(RouteInfo info)
          Adds route information, replacing any pre-existing information with the same NLRI.
 
Methods inherited from class SSF.OS.BGP4.RIBElement
approxBytes, bytes2str, find, get_all_routes, get_dests, get_less_specifics, get_more_specifics, get_routes, hdr2str, is_less_specific, remove_all, toBytes, toString, toString
 
Methods inherited from class SSF.OS.BGP4.Util.RadixTree
add, find, get_ancestors, get_descendants, has_descendants, oldest_ancestor, print, prune, remove, replace, root, youngest_ancestor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

peer

public PeerEntry peer
The peer with whom this element of Adj-RIB-In is associated.

Method Detail

add

public RouteInfo add(RouteInfo info)
Adds route information. If route information with the same NLRI already exists, then the add fails and the pre-existing information is returned.

Overrides:
add in class RIBElement
Parameters:
info - The route information to add.
Returns:
pre-existing route information, if any

replace

public RouteInfo replace(RouteInfo info)
Adds route information, replacing any pre-existing information with the same NLRI.

Overrides:
replace in class RIBElement
Parameters:
info - The route information to add.
Returns:
the pre-existing route information, or null if there was none

remove

public RouteInfo remove(IPaddress ipa)
Removes the route information corresponding to the given route destination.

Overrides:
remove in class RIBElement
Parameters:
ipa - The destination of the route information to remove.
Returns:
the removed route information

dump_zmrt

public int dump_zmrt(java.io.BufferedOutputStream out,
                     int seq)
Dumps the RIB to a given file in Zebra-MRT format.

Parameters:
out - The stream to dump the bytes to.
seq - A sequence number used specifically by the Zebra-MRT format.
Returns:
the next sequence number after the one used in this dump