14#include "ns3/attribute-helper.h"
15#include "ns3/attribute.h"
52 void CopyFrom(
const uint8_t buffer[6]);
58 void CopyTo(uint8_t buffer[6])
const;
a polymophic address class
Ipv4 addresses are stored in host order in this class.
Describes an IPv6 address.
std::array< uint8_t, 6 > m_address
Address value.
static Mac48Address GetMulticast(Ipv4Address address)
friend std::ostream & operator<<(std::ostream &os, const Mac48Address &address)
Stream insertion operator.
static void ResetAllocationIndex()
Reset the Mac48Address allocation index.
static bool IsMatchingType(const Address &address)
void CopyFrom(const uint8_t buffer[6])
void(* TracedCallback)(Mac48Address value)
TracedCallback signature for Mac48Address.
static uint8_t GetType()
Return the Type of address.
static Mac48Address ConvertFrom(const Address &address)
static Mac48Address GetBroadcast()
constexpr std::strong_ordering operator<=>(const Mac48Address &other) const =default
Spaceship comparison operator.
static Mac48Address Allocate()
Allocate a new Mac48Address.
static Mac48Address GetMulticast6Prefix()
Get the multicast prefix for IPv6 (33:33:00:00:00:00).
void CopyTo(uint8_t buffer[6]) const
static Mac48Address GetMulticastPrefix()
static uint64_t m_allocationIndex
Address allocation index.
friend std::istream & operator>>(std::istream &is, Mac48Address &address)
Stream extraction operator.
Address ConvertTo() const
#define ATTRIBUTE_HELPER_HEADER(type)
Declare the attribute value, accessor and checkers for class type.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
std::ostream & operator<<(std::ostream &os, const Angles &a)
std::istream & operator>>(std::istream &is, Angles &a)