openikev2::Payload_DEL Class Reference

This class represents a delete Payload. More...

#include <payload_del.h>

Inheritance diagram for openikev2::Payload_DEL:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 Payload_DEL (Enums::PROTOCOL_ID protocol_id)
 Creates a new Paylad_DEL setting its protocol id.
 Payload_DEL (const Payload_DEL &other)
 Creates a new Payload_DEL cloning another one.
 Payload_DEL (ByteBuffer &byte_buffer)
 Creates a new Payload_DEL based on its binary representation.
virtual void addIpsecSpi (uint32_t ipsec_spi)
 Adds an ESP/AH spi to be added in the Payload_DEL.
virtual void getBinaryRepresentation (ByteBuffer &byte_buffer) const
 Appends the binary representation of the Payload at the end of the buffer, without the fixed header.
virtual string toStringTab (uint8_t tabs) const
 Construct a textual representation of the object, preceded of a num of tabs of size TAB_SIZE.
virtual auto_ptr< Payloadclone () const
 Cets a clone of this payload.

Public Attributes

Enums::PROTOCOL_ID protocol_id
 Protocol type of the SA being deleted.
vector< uint32_t > ipsec_spi_values
 SPI values of the CHILD SAs to be deleted.

Detailed Description

This class represents a delete Payload.

Author:
Alejandro Perez Mendez, Pedro J. Fernandez Ruiz <alejandro_perez@dif.um.es, pedroj.fernandez@dif.um.es>


Constructor & Destructor Documentation

openikev2::Payload_DEL::Payload_DEL ( Enums::PROTOCOL_ID  protocol_id  ) 

Creates a new Paylad_DEL setting its protocol id.

Parameters:
protocol_id Protocol id

openikev2::Payload_DEL::Payload_DEL ( const Payload_DEL other  ) 

Creates a new Payload_DEL cloning another one.

Parameters:
other Other Payload_DEL to be cloned

openikev2::Payload_DEL::Payload_DEL ( ByteBuffer byte_buffer  ) 

Creates a new Payload_DEL based on its binary representation.

Parameters:
byte_buffer Buffer with its read pointer at the "payload length" field


Member Function Documentation

void openikev2::Payload_DEL::addIpsecSpi ( uint32_t  ipsec_spi  )  [virtual]

Adds an ESP/AH spi to be added in the Payload_DEL.

Parameters:
ipsec_spi SPI to be added in the Payload_DEL.

void openikev2::Payload_DEL::getBinaryRepresentation ( ByteBuffer byte_buffer  )  const [virtual]

Appends the binary representation of the Payload at the end of the buffer, without the fixed header.

Parameters:
byte_buffer Byte buffer where append the binary representation

Implements openikev2::Payload.

string openikev2::Payload_DEL::toStringTab ( uint8_t  tabs  )  const [virtual]

Construct a textual representation of the object, preceded of a num of tabs of size TAB_SIZE.

Parameters:
tabs Num of tabs preceding the textual representation.
Returns:
Textual tabulated represetation of the object.

Implements openikev2::Payload.

auto_ptr< Payload > openikev2::Payload_DEL::clone (  )  const [virtual]

Cets a clone of this payload.

Returns:
Clone of the payload.

Implements openikev2::Payload.


Generated on Fri Jul 27 11:04:54 2007 for libopenikev2 by  doxygen 1.5.1