|
135 |
static uint8_t GetType (void); |
135 |
static uint8_t GetType (void); |
136 |
friend bool operator < (const Mac48Address &a, const Mac48Address &b); |
136 |
friend bool operator < (const Mac48Address &a, const Mac48Address &b); |
137 |
friend bool operator == (const Mac48Address &a, const Mac48Address &b); |
137 |
friend bool operator == (const Mac48Address &a, const Mac48Address &b); |
|
|
138 |
friend bool operator != (const Mac48Address &a, const Mac48Address &b); |
138 |
friend std::istream& operator>> (std::istream& is, Mac48Address & address); |
139 |
friend std::istream& operator>> (std::istream& is, Mac48Address & address); |
139 |
|
140 |
|
140 |
uint8_t m_address[6]; |
141 |
uint8_t m_address[6]; |
|
147 |
|
148 |
|
148 |
ATTRIBUTE_HELPER_HEADER (Mac48Address); |
149 |
ATTRIBUTE_HELPER_HEADER (Mac48Address); |
149 |
|
150 |
|
150 |
bool operator == (const Mac48Address &a, const Mac48Address &b); |
151 |
inline bool operator == (const Mac48Address &a, const Mac48Address &b) |
151 |
bool operator != (const Mac48Address &a, const Mac48Address &b); |
152 |
{ |
152 |
bool operator < (const Mac48Address &a, const Mac48Address &b); |
153 |
return memcmp (a.m_address, b.m_address, 6) == 0; |
|
|
154 |
} |
155 |
inline bool operator != (const Mac48Address &a, const Mac48Address &b) |
156 |
{ |
157 |
return memcmp (a.m_address, b.m_address, 6) != 0; |
158 |
} |
159 |
inline bool operator < (const Mac48Address &a, const Mac48Address &b) |
160 |
{ |
161 |
return memcmp (a.m_address, b.m_address, 6) < 0; |
162 |
} |
163 |
|
153 |
std::ostream& operator<< (std::ostream& os, const Mac48Address & address); |
164 |
std::ostream& operator<< (std::ostream& os, const Mac48Address & address); |
154 |
std::istream& operator>> (std::istream& is, Mac48Address & address); |
165 |
std::istream& operator>> (std::istream& is, Mac48Address & address); |
155 |
|
166 |
|