Code Review
/
stor4nfv.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
history
|
raw
|
HEAD
initial code repo
[stor4nfv.git]
/
src
/
ceph
/
src
/
msg
/
async
/
dpdk
/
ethernet.cc
1
#include <iomanip>
2
3
#include "ethernet.h"
4
5
std::ostream& operator<<(std::ostream& os, const ethernet_address& ea) {
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
}