ns-3
|
an EUI-64 address More...
#include <mac64-address.h>
Public Member Functions | |
Mac64Address (const char *str) | |
void | CopyFrom (const uint8_t buffer[8]) |
void | CopyTo (uint8_t buffer[8]) const |
operator Address () const | |
Static Public Member Functions | |
static Mac64Address | ConvertFrom (const Address &address) |
static bool | IsMatchingType (const Address &address) |
static Mac64Address | Allocate (void) |
an EUI-64 address
This class can contain 64 bit IEEE addresses.
ns3::Mac64Address::Mac64Address | ( | const char * | str | ) |
str | a string representing the new Mac64Address |
The format of the string is "xx:xx:xx:xx:xx:xx"
References NS_ASSERT.
Mac64Address ns3::Mac64Address::Allocate | ( | void | ) | [static] |
Allocate a new Mac64Address.
Mac64Address ns3::Mac64Address::ConvertFrom | ( | const Address & | address | ) | [static] |
address | a polymorphic address |
This function performs a type check and asserts if the type of the input address is not compatible with an Mac64Address.
References ns3::Address::CheckCompatible(), ns3::Address::CopyTo(), and NS_ASSERT.
void ns3::Mac64Address::CopyFrom | ( | const uint8_t | buffer[8] | ) |
buffer | address in network order |
Copy the input address to our internal buffer.
void ns3::Mac64Address::CopyTo | ( | uint8_t | buffer[8] | ) | const |
buffer | address in network order |
Copy the internal address to the input buffer.
bool ns3::Mac64Address::IsMatchingType | ( | const Address & | address | ) | [static] |
address | address to test |
References ns3::Address::CheckCompatible().
ns3::Mac64Address::operator Address | ( | void | ) | const |