#include <mac48-address.h>
Public Member Functions | |
Mac48Address (const char *str) | |
void | CopyFrom (const uint8_t buffer[6]) |
void | CopyTo (uint8_t buffer[6]) const |
operator Address () const | |
bool | IsBroadcast (void) const |
bool | IsGroup (void) const |
Static Public Member Functions | |
static Mac48Address | ConvertFrom (const Address &address) |
static bool | IsMatchingType (const Address &address) |
static Mac48Address | Allocate (void) |
static Mac48Address | GetBroadcast (void) |
static Mac48Address | GetMulticast (Ipv4Address address) |
static Mac48Address | GetMulticast (Ipv6Address address) |
Get multicast address from IPv6 address. | |
static Mac48Address | GetMulticastPrefix (void) |
static Mac48Address | GetMulticast6Prefix (void) |
Get the multicast prefix for IPv6 (33:33:00:00:00:00). | |
Private Member Functions | |
Address | ConvertTo (void) const |
This class can contain 48 bit IEEE addresses.
ns3::Mac48Address::Mac48Address | ( | const char * | str | ) |
str | a string representing the new Mac48Address |
static Mac48Address ns3::Mac48Address::Allocate | ( | void | ) | [static] |
Allocate a new Mac48Address.
static Mac48Address ns3::Mac48Address::ConvertFrom | ( | const Address & | address | ) | [static] |
address | a polymorphic address |
Address ns3::Mac48Address::ConvertTo | ( | void | ) | const [private] |
void ns3::Mac48Address::CopyFrom | ( | const uint8_t | buffer[6] | ) |
buffer | address in network order |
void ns3::Mac48Address::CopyTo | ( | uint8_t | buffer[6] | ) | const |
buffer | address in network order |
static Mac48Address ns3::Mac48Address::GetBroadcast | ( | void | ) | [static] |
static Mac48Address ns3::Mac48Address::GetMulticast | ( | Ipv6Address | address | ) | [static] |
Get multicast address from IPv6 address.
static Mac48Address ns3::Mac48Address::GetMulticast | ( | Ipv4Address | address | ) | [static] |
static Mac48Address ns3::Mac48Address::GetMulticast6Prefix | ( | void | ) | [static] |
Get the multicast prefix for IPv6 (33:33:00:00:00:00).
static Mac48Address ns3::Mac48Address::GetMulticastPrefix | ( | void | ) | [static] |
bool ns3::Mac48Address::IsBroadcast | ( | void | ) | const |
bool ns3::Mac48Address::IsGroup | ( | void | ) | const |
static bool ns3::Mac48Address::IsMatchingType | ( | const Address & | address | ) | [static] |
ns3::Mac48Address::operator Address | ( | ) | const |