diff --git a/src/lib/dhcp/option_vendor_class.h b/src/lib/dhcp/option_vendor_class.h index e4a86648371336de153d5b565d450361bcf63036..a3143547db0345ccd3ae33791fea3edbb5a10481 100644 --- a/src/lib/dhcp/option_vendor_class.h +++ b/src/lib/dhcp/option_vendor_class.h @@ -156,7 +156,11 @@ private: /// @param u universe (V4 or V6). /// @return DHCPv4 V-I Vendor Class or DHCPv6 Vendor Class option code. 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.