mgmt: fix conflicting TLV-TYPE assignment
Amends df5053824fc53eec6847067faa2da8b0ebb69917
Change-Id: Ifba9fcac63528594c6442973adce313a95116c75
Refs: #4318, #4538
diff --git a/src/mgmt/nfd/control-parameters.hpp b/src/mgmt/nfd/control-parameters.hpp
index 7005e9d..c325e0b 100644
--- a/src/mgmt/nfd/control-parameters.hpp
+++ b/src/mgmt/nfd/control-parameters.hpp
@@ -41,7 +41,7 @@
CONTROL_PARAMETER_ORIGIN,
CONTROL_PARAMETER_COST,
CONTROL_PARAMETER_CAPACITY,
- CONTROL_PARAMETER_N_CS_ENTRIES,
+ CONTROL_PARAMETER_COUNT,
CONTROL_PARAMETER_FLAGS,
CONTROL_PARAMETER_MASK,
CONTROL_PARAMETER_STRATEGY,
@@ -60,7 +60,7 @@
"Origin",
"Cost",
"Capacity",
- "NCsEntries",
+ "Count",
"Flags",
"Mask",
"Strategy",
@@ -316,32 +316,32 @@
}
bool
- hasNCsEntries() const
+ hasCount() const
{
- return m_hasFields[CONTROL_PARAMETER_N_CS_ENTRIES];
+ return m_hasFields[CONTROL_PARAMETER_COUNT];
}
uint64_t
- getNCsEntries() const
+ getCount() const
{
- BOOST_ASSERT(this->hasNCsEntries());
- return m_nCsEntries;
+ BOOST_ASSERT(this->hasCount());
+ return m_count;
}
ControlParameters&
- setNCsEntries(uint64_t nCsEntries)
+ setCount(uint64_t count)
{
m_wire.reset();
- m_nCsEntries = nCsEntries;
- m_hasFields[CONTROL_PARAMETER_N_CS_ENTRIES] = true;
+ m_count = count;
+ m_hasFields[CONTROL_PARAMETER_COUNT] = true;
return *this;
}
ControlParameters&
- unsetNCsEntries()
+ unsetCount()
{
m_wire.reset();
- m_hasFields[CONTROL_PARAMETER_N_CS_ENTRIES] = false;
+ m_hasFields[CONTROL_PARAMETER_COUNT] = false;
return *this;
}
@@ -607,7 +607,7 @@
RouteOrigin m_origin;
uint64_t m_cost;
uint64_t m_capacity;
- uint64_t m_nCsEntries;
+ uint64_t m_count;
uint64_t m_flags;
uint64_t m_mask;
Name m_strategy;