A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ns3::Mac64Address Class Reference

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 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]
 

Detailed Description

an EUI-64 address

This class can contain 64 bit IEEE addresses.

Definition at line 37 of file mac64-address.h.

Constructor & Destructor Documentation

ns3::Mac64Address::Mac64Address ( const char *  str)
Parameters
stra string representing the new Mac64Address

The format of the string is "xx:xx:xx:xx:xx:xx"

Definition at line 58 of file mac64-address.cc.

References NS_ASSERT, and NS_LOG_FUNCTION.

Member Function Documentation

Mac64Address ns3::Mac64Address::Allocate ( void  )
static

Allocate a new Mac64Address.

Definition at line 130 of file mac64-address.cc.

References NS_LOG_FUNCTION_NOARGS.

Mac64Address ns3::Mac64Address::ConvertFrom ( const Address address)
static
Parameters
addressa polymorphic address
Returns
a new Mac64Address from the 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 113 of file mac64-address.cc.

References ns3::Address::CheckCompatible(), ns3::Address::CopyTo(), NS_ASSERT, and NS_LOG_FUNCTION.

Address ns3::Mac64Address::ConvertTo ( void  ) const
private
Returns
a new Address instance

Convert an instance of this class to a polymorphic Address instance.

Definition at line 123 of file mac64-address.cc.

References NS_LOG_FUNCTION.

void ns3::Mac64Address::CopyFrom ( const uint8_t  buffer[8])
Parameters
bufferaddress in network order

Copy the input address to our internal buffer.

Definition at line 90 of file mac64-address.cc.

References NS_LOG_FUNCTION.

void ns3::Mac64Address::CopyTo ( uint8_t  buffer[8]) const
Parameters
bufferaddress in network order

Copy the internal address to the input buffer.

Definition at line 96 of file mac64-address.cc.

References NS_LOG_FUNCTION.

bool ns3::Mac64Address::IsMatchingType ( const Address address)
static
Parameters
addressaddress to test
Returns
true if the address matches, false otherwise.

Definition at line 103 of file mac64-address.cc.

References ns3::Address::CheckCompatible(), and NS_LOG_FUNCTION.

ns3::Mac64Address::operator Address ( ) const
Returns
a new Address instance

Convert an instance of this class to a polymorphic Address instance.

Definition at line 108 of file mac64-address.cc.


The documentation for this class was generated from the following files: