Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
GBP: fix dump and VOM populate
[vpp.git]
/
extras
/
vom
/
vom
/
types.hpp
diff --git
a/extras/vom/vom/types.hpp
b/extras/vom/vom/types.hpp
index
7b08d83
..
383735b
100644
(file)
--- a/
extras/vom/vom/types.hpp
+++ b/
extras/vom/vom/types.hpp
@@
-62,6
+62,11
@@
enum class dependency_t
*/
TABLE,
*/
TABLE,
+ /**
+ * virtual tables - tables with a dependency on another table
+ */
+ VIRTUAL_TABLE,
+
/**
* ACLs
*/
/**
* ACLs
*/
@@
-289,7
+294,7
@@
std::ostream& operator<<(std::ostream& os, const handle_t& h);
*/
struct mac_address_t
{
*/
struct mac_address_t
{
- mac_address_t(uint8_t bytes[6]);
+ mac_address_t(
const
uint8_t bytes[6]);
mac_address_t(const std::string& str);
mac_address_t(std::initializer_list<uint8_t> bytes);
/**
mac_address_t(const std::string& str);
mac_address_t(std::initializer_list<uint8_t> bytes);
/**
@@
-378,6
+383,22
@@
struct l2_address_t
std::vector<uint8_t> bytes;
};
std::vector<uint8_t> bytes;
};
+struct counter_t
+{
+ counter_t()
+ : packets(0)
+ , bytes(0)
+ {
+ }
+ counter_t(const counter_t& c)
+ : packets(c.packets)
+ , bytes(c.bytes)
+ {
+ }
+ uint64_t packets;
+ uint64_t bytes;
+};
+
/**
* Ostream operator for a MAC address
*/
/**
* Ostream operator for a MAC address
*/
@@
-387,6
+408,11
@@
std::ostream& operator<<(std::ostream& os, const mac_address_t& mac);
* Ostream operator for a MAC address
*/
std::ostream& operator<<(std::ostream& os, const l2_address_t& l2);
* Ostream operator for a MAC address
*/
std::ostream& operator<<(std::ostream& os, const l2_address_t& l2);
+
+/**
+ * Ostream operator for a MAC address
+ */
+std::ostream& operator<<(std::ostream& os, const counter_t& c);
};
/*
};
/*