#include <configurationattribute.h>
Inheritance diagram for openikev2::ConfigurationAttribute:

Public Types | |
| enum | CONFIGURATION_ATTRIBUTE_TYPE { INTERNAL_IP4_ADDRESS = 1, INTERNAL_IP4_NETMASK = 2, INTERNAL_IP4_DNS = 3, INTERNAL_IP4_NBNS = 4, INTERNAL_ADDRESS_EXPIRY = 5, INTERNAL_IP4_DHCP = 6, APPLICATION_VERSION = 7, INTERNAL_IP6_ADDRESS = 8, INTERNAL_IP6_DNS = 10, INTERNAL_IP6_NBNS = 11, INTERNAL_IP6_DHCP = 12, INTERNAL_IP4_SUBNET = 13, SUPPORTED_ATTRIBUTES = 14, INTERNAL_IP6_SUBNET = 15 } |
| < Configuration attribute type More... | |
Public Member Functions | |
| ConfigurationAttribute (CONFIGURATION_ATTRIBUTE_TYPE type, auto_ptr< ByteArray > value) | |
| Creates a new ConfigurationAttribute settings its value. | |
| ConfigurationAttribute (ByteBuffer &binary_representation) | |
| Creates a new ConfigurationAttribute based on its binary representation. | |
| virtual auto_ptr< ConfigurationAttribute > | clone () |
| Creates a clone of this ConfigurationAttribute. | |
| virtual void | getBinaryRepresentation (ByteBuffer &byte_buffer) const |
| Appends the binary representation at the end of byte_buffer. | |
| virtual string | toStringTab (uint8_t tabs) const |
| Construct a textual representation of the object, preceded of a num of tabs of size TAB_SIZE. | |
Static Public Member Functions | |
| static string | CONFIGURATION_ATTRIBUTE_TYPE_STR (CONFIGURATION_ATTRIBUTE_TYPE conf_attr) |
| Returns the textual representation of a CONFIGURATION_ATTRIBUTE_TYPE value. | |
Public Attributes | |
| CONFIGURATION_ATTRIBUTE_TYPE | type |
| Configuration attribute type. | |
| auto_ptr< ByteArray > | value |
| Value of the configuration attribute. | |
Static Protected Member Functions | |
| static void | checkLength (CONFIGURATION_ATTRIBUTE_TYPE type, uint16_t len) |
| Checks the if the length is valid for this kind of attribute. | |
< Configuration attribute type
| openikev2::ConfigurationAttribute::ConfigurationAttribute | ( | CONFIGURATION_ATTRIBUTE_TYPE | type, | |
| auto_ptr< ByteArray > | value | |||
| ) |
Creates a new ConfigurationAttribute settings its value.
| type | Type of the ConfigurationAttribute | |
| value | Value of the ConfigurationAttribute |
| openikev2::ConfigurationAttribute::ConfigurationAttribute | ( | ByteBuffer & | binary_representation | ) |
Creates a new ConfigurationAttribute based on its binary representation.
| binary_representation | Buffer with its read pointer at begin of a Configuration Attribute |
| void openikev2::ConfigurationAttribute::checkLength | ( | CONFIGURATION_ATTRIBUTE_TYPE | type, | |
| uint16_t | len | |||
| ) | [static, protected] |
| string openikev2::ConfigurationAttribute::CONFIGURATION_ATTRIBUTE_TYPE_STR | ( | CONFIGURATION_ATTRIBUTE_TYPE | conf_attr | ) | [static] |
Returns the textual representation of a CONFIGURATION_ATTRIBUTE_TYPE value.
| conf_attr | CONFIGURATION_ATTRIBUTE_TYPE value |
| auto_ptr< ConfigurationAttribute > openikev2::ConfigurationAttribute::clone | ( | ) | [virtual] |
| void openikev2::ConfigurationAttribute::getBinaryRepresentation | ( | ByteBuffer & | byte_buffer | ) | const [virtual] |
Appends the binary representation at the end of byte_buffer.
| byte_buffer | ByteBuffer to append the binary representation |
| string openikev2::ConfigurationAttribute::toStringTab | ( | uint8_t | tabs | ) | const [virtual] |
Construct a textual representation of the object, preceded of a num of tabs of size TAB_SIZE.
| tabs | Num of tabs preceding the textual representation. |
Implements openikev2::Printable.
1.5.1