xorp

UnknownLsa Class Reference

Inheritance diagram for UnknownLsa:
Lsa

List of all members.

Public Member Functions

 UnknownLsa (OspfTypes::Version version)
 UnknownLsa (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.
bool known () const
 OSPFv3 only is this a known LSA, of course not this is the unknown LSA.
LsaRef decode (uint8_t *buf, size_t &len) const throw (InvalidPacket)
 Decode an LSA.
bool encode ()
 Encode an LSA for transmission.
const char * name () const
 Printable name of this LSA.
string str () const
 Generate a printable representation.

Member Function Documentation

Lsa::LsaRef UnknownLsa::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 UnknownLsa::encode ( ) [virtual]

Encode an LSA for transmission.

Returns:
True on success.

Implements Lsa.

uint16_t UnknownLsa::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.

bool UnknownLsa::known ( ) const [inline, virtual]

OSPFv3 only is this a known LSA, of course not this is the unknown LSA.

Returns:
false.

Reimplemented from Lsa.

size_t UnknownLsa::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