VOM: mroutes
[vpp.git] / extras / vom / vom / types.cpp
index c6093eb..0236df2 100644 (file)
@@ -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
 
 /*