xorp

DataDescriptionPacket Class Reference

Database Description Packet. More...

#include <packet.hh>

Inheritance diagram for DataDescriptionPacket:
Packet

List of all members.

Public Member Functions

 DataDescriptionPacket (OspfTypes::Version version)
OspfTypes::Type get_type () const
 It is the responsibilty of the derived type to return this information.
size_t minimum_length () const
Packetdecode (uint8_t *ptr, size_t len) const throw (InvalidPacket)
 Decode the packet.
bool encode (vector< uint8_t > &pkt)
 Encode the packet.
void set_interface_mtu (uint16_t mtu)
uint16_t get_interface_mtu () const
void set_options (uint32_t options)
uint32_t get_options () const
void set_i_bit (bool bit)
bool get_i_bit () const
void set_m_bit (bool bit)
bool get_m_bit () const
void set_ms_bit (bool bit)
bool get_ms_bit () const
void set_dd_seqno (uint32_t seqno)
uint32_t get_dd_seqno () const
list< Lsa_header > & get_lsa_headers ()
string str () const
 Generate a printable representation of the packet.

Private Attributes

uint16_t _interface_mtu
uint32_t _options
bool _i_bit
bool _m_bit
bool _ms_bit
uint32_t _DD_seqno
list< Lsa_header_lsa_headers

Detailed Description

Database Description Packet.


Member Function Documentation

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

Decode the packet.

The returned packet must be free'd.

Implements Packet.

bool DataDescriptionPacket::encode ( vector< uint8_t > &  pkt)

Encode the packet.

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

Reimplemented from Packet.

OspfTypes::Type DataDescriptionPacket::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