#include <pana_device_id.h>
Public Types | |
enum | TYPE { UNKNOWN = 0, IPV4_ADDRESS = 1, IPV6_ADDRESS = 2, LL_ADDRESS = 3 } |
Public Member Functions | |
PANA_DeviceId (PANA_DeviceId::TYPE type, std::string &id) | |
PANA_DeviceId (PANA_DeviceId::TYPE type) | |
void | type (PANA_DeviceId::TYPE t) |
PANA_DeviceId::TYPE | type () |
const std::string & | id () |
bool | operator== (PANA_DeviceId &cmp) |
PANA_DeviceId & | operator= (PANA_DeviceId &src) |
Protected Attributes | |
TYPE | m_Type |
std::string | m_Id |
The first octet (8 bits) of the Device-Id (Code 1025) AVP data contains the device type. Rest of the AVP data payload contains the device data. The content and format of data (including byte and bit ordering) is expected to be specified in specific documents. For instance, [IPv6-ETHER].
UNKNOWN 0 IPV4_ADDRESS 1 IPV6_ADDRESS 2 LL_ADDRESS 3
For type 1 (IPv4 address), data size is 32 bits and for type 2 (IPv6 address), data size is 128 bits.
Definition at line 58 of file pana_device_id.h.