xorp

LinkStateAcknowledgementPacket Class Reference

Link State Acknowledgement Packet. More...

#include <packet.hh>

Inheritance diagram for LinkStateAcknowledgementPacket:
Packet

List of all members.

Public Member Functions

 LinkStateAcknowledgementPacket (OspfTypes::Version version)
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.
list< Lsa_header > & get_lsa_headers ()
string str () const
 Generate a printable representation of the packet.

Private Attributes

list< Lsa_header_lsa_headers

Detailed Description

Link State Acknowledgement Packet.


Member Function Documentation

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

Decode the packet.

The returned packet must be free'd.

Implements Packet.

bool LinkStateAcknowledgementPacket::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 LinkStateAcknowledgementPacket::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