an EUI-64 address More...
#include <mac64-address.h>
Public Member Functions | |
| Mac64Address () | |
| 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 | Allocate (void) |
| static Mac64Address | ConvertFrom (const Address &address) |
| static bool | IsMatchingType (const Address &address) |
Private Member Functions | |
| Address | ConvertTo (void) const |
Static Private Member Functions | |
| static uint8_t | GetType (void) |
Private Attributes | |
| uint8_t | m_address [8] |
an EUI-64 address
This class can contain 64 bit IEEE addresses.
Definition at line 37 of file mac64-address.h.
| ns3::Mac64Address::Mac64Address | ( | ) |
Definition at line 49 of file mac64-address.cc.
References m_address.
| 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"
Definition at line 53 of file mac64-address.cc.
References ASCII_a, ASCII_COLON, ASCII_ZERO, ns3::AsciiToLowCase(), m_address, and NS_ASSERT.
Here is the call graph for this function:
|
static |
|
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.
Definition at line 104 of file mac64-address.cc.
References ns3::Address::CheckCompatible(), ns3::Address::CopyTo(), GetType(), and NS_ASSERT.
Here is the call graph for this function:
|
private |
| void ns3::Mac64Address::CopyFrom | ( | const uint8_t | buffer[8] | ) |
| buffer | address in network order |
Copy the input address to our internal buffer.
Definition at line 84 of file mac64-address.cc.
References m_address.
| void ns3::Mac64Address::CopyTo | ( | uint8_t | buffer[8] | ) | const |
| buffer | address in network order |
Copy the internal address to the input buffer.
Definition at line 89 of file mac64-address.cc.
References m_address.
Referenced by ns3::operator<<(), and ns3::operator==().
Here is the caller graph for this function:
|
staticprivate |
Definition at line 134 of file mac64-address.cc.
References ns3::Address::Register().
Referenced by ConvertFrom(), ConvertTo(), and IsMatchingType().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
| address | address to test |
Definition at line 95 of file mac64-address.cc.
References ns3::Address::CheckCompatible(), and GetType().
Here is the call graph for this function:| ns3::Mac64Address::operator Address | ( | ) | const |
Convert an instance of this class to a polymorphic Address instance.
Definition at line 99 of file mac64-address.cc.
|
private |
Definition at line 92 of file mac64-address.h.
Referenced by Allocate(), ConvertTo(), CopyFrom(), CopyTo(), and Mac64Address().