20 #ifndef MAC48_ADDRESS_H
21 #define MAC48_ADDRESS_H
25 #include "ns3/attribute.h"
26 #include "ns3/attribute-helper.h"
57 void CopyFrom (
const uint8_t buffer[6]);
63 void CopyTo (uint8_t buffer[6])
const;
ATTRIBUTE_HELPER_HEADER(ObjectFactory)
static bool IsMatchingType(const Address &address)
std::istream & operator>>(std::istream &is, Angles &a)
initialize a struct Angles from input
static Mac48Address GetMulticastPrefix(void)
bool IsBroadcast(void) const
bool operator<(const Room &a, const Room &b)
a polymophic address class
friend std::istream & operator>>(std::istream &is, Mac48Address &address)
void CopyTo(uint8_t buffer[6]) const
static Mac48Address Allocate(void)
Allocate a new Mac48Address.
static Mac48Address GetMulticast(Ipv4Address address)
static Mac48Address GetBroadcast(void)
friend bool operator<(const Mac48Address &a, const Mac48Address &b)
static Mac48Address ConvertFrom(const Address &address)
std::ostream & operator<<(std::ostream &os, const Angles &a)
print a struct Angles to output
friend bool operator!=(const Mac48Address &a, const Mac48Address &b)
static uint8_t GetType(void)
bool operator!=(Callback< R, T1, T2, T3, T4, T5, T6, T7, T8, T9 > a, Callback< R, T1, T2, T3, T4, T5, T6, T7, T8, T9 > b)
Inequality test.
friend bool operator==(const Mac48Address &a, const Mac48Address &b)
Macro to make help make class an ns-3 attribute.
void CopyFrom(const uint8_t buffer[6])
Describes an IPv6 address.
Ipv4 addresses are stored in host order in this class.
bool operator==(const EventId &a, const EventId &b)
static Mac48Address GetMulticast6Prefix(void)
Get the multicast prefix for IPv6 (33:33:00:00:00:00).
Address ConvertTo(void) const