xorp

Adv< A > Class Template Reference

Storage for routing table entries indexed by advertising router. More...

#include <routing_table.hh>

List of all members.

Public Member Functions

void clear_area (OspfTypes::AreaID area)
 Clear all entries for this area.
bool add_entry (OspfTypes::AreaID area, uint32_t adv, const RouteEntry< A > &rt, const char *dbg)
 Add an entry for this routing entry keyed on advertising router.
bool replace_entry (OspfTypes::AreaID area, uint32_t adv, const RouteEntry< A > &rt, const char *dbg)
 Replace entry with new entry keyed on advertising router.
bool lookup_entry (OspfTypes::AreaID area, uint32_t adv, RouteEntry< A > &rt) const
 Lookup an entry by advertising router.

Private Types

typedef map
< OspfTypes::RouterID,
RouteEntry< A > > 
AREA
typedef map< OspfTypes::AreaID,
AREA > 
ADV

Private Attributes

ADV _adv

Detailed Description

template<typename A>
class Adv< A >

Storage for routing table entries indexed by advertising router.


Member Function Documentation

template<typename A>
bool Adv< A >::add_entry ( OspfTypes::AreaID  area,
uint32_t  adv,
const RouteEntry< A > &  rt,
const char *  dbg 
)

Add an entry for this routing entry keyed on advertising router.

Parameters:
areato add entry.
advadvertising router.
rtassociated routing entry.
template<typename A>
bool Adv< A >::lookup_entry ( OspfTypes::AreaID  area,
uint32_t  adv,
RouteEntry< A > &  rt 
) const

Lookup an entry by advertising router.

Parameters:
areato look in.
advrouter to look for.
rtrouting entry returned if entry is found.
Returns:
true if entry is found
template<typename A>
bool Adv< A >::replace_entry ( OspfTypes::AreaID  area,
uint32_t  adv,
const RouteEntry< A > &  rt,
const char *  dbg 
)

Replace entry with new entry keyed on advertising router.

Parameters:
areato add entry.
advadvertising router.
rtassociated routing entry.

The documentation for this class was generated from the following files:
 All Classes Namespaces Functions Variables Typedefs Enumerations