20#ifndef MAC48_ADDRESS_H
21#define MAC48_ADDRESS_H
25#include "ns3/attribute.h"
26#include "ns3/attribute-helper.h"
59 void CopyFrom (
const uint8_t buffer[6]);
65 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.
static Mac48Address Allocate(void)
Allocate a new Mac48Address.
static Mac48Address GetMulticast(Ipv4Address address)
friend std::ostream & operator<<(std::ostream &os, const Mac48Address &address)
Stream insertion operator.
static Mac48Address GetBroadcast(void)
static bool IsMatchingType(const Address &address)
static uint8_t GetType(void)
Return the Type of address.
void CopyFrom(const uint8_t buffer[6])
static Mac48Address GetMulticast6Prefix(void)
Get the multicast prefix for IPv6 (33:33:00:00:00:00).
Address ConvertTo(void) const
friend bool operator<(const Mac48Address &a, const Mac48Address &b)
Less than operator.
friend bool operator!=(const Mac48Address &a, const Mac48Address &b)
Not equal to operator.
bool IsBroadcast(void) const
static Mac48Address ConvertFrom(const Address &address)
static Mac48Address GetMulticastPrefix(void)
uint8_t m_address[6]
address value
friend bool operator==(const Mac48Address &a, const Mac48Address &b)
Equal to operator.
void CopyTo(uint8_t buffer[6]) const
friend std::istream & operator>>(std::istream &is, Mac48Address &address)
Stream extraction operator.
Forward calls to a chain of Callback.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
bool operator==(const EventId &a, const EventId &b)
ATTRIBUTE_HELPER_HEADER(ValueClassTest)
std::ostream & operator<<(std::ostream &os, const Angles &a)
std::istream & operator>>(std::istream &is, Angles &a)
bool operator<(const EventId &a, const EventId &b)
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.