|
NS-3
|
an EUI-48 address More...
#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). | |
Friends | |
| bool | operator< (const Mac48Address &a, const Mac48Address &b) |
| bool | operator== (const Mac48Address &a, const Mac48Address &b) |
| bool | operator!= (const Mac48Address &a, const Mac48Address &b) |
| std::istream & | operator>> (std::istream &is, Mac48Address &address) |
an EUI-48 address
This class can contain 48 bit IEEE addresses.
| ns3::Mac48Address::Mac48Address | ( | const char * | str | ) |
| str | a string representing the new Mac48Address |
The format of the string is "xx:xx:xx:xx:xx:xx"
| static Mac48Address ns3::Mac48Address::Allocate | ( | void | ) | [static] |
Allocate a new Mac48Address.
| static Mac48Address ns3::Mac48Address::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 Mac48Address.
| void ns3::Mac48Address::CopyFrom | ( | const uint8_t | buffer[6] | ) |
| buffer | address in network order |
Copy the input address to our internal buffer.
| void ns3::Mac48Address::CopyTo | ( | uint8_t | buffer[6] | ) | const |
| buffer | address in network order |
Copy the internal address to the input buffer.
| static Mac48Address ns3::Mac48Address::GetBroadcast | ( | void | ) | [static] |
| static Mac48Address ns3::Mac48Address::GetMulticast | ( | Ipv6Address | address | ) | [static] |
Get multicast address from IPv6 address.
| address | base IPv6 address |
| static Mac48Address ns3::Mac48Address::GetMulticast | ( | Ipv4Address | address | ) | [static] |
| address | base IPv4 address |
| 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] |
| address | address to test |
| ns3::Mac48Address::operator Address | ( | ) | const |