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: add allowed ethertypes to contracts
[vpp.git]
/
extras
/
vom
/
vom
/
gbp_rule.cpp
diff --git
a/extras/vom/vom/gbp_rule.cpp
b/extras/vom/vom/gbp_rule.cpp
index
7aa7990
..
48c59b1
100644
(file)
--- a/
extras/vom/vom/gbp_rule.cpp
+++ b/
extras/vom/vom/gbp_rule.cpp
@@
-105,6
+105,12
@@
gbp_rule::next_hop_set_t::next_hop_set_t(const gbp_rule::hash_mode_t& hm,
{
}
{
}
+gbp_rule::next_hop_set_t::next_hop_set_t(const hash_mode_t& hm)
+ : m_hm(hm)
+ , m_nhs()
+{
+}
+
std::string
gbp_rule::next_hop_set_t::to_string() const
{
std::string
gbp_rule::next_hop_set_t::to_string() const
{
@@
-128,13
+134,13
@@
gbp_rule::next_hop_set_t::operator==(const next_hop_set_t& nhs) const
}
const gbp_rule::hash_mode_t&
}
const gbp_rule::hash_mode_t&
-gbp_rule::next_hop_set_t::
getHashM
ode() const
+gbp_rule::next_hop_set_t::
hash_m
ode() const
{
return m_hm;
}
const gbp_rule::next_hops_t&
{
return m_hm;
}
const gbp_rule::next_hops_t&
-gbp_rule::next_hop_set_t::
getNextH
ops() const
+gbp_rule::next_hop_set_t::
next_h
ops() const
{
return m_nhs;
}
{
return m_nhs;
}
@@
-168,6
+174,13
@@
gbp_rule::gbp_rule(uint32_t priority,
{
}
{
}
+gbp_rule::gbp_rule(uint32_t priority, const gbp_rule::action_t& a)
+ : m_priority(priority)
+ , m_nhs()
+ , m_action(a)
+{
+}
+
bool
gbp_rule::operator<(const gbp_rule& other) const
{
bool
gbp_rule::operator<(const gbp_rule& other) const
{
@@
-193,12
+206,6
@@
gbp_rule::to_string() const
return (s.str());
}
return (s.str());
}
-uint32_t
-gbp_rule::priority() const
-{
- return m_priority;
-}
-
const gbp_rule::action_t&
gbp_rule::action() const
{
const gbp_rule::action_t&
gbp_rule::action() const
{