]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
1 | #include <iomanip> |
2 | ||
3 | #include "ethernet.h" | |
4 | ||
31f18b77 | 5 | std::ostream& operator<<(std::ostream& os, const ethernet_address& ea) { |
7c673cae FG |
6 | auto& m = ea.mac; |
7 | using u = uint32_t; | |
8 | os << std::hex << std::setw(2) | |
9 | << u(m[0]) << ":" | |
10 | << u(m[1]) << ":" | |
11 | << u(m[2]) << ":" | |
12 | << u(m[3]) << ":" | |
13 | << u(m[4]) << ":" | |
14 | << u(m[5]); | |
15 | return os; | |
16 | } |