X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=extras%2Fvom%2Fvom%2Ftypes.cpp;h=0236df28417d42244a2a3ca65f98590614ffe046;hb=refs%2Fchanges%2F13%2F16713%2F3;hp=c6093ebd15df4e7409f50c7f8042e2e1f0451dfc;hpb=164e5f8c63652028ecb9c3570e1ea8618b163071;p=vpp.git diff --git a/extras/vom/vom/types.cpp b/extras/vom/vom/types.cpp index c6093ebd15d..0236df28417 100644 --- a/extras/vom/vom/types.cpp +++ b/extras/vom/vom/types.cpp @@ -109,7 +109,7 @@ operator<<(std::ostream& os, const handle_t& h) return (os); } -mac_address_t::mac_address_t(uint8_t b[6]) +mac_address_t::mac_address_t(const uint8_t b[6]) { std::copy(b, b + 6, std::begin(bytes)); } @@ -324,6 +324,13 @@ ethertype_t::from_numeric_val(uint16_t numeric) return (ethertype_t::UNSPECIFIED); } +std::ostream& +operator<<(std::ostream& os, const counter_t& c) +{ + os << "[packets: " << c.packets << " bytes:" << c.bytes << "]"; + return os; +} + }; // namespace VOM /*