Commit 3b88abff authored by Francis Dupont's avatar Francis Dupont

[master] Moved to a plain if in getOptionCode()

parent 28c75903
...@@ -156,7 +156,11 @@ private: ...@@ -156,7 +156,11 @@ private:
/// @param u universe (V4 or V6). /// @param u universe (V4 or V6).
/// @return DHCPv4 V-I Vendor Class or DHCPv6 Vendor Class option code. /// @return DHCPv4 V-I Vendor Class or DHCPv6 Vendor Class option code.
static uint16_t getOptionCode(Option::Universe u) { static uint16_t getOptionCode(Option::Universe u) {
return (u == V4 ? DHO_VIVCO_SUBOPTIONS : D6O_VENDOR_CLASS); if (u == V4} {
return (DHO_VIVCO_SUBOPTIONS);
} else {
return (D6O_VENDOR_CLASS);
}
} }
/// @brief Returns the tuple length field type for the given universe. /// @brief Returns the tuple length field type for the given universe.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment