xorp

RouterLsa Class Reference

Inheritance diagram for RouterLsa:
Lsa

List of all members.

Public Member Functions

 RouterLsa (OspfTypes::Version version)
 RouterLsa (OspfTypes::Version version, uint8_t *buf, size_t len)
size_t min_length () const
uint16_t get_ls_type () const
 It is the responsibilty of the derived type to return this information.
LsaRef decode (uint8_t *buf, size_t &len) const throw (InvalidPacket)
 Decode an LSA.
bool encode ()
 Encode an LSA for transmission.
void set_nt_bit (bool bit)
bool get_nt_bit () const
void set_w_bit (bool bit)
bool get_w_bit () const
void set_v_bit (bool bit)
bool get_v_bit () const
void set_e_bit (bool bit)
bool get_e_bit () const
void set_b_bit (bool bit)
bool get_b_bit () const
void set_options (uint32_t options)
uint32_t get_options () const
list< RouterLink > & get_router_links ()
const char * name () const
 Printable name of this LSA.
string str () const
 Generate a printable representation.

Private Attributes

bool _nt_bit
bool _w_bit
bool _v_bit
bool _e_bit
bool _b_bit
uint32_t _options
list< RouterLink_router_links

Member Function Documentation

Lsa::LsaRef RouterLsa::decode ( uint8_t *  buf,
size_t &  len 
) const throw (InvalidPacket) [virtual]

Decode an LSA.

Parameters:
bufpointer to buffer.
lenlength of the buffer on input set to the number of bytes consumed on output.
Returns:
A reference to an LSA that manages its own memory.

Implements Lsa.

bool RouterLsa::encode ( ) [virtual]

Encode an LSA for transmission.

Returns:
True on success.

Implements Lsa.

uint16_t RouterLsa::get_ls_type ( ) const [inline, virtual]

It is the responsibilty of the derived type to return this information.

Returns:
The type this lsa represents.

Implements Lsa.

size_t RouterLsa::min_length ( ) const [inline, virtual]
Returns:
the minimum length of a Router-LSA.

Implements Lsa.


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