xorp

LinkStateUpdatePacket Class Reference

Link State Update Packet. More...

#include <packet.hh>

Inheritance diagram for LinkStateUpdatePacket:
Packet

List of all members.

Public Member Functions

 LinkStateUpdatePacket (OspfTypes::Version version, LsaDecoder &lsa_decoder)
OspfTypes::Type get_type () const
 It is the responsibilty of the derived type to return this information.
Packetdecode (uint8_t *ptr, size_t len) const throw (InvalidPacket)
 Decode the packet.
bool encode (vector< uint8_t > &pkt)
 Encode the packet.
bool encode (vector< uint8_t > &pkt, uint16_t inftransdelay)
 Encode the packet.
list< Lsa::LsaRef > & get_lsas ()
string str () const
 Generate a printable representation of the packet.

Private Attributes

LsaDecoder_lsa_decoder
list< Lsa::LsaRef_lsas

Detailed Description

Link State Update Packet.


Member Function Documentation

Packet * LinkStateUpdatePacket::decode ( uint8_t *  ptr,
size_t  len 
) const throw (InvalidPacket) [virtual]

Decode the packet.

The returned packet must be free'd.

Implements Packet.

bool LinkStateUpdatePacket::encode ( vector< uint8_t > &  pkt,
uint16_t  inftransdelay 
)

Encode the packet.

Parameters:
pktvector into which the packet should be placed.
inftransdelayadd this delay to the age field of each LSA.
Returns:
true if the encoding succeeded.
bool LinkStateUpdatePacket::encode ( vector< uint8_t > &  pkt)

Encode the packet.

Parameters:
pktvector into which the packet should be placed.
Returns:
true if the encoding succeeded.

Reimplemented from Packet.

OspfTypes::Type LinkStateUpdatePacket::get_type ( ) const [inline, virtual]

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

Returns:
The type this packet represents.

Implements Packet.


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