]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#2765] Cleanup last reviewer changes
authorFrancis Dupont <fdupont@isc.org>
Sat, 11 Mar 2023 08:47:20 +0000 (09:47 +0100)
committerFrancis Dupont <fdupont@isc.org>
Sat, 11 Mar 2023 08:47:20 +0000 (09:47 +0100)
src/bin/dhcp4/tests/vendor_opts_unittest.cc
src/bin/dhcp6/dhcp6_srv.cc
src/bin/dhcp6/tests/vendor_opts_unittest.cc

index acd7363feafe70b2afb6bf49faee69011c1e0a3b..d5915aead5f5940c4ca0413351d96a570861be36 100644 (file)
@@ -79,11 +79,11 @@ public:
     /// @param requested_options The requested options in ORO.
     void testVendorOptionsORO(std::vector<uint32_t> configured_vendor_ids,
                               std::vector<uint32_t> requested_vendor_ids,
-                              std::vector<uint32_t> requested_options) {
+                              std::vector<uint16_t> requested_options) {
         std::vector<uint32_t> result_vendor_ids;
         ASSERT_FALSE(configured_vendor_ids.empty());
         ASSERT_EQ(configured_vendor_ids[0], VENDOR_ID_CABLE_LABS);
-        for (const auto& req : requested_vendor_ids) {
+        for (uint32_t req : requested_vendor_ids) {
             if (req == VENDOR_ID_CABLE_LABS) {
                 result_vendor_ids.push_back(req);
             }
@@ -211,11 +211,11 @@ public:
         // That suboption has code 1 and is a docsis ORO option.
         boost::shared_ptr<OptionUint8Array> vendor_oro(new OptionUint8Array(Option::V4,
                                                                             DOCSIS3_V4_ORO));
-        for (auto const& option : requested_options) {
+        for (uint16_t option : requested_options) {
             vendor_oro->addValue(option);
         }
 
-        for (auto const& vendor_id : requested_vendor_ids) {
+        for (uint32_t vendor_id : requested_vendor_ids) {
             OptionVendorPtr vendor(new OptionVendor(Option::V4, vendor_id));
             vendor->addOption(vendor_oro);
             dis->Pkt::addOption(vendor);
@@ -239,7 +239,7 @@ public:
             // The response should be an OptionVendor.
             OptionVendorPtr vendor_resp;
 
-            for (auto const& vendor_id : result_vendor_ids) {
+            for (uint32_t vendor_id : result_vendor_ids) {
                 vendor_resp = boost::dynamic_pointer_cast<OptionVendor>(opt.second);
                 ASSERT_TRUE(vendor_resp);
                 if (vendor_resp->getVendorId() == vendor_id) {
@@ -249,7 +249,7 @@ public:
             }
             ASSERT_TRUE(vendor_resp);
             if (vendor_resp->getVendorId() == VENDOR_ID_CABLE_LABS) {
-                for (auto const& option : requested_options) {
+                for (uint16_t option : requested_options) {
                     if (option == DOCSIS3_V4_TFTP_SERVERS) {
                         // Option 2 should be present.
                         OptionPtr docsis2 = vendor_resp->getOption(DOCSIS3_V4_TFTP_SERVERS);
@@ -309,7 +309,7 @@ public:
     /// OptionVendor options and suboptions.
     void testVendorOptionsPersistent(std::vector<uint32_t> configured_vendor_ids,
                                      std::vector<uint32_t> requested_vendor_ids,
-                                     std::vector<uint32_t> configured_options,
+                                     std::vector<uint16_t> configured_options,
                                      bool add_vendor_option) {
         std::vector<uint32_t> result_vendor_ids;
         ASSERT_FALSE(configured_vendor_ids.empty());
@@ -469,7 +469,7 @@ public:
         dis->addOption(clientid);
 
         if (add_vendor_option) {
-            for (auto const& vendor_id : requested_vendor_ids) {
+            for (uint32_t vendor_id : requested_vendor_ids) {
                 // Let's add a vendor-option (vendor-id=4491).
                 OptionVendorPtr vendor(new OptionVendor(Option::V4, vendor_id));
 
@@ -491,7 +491,7 @@ public:
             // The response should be an OptionVendor.
             OptionVendorPtr vendor_resp;
 
-            for (auto const& vendor_id : result_vendor_ids) {
+            for (uint32_t vendor_id : result_vendor_ids) {
                 vendor_resp = boost::dynamic_pointer_cast<OptionVendor>(opt.second);
                 ASSERT_TRUE(vendor_resp);
                 if (vendor_resp->getVendorId() == vendor_id) {
@@ -500,7 +500,7 @@ public:
             }
             ASSERT_TRUE(vendor_resp);
 
-            for (auto const& option : configured_options) {
+            for (uint16_t option : configured_options) {
                 if (add_vendor_option &&
                     std::find(requested_vendor_ids.begin(), requested_vendor_ids.end(),
                               vendor_resp->getVendorId()) == requested_vendor_ids.end()) {
@@ -584,8 +584,8 @@ public:
     /// always send flag set to true so it will always be sent.
     void testVendorOptionsOROAndPersistent(std::vector<uint32_t> configured_vendor_ids,
                                            std::vector<uint32_t> requested_vendor_ids,
-                                           std::vector<uint32_t> requested_options,
-                                           std::vector<uint32_t> configured_options) {
+                                           std::vector<uint16_t> requested_options,
+                                           std::vector<uint16_t> configured_options) {
         std::vector<uint32_t> result_vendor_ids;
         ASSERT_FALSE(configured_vendor_ids.empty());
         ASSERT_EQ(configured_vendor_ids[0], VENDOR_ID_CABLE_LABS);
@@ -729,13 +729,12 @@ public:
 
         // Let's add a vendor-option (vendor-id=4491) with a single sub-option.
         // That suboption has code 1 and is a docsis ORO option.
-        boost::shared_ptr<OptionUint8Array> vendor_oro(new OptionUint8Array(Option::V4,
-                                                                            DOCSIS3_V4_ORO));
-        for (auto const& option : requested_options) {
+        OptionUint8ArrayPtr vendor_oro(new OptionUint8Array(Option::V4, DOCSIS3_V4_ORO));
+        for (uint16_t option : requested_options) {
             vendor_oro->addValue(option);
         }
 
-        for (auto const& vendor_id : requested_vendor_ids) {
+        for (uint32_t vendor_id : requested_vendor_ids) {
             OptionVendorPtr vendor(new OptionVendor(Option::V4, vendor_id));
             vendor->addOption(vendor_oro);
             dis->Pkt::addOption(vendor);
@@ -755,7 +754,7 @@ public:
             // The response should be an OptionVendor.
             OptionVendorPtr vendor_resp;
 
-            for (auto const& vendor_id : result_vendor_ids) {
+            for (uint32_t vendor_id : result_vendor_ids) {
                 vendor_resp = boost::dynamic_pointer_cast<OptionVendor>(opt.second);
                 ASSERT_TRUE(vendor_resp);
                 if (vendor_resp->getVendorId() == vendor_id) {
@@ -764,7 +763,7 @@ public:
             }
             ASSERT_TRUE(vendor_resp);
 
-            for (auto const& option : configured_options) {
+            for (uint16_t option : configured_options) {
                 if (option == DOCSIS3_V4_TFTP_SERVERS) {
                     if (vendor_resp->getVendorId() == VENDOR_ID_CABLE_LABS &&
                         std::find(requested_options.begin(), requested_options.end(),
@@ -971,369 +970,369 @@ TEST_F(VendorOptsTest, docsisVendorORO) {
 // This test checks if Option Request Option (ORO) in docsis (vendor-id=4491)
 // vendor options is parsed correctly and the requested options are actually assigned.
 TEST_F(VendorOptsTest, vendorOptionsOROOneOption) {
-    testVendorOptionsORO({VENDOR_ID_CABLE_LABS},
-                         {VENDOR_ID_CABLE_LABS},
-                         {DOCSIS3_V4_TFTP_SERVERS});
+    testVendorOptionsORO({ VENDOR_ID_CABLE_LABS },
+                         { VENDOR_ID_CABLE_LABS },
+                         { DOCSIS3_V4_TFTP_SERVERS });
 }
 
 // This test checks if Option Request Option (ORO) in docsis (vendor-id=4491)
 // vendor options is parsed correctly and the requested options are actually assigned.
 TEST_F(VendorOptsTest, vendorOptionsOROMultipleOptions) {
-    testVendorOptionsORO({VENDOR_ID_CABLE_LABS},
-                         {VENDOR_ID_CABLE_LABS},
-                         {DOCSIS3_V4_TFTP_SERVERS, 22});
+    testVendorOptionsORO({ VENDOR_ID_CABLE_LABS },
+                         { VENDOR_ID_CABLE_LABS },
+                         { DOCSIS3_V4_TFTP_SERVERS, 22 });
 }
 
 // This test checks if Option Request Option (ORO) in docsis (vendor-id=4491)
 // vendor options is parsed correctly and the requested options are actually assigned.
 TEST_F(VendorOptsTest, vendorOptionsOROOneOptionMultipleVendorsMatchOne) {
-    testVendorOptionsORO({VENDOR_ID_CABLE_LABS, 3561},
-                         {VENDOR_ID_CABLE_LABS},
-                         {DOCSIS3_V4_TFTP_SERVERS});
+    testVendorOptionsORO({ VENDOR_ID_CABLE_LABS, 3561 },
+                         { VENDOR_ID_CABLE_LABS },
+                         { DOCSIS3_V4_TFTP_SERVERS });
 }
 
 // This test checks if Option Request Option (ORO) in docsis (vendor-id=4491)
 // vendor options is parsed correctly and the requested options are actually assigned.
 TEST_F(VendorOptsTest, vendorOptionsOROMultipleOptionsMultipleVendorsMatchOne) {
-    testVendorOptionsORO({VENDOR_ID_CABLE_LABS, 3561},
-                         {VENDOR_ID_CABLE_LABS},
-                         {DOCSIS3_V4_TFTP_SERVERS, 22});
+    testVendorOptionsORO({ VENDOR_ID_CABLE_LABS, 3561 },
+                         { VENDOR_ID_CABLE_LABS },
+                         { DOCSIS3_V4_TFTP_SERVERS, 22 });
 }
 
 // This test checks if Option Request Option (ORO) in docsis (vendor-id=4491)
 // vendor options is parsed correctly and the requested options are actually assigned.
 TEST_F(VendorOptsTest, vendorOptionsOROOneOptionMultipleVendorsMatchAll) {
-    testVendorOptionsORO({VENDOR_ID_CABLE_LABS, 3561},
-                         {VENDOR_ID_CABLE_LABS, 3561},
-                         {DOCSIS3_V4_TFTP_SERVERS});
+    testVendorOptionsORO({ VENDOR_ID_CABLE_LABS, 3561 },
+                         { VENDOR_ID_CABLE_LABS, 3561 },
+                         { DOCSIS3_V4_TFTP_SERVERS });
 }
 
 // This test checks if Option Request Option (ORO) in docsis (vendor-id=4491)
 // vendor options is parsed correctly and the requested options are actually assigned.
 TEST_F(VendorOptsTest, vendorOptionsOROMultipleOptionsMultipleVendorsMatchAll) {
-    testVendorOptionsORO({VENDOR_ID_CABLE_LABS, 3561},
-                         {VENDOR_ID_CABLE_LABS, 3561},
-                         {DOCSIS3_V4_TFTP_SERVERS, 22});
+    testVendorOptionsORO({ VENDOR_ID_CABLE_LABS, 3561 },
+                         { VENDOR_ID_CABLE_LABS, 3561 },
+                         { DOCSIS3_V4_TFTP_SERVERS, 22 });
 }
 
 // Same as vendorOptionsORO except a different vendor ID than Cable Labs is
 // provided and vendor options are expected to not be present in the response.
 TEST_F(VendorOptsTest, vendorOptionsOROOneOptionDifferentVendorID) {
-    testVendorOptionsORO({VENDOR_ID_CABLE_LABS},
-                         {32768},
-                         {DOCSIS3_V4_TFTP_SERVERS});
+    testVendorOptionsORO({ VENDOR_ID_CABLE_LABS },
+                         { 32768 },
+                         { DOCSIS3_V4_TFTP_SERVERS });
 }
 
 // Same as vendorOptionsORO except a different vendor ID than Cable Labs is
 // provided and vendor options are expected to not be present in the response.
 TEST_F(VendorOptsTest, vendorOptionsOROMultipleOptionsDifferentVendorID) {
-    testVendorOptionsORO({VENDOR_ID_CABLE_LABS},
-                         {32768},
-                         {DOCSIS3_V4_TFTP_SERVERS, 22});
+    testVendorOptionsORO({ VENDOR_ID_CABLE_LABS },
+                         { 32768 },
+                         { DOCSIS3_V4_TFTP_SERVERS, 22 });
 }
 
 // Same as vendorOptionsORO except a different vendor ID than Cable Labs is
 // provided and vendor options are expected to not be present in the response.
 TEST_F(VendorOptsTest, vendorOptionsOROOneOptionDifferentVendorIDMultipleVendorsMatchNone) {
-    testVendorOptionsORO({VENDOR_ID_CABLE_LABS, 3561},
-                         {32768, 16384},
-                         {DOCSIS3_V4_TFTP_SERVERS});
+    testVendorOptionsORO({ VENDOR_ID_CABLE_LABS, 3561 },
+                         { 32768, 16384 },
+                         { DOCSIS3_V4_TFTP_SERVERS });
 }
 
 // Same as vendorOptionsORO except a different vendor ID than Cable Labs is
 // provided and vendor options are expected to not be present in the response.
 TEST_F(VendorOptsTest, vendorOptionsOROMultipleOptionDifferentVendorIDMultipleVendorsMatchNone) {
-    testVendorOptionsORO({VENDOR_ID_CABLE_LABS, 3561},
-                         {32768, 16384},
-                         {DOCSIS3_V4_TFTP_SERVERS, 22});
+    testVendorOptionsORO({ VENDOR_ID_CABLE_LABS, 3561 },
+                         { 32768, 16384 },
+                         { DOCSIS3_V4_TFTP_SERVERS, 22 });
 }
 
 // This test checks vendor options are parsed correctly and the persistent
 // options are actually assigned.
 TEST_F(VendorOptsTest, vendorPersistentOptionsOneOption) {
-    testVendorOptionsPersistent({VENDOR_ID_CABLE_LABS},
-                                {VENDOR_ID_CABLE_LABS},
-                                {DOCSIS3_V4_TFTP_SERVERS},
+    testVendorOptionsPersistent({ VENDOR_ID_CABLE_LABS },
+                                { VENDOR_ID_CABLE_LABS },
+                                { DOCSIS3_V4_TFTP_SERVERS },
                                 false);
 }
 
 // This test checks vendor options are parsed correctly and the persistent
 // options are actually assigned.
 TEST_F(VendorOptsTest, vendorPersistentOptionsMultipleOption) {
-    testVendorOptionsPersistent({VENDOR_ID_CABLE_LABS},
-                                {VENDOR_ID_CABLE_LABS},
-                                {DOCSIS3_V4_TFTP_SERVERS, 22},
+    testVendorOptionsPersistent({ VENDOR_ID_CABLE_LABS },
+                                { VENDOR_ID_CABLE_LABS },
+                                { DOCSIS3_V4_TFTP_SERVERS, 22 },
                                 false);
 }
 
 // This test checks vendor options are parsed correctly and the persistent
 // options are actually assigned.
 TEST_F(VendorOptsTest, vendorPersistentOptionsOneOptionMultipleVendorsMatchOne) {
-    testVendorOptionsPersistent({VENDOR_ID_CABLE_LABS, 3561},
-                                {VENDOR_ID_CABLE_LABS},
-                                {DOCSIS3_V4_TFTP_SERVERS},
+    testVendorOptionsPersistent({ VENDOR_ID_CABLE_LABS, 3561 },
+                                { VENDOR_ID_CABLE_LABS },
+                                { DOCSIS3_V4_TFTP_SERVERS },
                                 false);
 }
 
 // This test checks vendor options are parsed correctly and the persistent
 // options are actually assigned.
 TEST_F(VendorOptsTest, vendorPersistentOptionsMultipleOptionMultipleVendorsMatchOne) {
-    testVendorOptionsPersistent({VENDOR_ID_CABLE_LABS, 3561},
-                                {VENDOR_ID_CABLE_LABS},
-                                {DOCSIS3_V4_TFTP_SERVERS, 22},
+    testVendorOptionsPersistent({ VENDOR_ID_CABLE_LABS, 3561 },
+                                { VENDOR_ID_CABLE_LABS },
+                                { DOCSIS3_V4_TFTP_SERVERS, 22 },
                                 false);
 }
 
 // This test checks vendor options are parsed correctly and the persistent
 // options are actually assigned.
 TEST_F(VendorOptsTest, vendorPersistentOptionsOneOptionMultipleVendorsMatchAll) {
-    testVendorOptionsPersistent({VENDOR_ID_CABLE_LABS, 3561},
-                                {VENDOR_ID_CABLE_LABS, 3561},
-                                {DOCSIS3_V4_TFTP_SERVERS},
+    testVendorOptionsPersistent({ VENDOR_ID_CABLE_LABS, 3561 },
+                                { VENDOR_ID_CABLE_LABS, 3561 },
+                                { DOCSIS3_V4_TFTP_SERVERS },
                                 false);
 }
 
 // This test checks vendor options are parsed correctly and the persistent
 // options are actually assigned.
 TEST_F(VendorOptsTest, vendorPersistentOptionsMultipleOptionMultipleVendorsMatchAll) {
-    testVendorOptionsPersistent({VENDOR_ID_CABLE_LABS, 3561},
-                                {VENDOR_ID_CABLE_LABS, 3561},
-                                {DOCSIS3_V4_TFTP_SERVERS, 22},
+    testVendorOptionsPersistent({ VENDOR_ID_CABLE_LABS, 3561 },
+                                { VENDOR_ID_CABLE_LABS, 3561 },
+                                { DOCSIS3_V4_TFTP_SERVERS, 22 },
                                 false);
 }
 
 // This test checks vendor options are parsed correctly and the persistent
 // options are actually assigned.
 TEST_F(VendorOptsTest, vendorPersistentOptionsOneOptionAddVendorOption) {
-    testVendorOptionsPersistent({VENDOR_ID_CABLE_LABS},
-                                {VENDOR_ID_CABLE_LABS},
-                                {DOCSIS3_V4_TFTP_SERVERS},
+    testVendorOptionsPersistent({ VENDOR_ID_CABLE_LABS },
+                                { VENDOR_ID_CABLE_LABS },
+                                { DOCSIS3_V4_TFTP_SERVERS },
                                 true);
 }
 
 // This test checks vendor options are parsed correctly and the persistent
 // options are actually assigned.
 TEST_F(VendorOptsTest, vendorPersistentOptionsMultipleOptionAddVendorOption) {
-    testVendorOptionsPersistent({VENDOR_ID_CABLE_LABS},
-                                {VENDOR_ID_CABLE_LABS},
-                                {DOCSIS3_V4_TFTP_SERVERS, 22},
+    testVendorOptionsPersistent({ VENDOR_ID_CABLE_LABS },
+                                { VENDOR_ID_CABLE_LABS },
+                                { DOCSIS3_V4_TFTP_SERVERS, 22 },
                                 true);
 }
 
 // This test checks vendor options are parsed correctly and the persistent
 // options are actually assigned.
 TEST_F(VendorOptsTest, vendorPersistentOptionsOneOptionMultipleVendorsMatchOneAddVendorOption) {
-    testVendorOptionsPersistent({VENDOR_ID_CABLE_LABS, 3561},
-                                {VENDOR_ID_CABLE_LABS},
-                                {DOCSIS3_V4_TFTP_SERVERS},
+    testVendorOptionsPersistent({ VENDOR_ID_CABLE_LABS, 3561 },
+                                { VENDOR_ID_CABLE_LABS },
+                                { DOCSIS3_V4_TFTP_SERVERS },
                                 true);
 }
 
 // This test checks vendor options are parsed correctly and the persistent
 // options are actually assigned.
 TEST_F(VendorOptsTest, vendorPersistentOptionsMultipleOptionMultipleVendorsMatchOneAddVendorOption) {
-    testVendorOptionsPersistent({VENDOR_ID_CABLE_LABS, 3561},
-                                {VENDOR_ID_CABLE_LABS},
-                                {DOCSIS3_V4_TFTP_SERVERS, 22},
+    testVendorOptionsPersistent({ VENDOR_ID_CABLE_LABS, 3561 },
+                                { VENDOR_ID_CABLE_LABS },
+                                { DOCSIS3_V4_TFTP_SERVERS, 22 },
                                 true);
 }
 
 // This test checks vendor options are parsed correctly and the persistent
 // options are actually assigned.
 TEST_F(VendorOptsTest, vendorPersistentOptionsOneOptionMultipleVendorsMatchAllAddVendorOption) {
-    testVendorOptionsPersistent({VENDOR_ID_CABLE_LABS, 3561},
-                                {VENDOR_ID_CABLE_LABS, 3561},
-                                {DOCSIS3_V4_TFTP_SERVERS},
+    testVendorOptionsPersistent({ VENDOR_ID_CABLE_LABS, 3561 },
+                                { VENDOR_ID_CABLE_LABS, 3561 },
+                                { DOCSIS3_V4_TFTP_SERVERS },
                                 true);
 }
 
 // This test checks vendor options are parsed correctly and the persistent
 // options are actually assigned.
 TEST_F(VendorOptsTest, vendorPersistentOptionsMultipleOptionMultipleVendorsMatchAllAddVendorOption) {
-    testVendorOptionsPersistent({VENDOR_ID_CABLE_LABS, 3561},
-                                {VENDOR_ID_CABLE_LABS, 3561},
-                                {DOCSIS3_V4_TFTP_SERVERS, 22},
+    testVendorOptionsPersistent({ VENDOR_ID_CABLE_LABS, 3561 },
+                                { VENDOR_ID_CABLE_LABS, 3561 },
+                                { DOCSIS3_V4_TFTP_SERVERS, 22 },
                                 true);
 }
 
 // This test checks if Option Request Option (ORO) in docsis (vendor-id=4491)
 // vendor options is parsed correctly and the requested options are actually assigned.
 TEST_F(VendorOptsTest, vendorOptionsOROAndPersistentOneOption) {
-    testVendorOptionsOROAndPersistent({VENDOR_ID_CABLE_LABS},
-                                      {VENDOR_ID_CABLE_LABS},
-                                      {DOCSIS3_V4_TFTP_SERVERS},
-                                      {DOCSIS3_V4_TFTP_SERVERS});
+    testVendorOptionsOROAndPersistent({ VENDOR_ID_CABLE_LABS },
+                                      { VENDOR_ID_CABLE_LABS },
+                                      { DOCSIS3_V4_TFTP_SERVERS },
+                                      { DOCSIS3_V4_TFTP_SERVERS });
 }
 
 // This test checks if Option Request Option (ORO) in docsis (vendor-id=4491)
 // vendor options is parsed correctly and the requested options are actually assigned.
 TEST_F(VendorOptsTest, vendorOptionsOROAndPersistentMultipleOptions) {
-    testVendorOptionsOROAndPersistent({VENDOR_ID_CABLE_LABS},
-                                      {VENDOR_ID_CABLE_LABS},
-                                      {DOCSIS3_V4_TFTP_SERVERS},
-                                      {DOCSIS3_V4_TFTP_SERVERS, 22});
+    testVendorOptionsOROAndPersistent({ VENDOR_ID_CABLE_LABS },
+                                      { VENDOR_ID_CABLE_LABS },
+                                      { DOCSIS3_V4_TFTP_SERVERS },
+                                      { DOCSIS3_V4_TFTP_SERVERS, 22 });
 }
 
 // This test checks if Option Request Option (ORO) in docsis (vendor-id=4491)
 // vendor options is parsed correctly and the requested options are actually assigned.
 TEST_F(VendorOptsTest, vendorOptionsOROAndPersistentOneOptionMultipleVendorsMatchOne) {
-    testVendorOptionsOROAndPersistent({VENDOR_ID_CABLE_LABS, 3561},
-                                      {VENDOR_ID_CABLE_LABS},
-                                      {DOCSIS3_V4_TFTP_SERVERS},
-                                      {DOCSIS3_V4_TFTP_SERVERS});
+    testVendorOptionsOROAndPersistent({ VENDOR_ID_CABLE_LABS, 3561 },
+                                      { VENDOR_ID_CABLE_LABS },
+                                      { DOCSIS3_V4_TFTP_SERVERS },
+                                      { DOCSIS3_V4_TFTP_SERVERS });
 }
 
 // This test checks if Option Request Option (ORO) in docsis (vendor-id=4491)
 // vendor options is parsed correctly and the requested options are actually assigned.
 TEST_F(VendorOptsTest, vendorOptionsOROAndPersistentMultipleOptionsMultipleVendorsMatchOne) {
-    testVendorOptionsOROAndPersistent({VENDOR_ID_CABLE_LABS, 3561},
-                                      {VENDOR_ID_CABLE_LABS},
-                                      {DOCSIS3_V4_TFTP_SERVERS},
-                                      {DOCSIS3_V4_TFTP_SERVERS, 22});
+    testVendorOptionsOROAndPersistent({ VENDOR_ID_CABLE_LABS, 3561 },
+                                      { VENDOR_ID_CABLE_LABS },
+                                      { DOCSIS3_V4_TFTP_SERVERS },
+                                      { DOCSIS3_V4_TFTP_SERVERS, 22 });
 }
 
 // This test checks if Option Request Option (ORO) in docsis (vendor-id=4491)
 // vendor options is parsed correctly and the requested options are actually assigned.
 TEST_F(VendorOptsTest, vendorOptionsOROAndPersistentOneOptionMultipleVendorsMatchAll) {
-    testVendorOptionsOROAndPersistent({VENDOR_ID_CABLE_LABS, 3561},
-                                      {VENDOR_ID_CABLE_LABS, 3561},
-                                      {DOCSIS3_V4_TFTP_SERVERS},
-                                      {DOCSIS3_V4_TFTP_SERVERS});
+    testVendorOptionsOROAndPersistent({ VENDOR_ID_CABLE_LABS, 3561 },
+                                      { VENDOR_ID_CABLE_LABS, 3561 },
+                                      { DOCSIS3_V4_TFTP_SERVERS },
+                                      { DOCSIS3_V4_TFTP_SERVERS });
 }
 
 // This test checks if Option Request Option (ORO) in docsis (vendor-id=4491)
 // vendor options is parsed correctly and the requested options are actually assigned.
 TEST_F(VendorOptsTest, vendorOptionsOROAndPersistentMultipleOptionsMultipleVendorsMatchAll) {
-    testVendorOptionsOROAndPersistent({VENDOR_ID_CABLE_LABS, 3561},
-                                      {VENDOR_ID_CABLE_LABS, 3561},
-                                      {DOCSIS3_V4_TFTP_SERVERS},
-                                      {DOCSIS3_V4_TFTP_SERVERS, 22});
+    testVendorOptionsOROAndPersistent({ VENDOR_ID_CABLE_LABS, 3561 },
+                                      { VENDOR_ID_CABLE_LABS, 3561 },
+                                      { DOCSIS3_V4_TFTP_SERVERS },
+                                      { DOCSIS3_V4_TFTP_SERVERS, 22 });
 }
 
 // Same as vendorOptionsORO except a different vendor ID than Cable Labs is
 // provided and vendor options are expected to not be present in the response.
 TEST_F(VendorOptsTest, vendorOptionsOROAndPersistentOneOptionDifferentVendorID) {
-    testVendorOptionsOROAndPersistent({VENDOR_ID_CABLE_LABS},
-                                      {32768},
-                                      {DOCSIS3_V4_TFTP_SERVERS},
-                                      {DOCSIS3_V4_TFTP_SERVERS});
+    testVendorOptionsOROAndPersistent({ VENDOR_ID_CABLE_LABS },
+                                      { 32768 },
+                                      { DOCSIS3_V4_TFTP_SERVERS },
+                                      { DOCSIS3_V4_TFTP_SERVERS });
 }
 
 // Same as vendorOptionsORO except a different vendor ID than Cable Labs is
 // provided and vendor options are expected to not be present in the response.
 TEST_F(VendorOptsTest, vendorOptionsOROAndPersistentMultipleOptionsDifferentVendorID) {
-    testVendorOptionsOROAndPersistent({VENDOR_ID_CABLE_LABS},
-                                      {32768},
-                                      {DOCSIS3_V4_TFTP_SERVERS},
-                                      {DOCSIS3_V4_TFTP_SERVERS, 22});
+    testVendorOptionsOROAndPersistent({ VENDOR_ID_CABLE_LABS },
+                                      { 32768 },
+                                      { DOCSIS3_V4_TFTP_SERVERS },
+                                      { DOCSIS3_V4_TFTP_SERVERS, 22 });
 }
 
 // Same as vendorOptionsORO except a different vendor ID than Cable Labs is
 // provided and vendor options are expected to not be present in the response.
 TEST_F(VendorOptsTest, vendorOptionsOROAndPersistentOneOptionDifferentVendorIDMultipleVendorsMatchNone) {
-    testVendorOptionsOROAndPersistent({VENDOR_ID_CABLE_LABS, 3561},
-                                      {32768, 16384},
-                                      {DOCSIS3_V4_TFTP_SERVERS},
-                                      {DOCSIS3_V4_TFTP_SERVERS});
+    testVendorOptionsOROAndPersistent({ VENDOR_ID_CABLE_LABS, 3561 },
+                                      { 32768, 16384 },
+                                      { DOCSIS3_V4_TFTP_SERVERS },
+                                      { DOCSIS3_V4_TFTP_SERVERS });
 }
 
 // Same as vendorOptionsORO except a different vendor ID than Cable Labs is
 // provided and vendor options are expected to not be present in the response.
 TEST_F(VendorOptsTest, vendorOptionsOROAndPersistentMultipleOptionDifferentVendorIDMultipleVendorsMatchNone) {
-    testVendorOptionsOROAndPersistent({VENDOR_ID_CABLE_LABS, 3561},
-                                      {32768, 16384},
-                                      {DOCSIS3_V4_TFTP_SERVERS},
-                                      {DOCSIS3_V4_TFTP_SERVERS, 22});
+    testVendorOptionsOROAndPersistent({ VENDOR_ID_CABLE_LABS, 3561 },
+                                      { 32768, 16384 },
+                                      { DOCSIS3_V4_TFTP_SERVERS },
+                                      { DOCSIS3_V4_TFTP_SERVERS, 22 });
 }
 
 // This test checks if Option Request Option (ORO) in docsis (vendor-id=4491)
 // vendor options is parsed correctly and the requested options are actually assigned.
 TEST_F(VendorOptsTest, vendorOptionsOROAndPersistentOneOptionNoneRequested) {
-    testVendorOptionsOROAndPersistent({VENDOR_ID_CABLE_LABS},
-                                      {VENDOR_ID_CABLE_LABS},
+    testVendorOptionsOROAndPersistent({ VENDOR_ID_CABLE_LABS },
+                                      { VENDOR_ID_CABLE_LABS },
                                       {},
-                                      {DOCSIS3_V4_TFTP_SERVERS});
+                                      { DOCSIS3_V4_TFTP_SERVERS });
 }
 
 // This test checks if Option Request Option (ORO) in docsis (vendor-id=4491)
 // vendor options is parsed correctly and the requested options are actually assigned.
 TEST_F(VendorOptsTest, vendorOptionsOROAndPersistentMultipleOptionsNoneRequested) {
-    testVendorOptionsOROAndPersistent({VENDOR_ID_CABLE_LABS},
-                                      {VENDOR_ID_CABLE_LABS},
+    testVendorOptionsOROAndPersistent({ VENDOR_ID_CABLE_LABS },
+                                      { VENDOR_ID_CABLE_LABS },
                                       {},
-                                      {DOCSIS3_V4_TFTP_SERVERS, 22});
+                                      { DOCSIS3_V4_TFTP_SERVERS, 22 });
 }
 
 // This test checks if Option Request Option (ORO) in docsis (vendor-id=4491)
 // vendor options is parsed correctly and the requested options are actually assigned.
 TEST_F(VendorOptsTest, vendorOptionsOROAndPersistentOneOptionMultipleVendorsMatchOneNoneRequested) {
-    testVendorOptionsOROAndPersistent({VENDOR_ID_CABLE_LABS, 3561},
-                                      {VENDOR_ID_CABLE_LABS},
+    testVendorOptionsOROAndPersistent({ VENDOR_ID_CABLE_LABS, 3561 },
+                                      { VENDOR_ID_CABLE_LABS },
                                       {},
-                                      {DOCSIS3_V4_TFTP_SERVERS});
+                                      { DOCSIS3_V4_TFTP_SERVERS });
 }
 
 // This test checks if Option Request Option (ORO) in docsis (vendor-id=4491)
 // vendor options is parsed correctly and the requested options are actually assigned.
 TEST_F(VendorOptsTest, vendorOptionsOROAndPersistentMultipleOptionsMultipleVendorsMatchOneNoneRequested) {
-    testVendorOptionsOROAndPersistent({VENDOR_ID_CABLE_LABS, 3561},
-                                      {VENDOR_ID_CABLE_LABS},
+    testVendorOptionsOROAndPersistent({ VENDOR_ID_CABLE_LABS, 3561 },
+                                      { VENDOR_ID_CABLE_LABS },
                                       {},
-                                      {DOCSIS3_V4_TFTP_SERVERS, 22});
+                                      { DOCSIS3_V4_TFTP_SERVERS, 22 });
 }
 
 // This test checks if Option Request Option (ORO) in docsis (vendor-id=4491)
 // vendor options is parsed correctly and the requested options are actually assigned.
 TEST_F(VendorOptsTest, vendorOptionsOROAndPersistentOneOptionMultipleVendorsMatchAllNoneRequested) {
-    testVendorOptionsOROAndPersistent({VENDOR_ID_CABLE_LABS, 3561},
-                                      {VENDOR_ID_CABLE_LABS, 3561},
+    testVendorOptionsOROAndPersistent({ VENDOR_ID_CABLE_LABS, 3561 },
+                                      { VENDOR_ID_CABLE_LABS, 3561 },
                                       {},
-                                      {DOCSIS3_V4_TFTP_SERVERS});
+                                      { DOCSIS3_V4_TFTP_SERVERS });
 }
 
 // This test checks if Option Request Option (ORO) in docsis (vendor-id=4491)
 // vendor options is parsed correctly and the requested options are actually assigned.
 TEST_F(VendorOptsTest, vendorOptionsOROAndPersistentMultipleOptionsMultipleVendorsMatchAllNoneRequested) {
-    testVendorOptionsOROAndPersistent({VENDOR_ID_CABLE_LABS, 3561},
-                                      {VENDOR_ID_CABLE_LABS, 3561},
+    testVendorOptionsOROAndPersistent({ VENDOR_ID_CABLE_LABS, 3561 },
+                                      { VENDOR_ID_CABLE_LABS, 3561 },
                                       {},
-                                      {DOCSIS3_V4_TFTP_SERVERS, 22});
+                                      { DOCSIS3_V4_TFTP_SERVERS, 22 });
 }
 
 // Same as vendorOptionsORO except a different vendor ID than Cable Labs is
 // provided and vendor options are expected to not be present in the response.
 TEST_F(VendorOptsTest, vendorOptionsOROAndPersistentOneOptionDifferentVendorIDNoneRequested) {
-    testVendorOptionsOROAndPersistent({VENDOR_ID_CABLE_LABS},
-                                      {32768},
+    testVendorOptionsOROAndPersistent({ VENDOR_ID_CABLE_LABS },
+                                      { 32768 },
                                       {},
-                                      {DOCSIS3_V4_TFTP_SERVERS});
+                                      { DOCSIS3_V4_TFTP_SERVERS });
 }
 
 // Same as vendorOptionsORO except a different vendor ID than Cable Labs is
 // provided and vendor options are expected to not be present in the response.
 TEST_F(VendorOptsTest, vendorOptionsOROAndPersistentMultipleOptionsDifferentVendorIDNoneRequested) {
-    testVendorOptionsOROAndPersistent({VENDOR_ID_CABLE_LABS},
-                                      {32768},
+    testVendorOptionsOROAndPersistent({ VENDOR_ID_CABLE_LABS },
+                                      { 32768 },
                                       {},
-                                      {DOCSIS3_V4_TFTP_SERVERS, 22});
+                                      { DOCSIS3_V4_TFTP_SERVERS, 22 });
 }
 
 // Same as vendorOptionsORO except a different vendor ID than Cable Labs is
 // provided and vendor options are expected to not be present in the response.
 TEST_F(VendorOptsTest, vendorOptionsOROAndPersistentOneOptionDifferentVendorIDMultipleVendorsMatchNoneNoneRequested) {
-    testVendorOptionsOROAndPersistent({VENDOR_ID_CABLE_LABS, 3561},
-                                      {32768, 16384},
+    testVendorOptionsOROAndPersistent({ VENDOR_ID_CABLE_LABS, 3561 },
+                                      { 32768, 16384 },
                                       {},
-                                      {DOCSIS3_V4_TFTP_SERVERS});
+                                      { DOCSIS3_V4_TFTP_SERVERS });
 }
 
 // Same as vendorOptionsORO except a different vendor ID than Cable Labs is
 // provided and vendor options are expected to not be present in the response.
 TEST_F(VendorOptsTest, vendorOptionsOROAndPersistentMultipleOptionDifferentVendorIDMultipleVendorsMatchNoneNoneRequested) {
-    testVendorOptionsOROAndPersistent({VENDOR_ID_CABLE_LABS, 3561},
-                                      {32768, 16384},
+    testVendorOptionsOROAndPersistent({ VENDOR_ID_CABLE_LABS, 3561 },
+                                      { 32768, 16384 },
                                       {},
-                                      {DOCSIS3_V4_TFTP_SERVERS, 22});
+                                      { DOCSIS3_V4_TFTP_SERVERS, 22 });
 }
 
 // Test checks whether it is possible to use option definitions defined in
index 566ddfded08680c5e7de6406e2999baeba7c973e..a2ca314f025114fd8a4c94853aa32199db222e33 100644 (file)
@@ -1505,14 +1505,15 @@ Dhcpv6Srv::appendRequestedOptions(const Pkt6Ptr& question, Pkt6Ptr& answer,
              desc != range.second; ++desc) {
             // Add the persistent option code to requested options
             if (desc->option_) {
-                static_cast<void>(requested_opts.insert(desc->option_->getType()));
+                uint16_t code = desc->option_->getType();
+                static_cast<void>(requested_opts.insert(code));
             }
         }
     }
 
     // For each requested option code get the first instance of the option
     // to be returned to the client.
-    for (auto const& opt : requested_opts) {
+    for (uint16_t opt : requested_opts) {
         // Add nothing when it is already there.
         // Skip special cases: D6O_VENDOR_OPTS
         if (opt == D6O_VENDOR_OPTS) {
@@ -1540,7 +1541,8 @@ Dhcpv6Srv::appendRequestedOptions(const Pkt6Ptr& question, Pkt6Ptr& answer,
             OptionVendorClassPtr vendor_class;
             vendor_class = boost::dynamic_pointer_cast<OptionVendorClass>(opt.second);
             if (vendor_class) {
-                static_cast<void>(vendor_ids.insert(vendor_class->getVendorId()));
+                uint32_t vendor_id = vendor_class->getVendorId();
+                static_cast<void>(vendor_ids.insert(vendor_id));
             }
         }
         // Iterate on the configured option list
@@ -1574,7 +1576,8 @@ Dhcpv6Srv::appendRequestedOptions(const Pkt6Ptr& question, Pkt6Ptr& answer,
             OptionVendorPtr vendor_opts;
             vendor_opts = boost::dynamic_pointer_cast<OptionVendor>(opt.second);
             if (vendor_opts) {
-                static_cast<void>(vendor_ids.insert(vendor_opts->getVendorId()));
+                uint32_t vendor_id = vendor_opts->getVendorId();
+                static_cast<void>(vendor_ids.insert(vendor_id));
             }
         }
         // Iterate on the configured option list
@@ -1655,7 +1658,8 @@ Dhcpv6Srv::appendRequestedVendorOptions(const Pkt6Ptr& question,
         OptionVendorClassPtr vendor_class;
         vendor_class = boost::dynamic_pointer_cast<OptionVendorClass>(opt.second);
         if (vendor_class) {
-            static_cast<void>(vendor_ids.insert(vendor_class->getVendorId()));
+            uint32_t vendor_id = vendor_class->getVendorId();
+            static_cast<void>(vendor_ids.insert(vendor_id));
         }
     }
 
@@ -1706,7 +1710,8 @@ Dhcpv6Srv::appendRequestedVendorOptions(const Pkt6Ptr& question,
                     continue;
                 }
                 // Add the persistent option code to requested options
-                static_cast<void>(requested_opts[vendor_id].insert(desc->option_->getType()));
+                uint16_t code = desc->option_->getType();
+                static_cast<void>(requested_opts[vendor_id].insert(code));
             }
         }
 
index cd2a7246c2a3e5d13d4e97f93e267cc878229b4c..4fdf2cb5d377d66f2155b5dccfbadd3e09ea0830 100644 (file)
@@ -71,11 +71,11 @@ public:
     /// @param requested_options The requested options in ORO.
     void testVendorOptionsORO(std::vector<uint32_t> configured_vendor_ids,
                               std::vector<uint32_t> requested_vendor_ids,
-                              std::vector<uint32_t> requested_options) {
+                              std::vector<uint16_t> requested_options) {
         std::vector<uint32_t> result_vendor_ids;
         ASSERT_FALSE(configured_vendor_ids.empty());
         ASSERT_EQ(configured_vendor_ids[0], VENDOR_ID_CABLE_LABS);
-        for (const auto& req : requested_vendor_ids) {
+        for (uint32_t req : requested_vendor_ids) {
             if (req == VENDOR_ID_CABLE_LABS) {
                 result_vendor_ids.push_back(req);
             }
@@ -190,13 +190,12 @@ public:
 
         // Let's add a vendor-option (vendor-id=4491) with a single sub-option.
         // That suboption has code 1 and is a docsis ORO option.
-        boost::shared_ptr<OptionUint16Array> vendor_oro(new OptionUint16Array(Option::V6,
-                                                                              DOCSIS3_V6_ORO));
-        for (auto const& option : requested_options) {
+        OptionUint16ArrayPtr vendor_oro(new OptionUint16Array(Option::V6, DOCSIS3_V6_ORO));
+        for (uint16_t option : requested_options) {
             vendor_oro->addValue(option);
         }
 
-        for (auto const& vendor_id : requested_vendor_ids) {
+        for (uint32_t vendor_id : requested_vendor_ids) {
             OptionVendorPtr vendor(new OptionVendor(Option::V6, vendor_id));
             vendor->addOption(vendor_oro);
             sol->addOption(vendor);
@@ -225,7 +224,7 @@ public:
             // The response should be an OptionVendor.
             OptionVendorPtr vendor_resp;
 
-            for (auto const& vendor_id : result_vendor_ids) {
+            for (uint32_t vendor_id : result_vendor_ids) {
                 vendor_resp = boost::dynamic_pointer_cast<OptionVendor>(opt.second);
                 ASSERT_TRUE(vendor_resp);
                 if (vendor_resp->getVendorId() == vendor_id) {
@@ -235,7 +234,7 @@ public:
             }
             ASSERT_TRUE(vendor_resp);
             if (vendor_resp->getVendorId() == VENDOR_ID_CABLE_LABS) {
-                for (auto const& option : requested_options) {
+                for (uint16_t option : requested_options) {
                     if (option == DOCSIS3_V6_CONFIG_FILE) {
                         // Option 33 should be present.
                         OptionPtr docsis33 = vendor_resp->getOption(DOCSIS3_V6_CONFIG_FILE);
@@ -289,13 +288,13 @@ public:
     /// OptionVendor options and suboptions.
     void testVendorOptionsPersistent(std::vector<uint32_t> configured_vendor_ids,
                                      std::vector<uint32_t> requested_vendor_ids,
-                                     std::vector<uint32_t> configured_options,
+                                     std::vector<uint16_t> configured_options,
                                      bool add_vendor_option) {
         std::vector<uint32_t> result_vendor_ids;
         ASSERT_FALSE(configured_vendor_ids.empty());
         ASSERT_EQ(configured_vendor_ids[0], VENDOR_ID_CABLE_LABS);
         if (add_vendor_option) {
-            for (const auto& req : requested_vendor_ids) {
+            for (uint32_t req : requested_vendor_ids) {
                 if (std::find(configured_vendor_ids.begin(),
                               configured_vendor_ids.end(), req) !=
                     configured_vendor_ids.end()) {
@@ -433,7 +432,7 @@ public:
         sol->addOption(clientid);
 
         if (add_vendor_option) {
-            for (auto const& vendor_id : requested_vendor_ids) {
+            for (uint32_t vendor_id : requested_vendor_ids) {
                 // Let's add a vendor-option (vendor-id=4491).
                 OptionVendorPtr vendor(new OptionVendor(Option::V6, vendor_id));
 
@@ -460,7 +459,7 @@ public:
             // The response should be an OptionVendor.
             OptionVendorPtr vendor_resp;
 
-            for (auto const& vendor_id : result_vendor_ids) {
+            for (uint32_t vendor_id : result_vendor_ids) {
                 vendor_resp = boost::dynamic_pointer_cast<OptionVendor>(opt.second);
                 ASSERT_TRUE(vendor_resp);
                 if (vendor_resp->getVendorId() == vendor_id) {
@@ -469,7 +468,7 @@ public:
             }
             ASSERT_TRUE(vendor_resp);
 
-            for (auto const& option : configured_options) {
+            for (uint16_t option : configured_options) {
                 if (add_vendor_option &&
                     std::find(requested_vendor_ids.begin(), requested_vendor_ids.end(),
                               vendor_resp->getVendorId()) == requested_vendor_ids.end()) {
@@ -537,8 +536,8 @@ public:
     /// always send flag set to true so it will always be sent.
     void testVendorOptionsOROAndPersistent(std::vector<uint32_t> configured_vendor_ids,
                                            std::vector<uint32_t> requested_vendor_ids,
-                                           std::vector<uint32_t> requested_options,
-                                           std::vector<uint32_t> configured_options) {
+                                           std::vector<uint16_t> requested_options,
+                                           std::vector<uint16_t> configured_options) {
         std::vector<uint32_t> result_vendor_ids;
         ASSERT_FALSE(configured_vendor_ids.empty());
         ASSERT_EQ(configured_vendor_ids[0], VENDOR_ID_CABLE_LABS);
@@ -668,11 +667,11 @@ public:
         // That suboption has code 1 and is a docsis ORO option.
         boost::shared_ptr<OptionUint16Array> vendor_oro(new OptionUint16Array(Option::V6,
                                                                               DOCSIS3_V6_ORO));
-        for (auto const& option : requested_options) {
+        for (uint16_t option : requested_options) {
             vendor_oro->addValue(option);
         }
 
-        for (auto const& vendor_id : requested_vendor_ids) {
+        for (uint32_t vendor_id : requested_vendor_ids) {
             OptionVendorPtr vendor(new OptionVendor(Option::V6, vendor_id));
             vendor->addOption(vendor_oro);
             sol->addOption(vendor);
@@ -697,7 +696,7 @@ public:
             // The response should be an OptionVendor.
             OptionVendorPtr vendor_resp;
 
-            for (auto const& vendor_id : result_vendor_ids) {
+            for (uint32_t vendor_id : result_vendor_ids) {
                 vendor_resp = boost::dynamic_pointer_cast<OptionVendor>(opt.second);
                 ASSERT_TRUE(vendor_resp);
                 if (vendor_resp->getVendorId() == vendor_id) {
@@ -706,7 +705,7 @@ public:
             }
             ASSERT_TRUE(vendor_resp);
 
-            for (auto const& option : configured_options) {
+            for (uint16_t option : configured_options) {
                 if (option == DOCSIS3_V6_CONFIG_FILE) {
                     if (vendor_resp->getVendorId() == VENDOR_ID_CABLE_LABS &&
                         std::find(requested_options.begin(), requested_options.end(),
@@ -761,13 +760,13 @@ public:
     }
 
     /// @brief Test what options a client can use to request vendor options.
-    void testRequestingOfVendorOptions(vector<int8_t> const& client_options) {
+    void testRequestingOfVendorOptions(vector<int16_t> const& client_options) {
         Dhcp6Client client;
 
         EXPECT_NO_THROW(configure(config_, *client.getServer()));
 
         bool should_yield_response(false);
-        for (int8_t const i : client_options) {
+        for (int16_t i : client_options) {
             OptionPtr vendor_option;
 
             if (i == D6O_USER_CLASS) {
@@ -873,23 +872,23 @@ TEST_F(VendorOptsTest, dontRequestVendorID) {
 }
 
 TEST_F(VendorOptsTest, negativeTestRequestVendorIDWithOption15) {
-    testRequestingOfVendorOptions({D6O_USER_CLASS});
+    testRequestingOfVendorOptions({ D6O_USER_CLASS });
 }
 
 TEST_F(VendorOptsTest, requestVendorIDWithOption16) {
-    testRequestingOfVendorOptions({D6O_VENDOR_CLASS});
+    testRequestingOfVendorOptions({ D6O_VENDOR_CLASS });
 }
 
 TEST_F(VendorOptsTest, requestVendorIDWithOption17) {
-    testRequestingOfVendorOptions({D6O_VENDOR_OPTS});
+    testRequestingOfVendorOptions({ D6O_VENDOR_OPTS });
 }
 
 TEST_F(VendorOptsTest, requestVendorIDWithOptions16And17) {
-    testRequestingOfVendorOptions({D6O_VENDOR_CLASS, D6O_VENDOR_OPTS});
+    testRequestingOfVendorOptions({ D6O_VENDOR_CLASS, D6O_VENDOR_OPTS });
 }
 
 TEST_F(VendorOptsTest, requestVendorIDWithOptions17And16) {
-    testRequestingOfVendorOptions({D6O_VENDOR_OPTS, D6O_VENDOR_CLASS});
+    testRequestingOfVendorOptions({ D6O_VENDOR_OPTS, D6O_VENDOR_CLASS });
 }
 
 // Checks if server is able to handle a relayed traffic from DOCSIS3.0 modems
@@ -953,369 +952,369 @@ TEST_F(VendorOptsTest, docsisVendorORO) {
 // This test checks if Option Request Option (ORO) in docsis (vendor-id=4491)
 // vendor options is parsed correctly and the requested options are actually assigned.
 TEST_F(VendorOptsTest, vendorOptionsOROOneOption) {
-    testVendorOptionsORO({VENDOR_ID_CABLE_LABS},
-                         {VENDOR_ID_CABLE_LABS},
-                         {DOCSIS3_V6_CONFIG_FILE});
+    testVendorOptionsORO({ VENDOR_ID_CABLE_LABS },
+                         { VENDOR_ID_CABLE_LABS },
+                         { DOCSIS3_V6_CONFIG_FILE });
 }
 
 // This test checks if Option Request Option (ORO) in docsis (vendor-id=4491)
 // vendor options is parsed correctly and the requested options are actually assigned.
 TEST_F(VendorOptsTest, vendorOptionsOROMultipleOptions) {
-    testVendorOptionsORO({VENDOR_ID_CABLE_LABS},
-                         {VENDOR_ID_CABLE_LABS},
-                         {DOCSIS3_V6_CONFIG_FILE, 12});
+    testVendorOptionsORO({ VENDOR_ID_CABLE_LABS },
+                         { VENDOR_ID_CABLE_LABS },
+                         { DOCSIS3_V6_CONFIG_FILE, 12 });
 }
 
 // This test checks if Option Request Option (ORO) in docsis (vendor-id=4491)
 // vendor options is parsed correctly and the requested options are actually assigned.
 TEST_F(VendorOptsTest, vendorOptionsOROOneOptionMultipleVendorsMatchOne) {
-    testVendorOptionsORO({VENDOR_ID_CABLE_LABS, 3561},
-                         {VENDOR_ID_CABLE_LABS},
-                         {DOCSIS3_V6_CONFIG_FILE});
+    testVendorOptionsORO({ VENDOR_ID_CABLE_LABS, 3561 },
+                         { VENDOR_ID_CABLE_LABS },
+                         { DOCSIS3_V6_CONFIG_FILE });
 }
 
 // This test checks if Option Request Option (ORO) in docsis (vendor-id=4491)
 // vendor options is parsed correctly and the requested options are actually assigned.
 TEST_F(VendorOptsTest, vendorOptionsOROMultipleOptionsMultipleVendorsMatchOne) {
-    testVendorOptionsORO({VENDOR_ID_CABLE_LABS, 3561},
-                         {VENDOR_ID_CABLE_LABS},
-                         {DOCSIS3_V6_CONFIG_FILE, 12});
+    testVendorOptionsORO({ VENDOR_ID_CABLE_LABS, 3561 },
+                         { VENDOR_ID_CABLE_LABS },
+                         { DOCSIS3_V6_CONFIG_FILE, 12 });
 }
 
 // This test checks if Option Request Option (ORO) in docsis (vendor-id=4491)
 // vendor options is parsed correctly and the requested options are actually assigned.
 TEST_F(VendorOptsTest, vendorOptionsOROOneOptionMultipleVendorsMatchAll) {
-    testVendorOptionsORO({VENDOR_ID_CABLE_LABS, 3561},
-                         {VENDOR_ID_CABLE_LABS, 3561},
-                         {DOCSIS3_V6_CONFIG_FILE});
+    testVendorOptionsORO({ VENDOR_ID_CABLE_LABS, 3561 },
+                         { VENDOR_ID_CABLE_LABS, 3561 },
+                         { DOCSIS3_V6_CONFIG_FILE });
 }
 
 // This test checks if Option Request Option (ORO) in docsis (vendor-id=4491)
 // vendor options is parsed correctly and the requested options are actually assigned.
 TEST_F(VendorOptsTest, vendorOptionsOROMultipleOptionsMultipleVendorsMatchAll) {
-    testVendorOptionsORO({VENDOR_ID_CABLE_LABS, 3561},
-                         {VENDOR_ID_CABLE_LABS, 3561},
-                         {DOCSIS3_V6_CONFIG_FILE, 12});
+    testVendorOptionsORO({ VENDOR_ID_CABLE_LABS, 3561 },
+                         { VENDOR_ID_CABLE_LABS, 3561 },
+                         { DOCSIS3_V6_CONFIG_FILE, 12 });
 }
 
 // Same as vendorOptionsORO except a different vendor ID than Cable Labs is
 // provided and vendor options are expected to not be present in the response.
 TEST_F(VendorOptsTest, vendorOptionsOROOneOptionDifferentVendorID) {
-    testVendorOptionsORO({VENDOR_ID_CABLE_LABS},
-                         {32768},
-                         {DOCSIS3_V6_CONFIG_FILE});
+    testVendorOptionsORO({ VENDOR_ID_CABLE_LABS },
+                         { 32768 },
+                         { DOCSIS3_V6_CONFIG_FILE });
 }
 
 // Same as vendorOptionsORO except a different vendor ID than Cable Labs is
 // provided and vendor options are expected to not be present in the response.
 TEST_F(VendorOptsTest, vendorOptionsOROMultipleOptionsDifferentVendorID) {
-    testVendorOptionsORO({VENDOR_ID_CABLE_LABS},
-                         {32768},
-                         {DOCSIS3_V6_CONFIG_FILE, 12});
+    testVendorOptionsORO({ VENDOR_ID_CABLE_LABS },
+                         { 32768 },
+                         { DOCSIS3_V6_CONFIG_FILE, 12 });
 }
 
 // Same as vendorOptionsORO except a different vendor ID than Cable Labs is
 // provided and vendor options are expected to not be present in the response.
 TEST_F(VendorOptsTest, vendorOptionsOROOneOptionDifferentVendorIDMultipleVendorsMatchNone) {
-    testVendorOptionsORO({VENDOR_ID_CABLE_LABS, 3561},
-                         {32768, 16384},
-                         {DOCSIS3_V6_CONFIG_FILE});
+    testVendorOptionsORO({ VENDOR_ID_CABLE_LABS, 3561 },
+                         { 32768, 16384 },
+                         { DOCSIS3_V6_CONFIG_FILE });
 }
 
 // Same as vendorOptionsORO except a different vendor ID than Cable Labs is
 // provided and vendor options are expected to not be present in the response.
 TEST_F(VendorOptsTest, vendorOptionsOROMultipleOptionDifferentVendorIDMultipleVendorsMatchNone) {
-    testVendorOptionsORO({VENDOR_ID_CABLE_LABS, 3561},
-                         {32768, 16384},
-                         {DOCSIS3_V6_CONFIG_FILE, 12});
+    testVendorOptionsORO({ VENDOR_ID_CABLE_LABS, 3561 },
+                         { 32768, 16384 },
+                         { DOCSIS3_V6_CONFIG_FILE, 12 });
 }
 
 // This test checks vendor options are parsed correctly and the persistent
 // options are actually assigned.
 TEST_F(VendorOptsTest, vendorPersistentOptionsOneOption) {
-    testVendorOptionsPersistent({VENDOR_ID_CABLE_LABS},
-                                {VENDOR_ID_CABLE_LABS},
-                                {DOCSIS3_V6_CONFIG_FILE},
+    testVendorOptionsPersistent({ VENDOR_ID_CABLE_LABS },
+                                { VENDOR_ID_CABLE_LABS },
+                                { DOCSIS3_V6_CONFIG_FILE },
                                 false);
 }
 
 // This test checks vendor options are parsed correctly and the persistent
 // options are actually assigned.
 TEST_F(VendorOptsTest, vendorPersistentOptionsMultipleOption) {
-    testVendorOptionsPersistent({VENDOR_ID_CABLE_LABS},
-                                {VENDOR_ID_CABLE_LABS},
-                                {DOCSIS3_V6_CONFIG_FILE, 12},
+    testVendorOptionsPersistent({ VENDOR_ID_CABLE_LABS },
+                                { VENDOR_ID_CABLE_LABS },
+                                { DOCSIS3_V6_CONFIG_FILE, 12 },
                                 false);
 }
 
 // This test checks vendor options are parsed correctly and the persistent
 // options are actually assigned.
 TEST_F(VendorOptsTest, vendorPersistentOptionsOneOptionMultipleVendorsMatchOne) {
-    testVendorOptionsPersistent({VENDOR_ID_CABLE_LABS, 3561},
-                                {VENDOR_ID_CABLE_LABS},
-                                {DOCSIS3_V6_CONFIG_FILE},
+    testVendorOptionsPersistent({ VENDOR_ID_CABLE_LABS, 3561 },
+                                { VENDOR_ID_CABLE_LABS },
+                                { DOCSIS3_V6_CONFIG_FILE },
                                 false);
 }
 
 // This test checks vendor options are parsed correctly and the persistent
 // options are actually assigned.
 TEST_F(VendorOptsTest, vendorPersistentOptionsMultipleOptionMultipleVendorsMatchOne) {
-    testVendorOptionsPersistent({VENDOR_ID_CABLE_LABS, 3561},
-                                {VENDOR_ID_CABLE_LABS},
-                                {DOCSIS3_V6_CONFIG_FILE, 12},
+    testVendorOptionsPersistent({ VENDOR_ID_CABLE_LABS, 3561 },
+                                { VENDOR_ID_CABLE_LABS },
+                                { DOCSIS3_V6_CONFIG_FILE, 12 },
                                 false);
 }
 
 // This test checks vendor options are parsed correctly and the persistent
 // options are actually assigned.
 TEST_F(VendorOptsTest, vendorPersistentOptionsOneOptionMultipleVendorsMatchAll) {
-    testVendorOptionsPersistent({VENDOR_ID_CABLE_LABS, 3561},
-                                {VENDOR_ID_CABLE_LABS, 3561},
-                                {DOCSIS3_V6_CONFIG_FILE},
+    testVendorOptionsPersistent({ VENDOR_ID_CABLE_LABS, 3561 },
+                                { VENDOR_ID_CABLE_LABS, 3561 },
+                                { DOCSIS3_V6_CONFIG_FILE },
                                 false);
 }
 
 // This test checks vendor options are parsed correctly and the persistent
 // options are actually assigned.
 TEST_F(VendorOptsTest, vendorPersistentOptionsMultipleOptionMultipleVendorsMatchAll) {
-    testVendorOptionsPersistent({VENDOR_ID_CABLE_LABS, 3561},
-                                {VENDOR_ID_CABLE_LABS, 3561},
-                                {DOCSIS3_V6_CONFIG_FILE, 12},
+    testVendorOptionsPersistent({ VENDOR_ID_CABLE_LABS, 3561 },
+                                { VENDOR_ID_CABLE_LABS, 3561 },
+                                { DOCSIS3_V6_CONFIG_FILE, 12 },
                                 false);
 }
 
 // This test checks vendor options are parsed correctly and the persistent
 // options are actually assigned.
 TEST_F(VendorOptsTest, vendorPersistentOptionsOneOptionAddVendorOption) {
-    testVendorOptionsPersistent({VENDOR_ID_CABLE_LABS},
-                                {VENDOR_ID_CABLE_LABS},
-                                {DOCSIS3_V6_CONFIG_FILE},
+    testVendorOptionsPersistent({ VENDOR_ID_CABLE_LABS },
+                                { VENDOR_ID_CABLE_LABS },
+                                { DOCSIS3_V6_CONFIG_FILE },
                                 true);
 }
 
 // This test checks vendor options are parsed correctly and the persistent
 // options are actually assigned.
 TEST_F(VendorOptsTest, vendorPersistentOptionsMultipleOptionAddVendorOption) {
-    testVendorOptionsPersistent({VENDOR_ID_CABLE_LABS},
-                                {VENDOR_ID_CABLE_LABS},
-                                {DOCSIS3_V6_CONFIG_FILE, 12},
+    testVendorOptionsPersistent({ VENDOR_ID_CABLE_LABS },
+                                { VENDOR_ID_CABLE_LABS },
+                                { DOCSIS3_V6_CONFIG_FILE, 12 },
                                 true);
 }
 
 // This test checks vendor options are parsed correctly and the persistent
 // options are actually assigned.
 TEST_F(VendorOptsTest, vendorPersistentOptionsOneOptionMultipleVendorsMatchOneAddVendorOption) {
-    testVendorOptionsPersistent({VENDOR_ID_CABLE_LABS, 3561},
-                                {VENDOR_ID_CABLE_LABS},
-                                {DOCSIS3_V6_CONFIG_FILE},
+    testVendorOptionsPersistent({ VENDOR_ID_CABLE_LABS, 3561 },
+                                { VENDOR_ID_CABLE_LABS },
+                                { DOCSIS3_V6_CONFIG_FILE },
                                 true);
 }
 
 // This test checks vendor options are parsed correctly and the persistent
 // options are actually assigned.
 TEST_F(VendorOptsTest, vendorPersistentOptionsMultipleOptionMultipleVendorsMatchOneAddVendorOption) {
-    testVendorOptionsPersistent({VENDOR_ID_CABLE_LABS, 3561},
-                                {VENDOR_ID_CABLE_LABS},
-                                {DOCSIS3_V6_CONFIG_FILE, 12},
+    testVendorOptionsPersistent({ VENDOR_ID_CABLE_LABS, 3561 },
+                                { VENDOR_ID_CABLE_LABS },
+                                { DOCSIS3_V6_CONFIG_FILE, 12 },
                                 true);
 }
 
 // This test checks vendor options are parsed correctly and the persistent
 // options are actually assigned.
 TEST_F(VendorOptsTest, vendorPersistentOptionsOneOptionMultipleVendorsMatchAllAddVendorOption) {
-    testVendorOptionsPersistent({VENDOR_ID_CABLE_LABS, 3561},
-                                {VENDOR_ID_CABLE_LABS, 3561},
-                                {DOCSIS3_V6_CONFIG_FILE},
+    testVendorOptionsPersistent({ VENDOR_ID_CABLE_LABS, 3561 },
+                                { VENDOR_ID_CABLE_LABS, 3561 },
+                                { DOCSIS3_V6_CONFIG_FILE },
                                 true);
 }
 
 // This test checks vendor options are parsed correctly and the persistent
 // options are actually assigned.
 TEST_F(VendorOptsTest, vendorPersistentOptionsMultipleOptionMultipleVendorsMatchAllAddVendorOption) {
-    testVendorOptionsPersistent({VENDOR_ID_CABLE_LABS, 3561},
-                                {VENDOR_ID_CABLE_LABS, 3561},
-                                {DOCSIS3_V6_CONFIG_FILE, 12},
+    testVendorOptionsPersistent({ VENDOR_ID_CABLE_LABS, 3561 },
+                                { VENDOR_ID_CABLE_LABS, 3561 },
+                                { DOCSIS3_V6_CONFIG_FILE, 12 },
                                 true);
 }
 
 // This test checks if Option Request Option (ORO) in docsis (vendor-id=4491)
 // vendor options is parsed correctly and the requested options are actually assigned.
 TEST_F(VendorOptsTest, vendorOptionsOROAndPersistentOneOption) {
-    testVendorOptionsOROAndPersistent({VENDOR_ID_CABLE_LABS},
-                                      {VENDOR_ID_CABLE_LABS},
-                                      {DOCSIS3_V6_CONFIG_FILE},
-                                      {DOCSIS3_V6_CONFIG_FILE});
+    testVendorOptionsOROAndPersistent({ VENDOR_ID_CABLE_LABS },
+                                      { VENDOR_ID_CABLE_LABS },
+                                      { DOCSIS3_V6_CONFIG_FILE },
+                                      { DOCSIS3_V6_CONFIG_FILE });
 }
 
 // This test checks if Option Request Option (ORO) in docsis (vendor-id=4491)
 // vendor options is parsed correctly and the requested options are actually assigned.
 TEST_F(VendorOptsTest, vendorOptionsOROAndPersistentMultipleOptions) {
-    testVendorOptionsOROAndPersistent({VENDOR_ID_CABLE_LABS},
-                                      {VENDOR_ID_CABLE_LABS},
-                                      {DOCSIS3_V6_CONFIG_FILE},
-                                      {DOCSIS3_V6_CONFIG_FILE, 12});
+    testVendorOptionsOROAndPersistent({ VENDOR_ID_CABLE_LABS },
+                                      { VENDOR_ID_CABLE_LABS },
+                                      { DOCSIS3_V6_CONFIG_FILE },
+                                      { DOCSIS3_V6_CONFIG_FILE, 12 });
 }
 
 // This test checks if Option Request Option (ORO) in docsis (vendor-id=4491)
 // vendor options is parsed correctly and the requested options are actually assigned.
 TEST_F(VendorOptsTest, vendorOptionsOROAndPersistentOneOptionMultipleVendorsMatchOne) {
-    testVendorOptionsOROAndPersistent({VENDOR_ID_CABLE_LABS, 3561},
-                                      {VENDOR_ID_CABLE_LABS},
-                                      {DOCSIS3_V6_CONFIG_FILE},
-                                      {DOCSIS3_V6_CONFIG_FILE});
+    testVendorOptionsOROAndPersistent({ VENDOR_ID_CABLE_LABS, 3561 },
+                                      { VENDOR_ID_CABLE_LABS },
+                                      { DOCSIS3_V6_CONFIG_FILE },
+                                      { DOCSIS3_V6_CONFIG_FILE });
 }
 
 // This test checks if Option Request Option (ORO) in docsis (vendor-id=4491)
 // vendor options is parsed correctly and the requested options are actually assigned.
 TEST_F(VendorOptsTest, vendorOptionsOROAndPersistentMultipleOptionsMultipleVendorsMatchOne) {
-    testVendorOptionsOROAndPersistent({VENDOR_ID_CABLE_LABS, 3561},
-                                      {VENDOR_ID_CABLE_LABS},
-                                      {DOCSIS3_V6_CONFIG_FILE},
-                                      {DOCSIS3_V6_CONFIG_FILE, 12});
+    testVendorOptionsOROAndPersistent({ VENDOR_ID_CABLE_LABS, 3561 },
+                                      { VENDOR_ID_CABLE_LABS },
+                                      { DOCSIS3_V6_CONFIG_FILE },
+                                      { DOCSIS3_V6_CONFIG_FILE, 12 });
 }
 
 // This test checks if Option Request Option (ORO) in docsis (vendor-id=4491)
 // vendor options is parsed correctly and the requested options are actually assigned.
 TEST_F(VendorOptsTest, vendorOptionsOROAndPersistentOneOptionMultipleVendorsMatchAll) {
-    testVendorOptionsOROAndPersistent({VENDOR_ID_CABLE_LABS, 3561},
-                                      {VENDOR_ID_CABLE_LABS, 3561},
-                                      {DOCSIS3_V6_CONFIG_FILE},
-                                      {DOCSIS3_V6_CONFIG_FILE});
+    testVendorOptionsOROAndPersistent({ VENDOR_ID_CABLE_LABS, 3561 },
+                                      { VENDOR_ID_CABLE_LABS, 3561 },
+                                      { DOCSIS3_V6_CONFIG_FILE },
+                                      { DOCSIS3_V6_CONFIG_FILE });
 }
 
 // This test checks if Option Request Option (ORO) in docsis (vendor-id=4491)
 // vendor options is parsed correctly and the requested options are actually assigned.
 TEST_F(VendorOptsTest, vendorOptionsOROAndPersistentMultipleOptionsMultipleVendorsMatchAll) {
-    testVendorOptionsOROAndPersistent({VENDOR_ID_CABLE_LABS, 3561},
-                                      {VENDOR_ID_CABLE_LABS, 3561},
-                                      {DOCSIS3_V6_CONFIG_FILE},
-                                      {DOCSIS3_V6_CONFIG_FILE, 12});
+    testVendorOptionsOROAndPersistent({ VENDOR_ID_CABLE_LABS, 3561 },
+                                      { VENDOR_ID_CABLE_LABS, 3561 },
+                                      { DOCSIS3_V6_CONFIG_FILE },
+                                      { DOCSIS3_V6_CONFIG_FILE, 12 });
 }
 
 // Same as vendorOptionsORO except a different vendor ID than Cable Labs is
 // provided and vendor options are expected to not be present in the response.
 TEST_F(VendorOptsTest, vendorOptionsOROAndPersistentOneOptionDifferentVendorID) {
-    testVendorOptionsOROAndPersistent({VENDOR_ID_CABLE_LABS},
-                                      {32768},
-                                      {DOCSIS3_V6_CONFIG_FILE},
-                                      {DOCSIS3_V6_CONFIG_FILE});
+    testVendorOptionsOROAndPersistent({ VENDOR_ID_CABLE_LABS },
+                                      { 32768 },
+                                      { DOCSIS3_V6_CONFIG_FILE },
+                                      { DOCSIS3_V6_CONFIG_FILE });
 }
 
 // Same as vendorOptionsORO except a different vendor ID than Cable Labs is
 // provided and vendor options are expected to not be present in the response.
 TEST_F(VendorOptsTest, vendorOptionsOROAndPersistentMultipleOptionsDifferentVendorID) {
-    testVendorOptionsOROAndPersistent({VENDOR_ID_CABLE_LABS},
-                                      {32768},
-                                      {DOCSIS3_V6_CONFIG_FILE},
-                                      {DOCSIS3_V6_CONFIG_FILE, 12});
+    testVendorOptionsOROAndPersistent({ VENDOR_ID_CABLE_LABS },
+                                      { 32768 },
+                                      { DOCSIS3_V6_CONFIG_FILE },
+                                      { DOCSIS3_V6_CONFIG_FILE, 12 });
 }
 
 // Same as vendorOptionsORO except a different vendor ID than Cable Labs is
 // provided and vendor options are expected to not be present in the response.
 TEST_F(VendorOptsTest, vendorOptionsOROAndPersistentOneOptionDifferentVendorIDMultipleVendorsMatchNone) {
-    testVendorOptionsOROAndPersistent({VENDOR_ID_CABLE_LABS, 3561},
-                                      {32768, 16384},
-                                      {DOCSIS3_V6_CONFIG_FILE},
-                                      {DOCSIS3_V6_CONFIG_FILE});
+    testVendorOptionsOROAndPersistent({ VENDOR_ID_CABLE_LABS, 3561 },
+                                      { 32768, 16384 },
+                                      { DOCSIS3_V6_CONFIG_FILE },
+                                      { DOCSIS3_V6_CONFIG_FILE });
 }
 
 // Same as vendorOptionsORO except a different vendor ID than Cable Labs is
 // provided and vendor options are expected to not be present in the response.
 TEST_F(VendorOptsTest, vendorOptionsOROAndPersistentMultipleOptionDifferentVendorIDMultipleVendorsMatchNone) {
-    testVendorOptionsOROAndPersistent({VENDOR_ID_CABLE_LABS, 3561},
-                                      {32768, 16384},
-                                      {DOCSIS3_V6_CONFIG_FILE},
-                                      {DOCSIS3_V6_CONFIG_FILE, 12});
+    testVendorOptionsOROAndPersistent({ VENDOR_ID_CABLE_LABS, 3561 },
+                                      { 32768, 16384 },
+                                      { DOCSIS3_V6_CONFIG_FILE },
+                                      { DOCSIS3_V6_CONFIG_FILE, 12 });
 }
 
 // This test checks if Option Request Option (ORO) in docsis (vendor-id=4491)
 // vendor options is parsed correctly and the requested options are actually assigned.
 TEST_F(VendorOptsTest, vendorOptionsOROAndPersistentOneOptionNoneRequested) {
-    testVendorOptionsOROAndPersistent({VENDOR_ID_CABLE_LABS},
-                                      {VENDOR_ID_CABLE_LABS},
+    testVendorOptionsOROAndPersistent({ VENDOR_ID_CABLE_LABS },
+                                      { VENDOR_ID_CABLE_LABS },
                                       {},
-                                      {DOCSIS3_V6_CONFIG_FILE});
+                                      { DOCSIS3_V6_CONFIG_FILE });
 }
 
 // This test checks if Option Request Option (ORO) in docsis (vendor-id=4491)
 // vendor options is parsed correctly and the requested options are actually assigned.
 TEST_F(VendorOptsTest, vendorOptionsOROAndPersistentMultipleOptionsNoneRequested) {
-    testVendorOptionsOROAndPersistent({VENDOR_ID_CABLE_LABS},
-                                      {VENDOR_ID_CABLE_LABS},
+    testVendorOptionsOROAndPersistent({ VENDOR_ID_CABLE_LABS },
+                                      { VENDOR_ID_CABLE_LABS },
                                       {},
-                                      {DOCSIS3_V6_CONFIG_FILE, 12});
+                                      { DOCSIS3_V6_CONFIG_FILE, 12 });
 }
 
 // This test checks if Option Request Option (ORO) in docsis (vendor-id=4491)
 // vendor options is parsed correctly and the requested options are actually assigned.
 TEST_F(VendorOptsTest, vendorOptionsOROAndPersistentOneOptionMultipleVendorsMatchOneNoneRequested) {
-    testVendorOptionsOROAndPersistent({VENDOR_ID_CABLE_LABS, 3561},
-                                      {VENDOR_ID_CABLE_LABS},
+    testVendorOptionsOROAndPersistent({ VENDOR_ID_CABLE_LABS, 3561 },
+                                      { VENDOR_ID_CABLE_LABS },
                                       {},
-                                      {DOCSIS3_V6_CONFIG_FILE});
+                                      { DOCSIS3_V6_CONFIG_FILE });
 }
 
 // This test checks if Option Request Option (ORO) in docsis (vendor-id=4491)
 // vendor options is parsed correctly and the requested options are actually assigned.
 TEST_F(VendorOptsTest, vendorOptionsOROAndPersistentMultipleOptionsMultipleVendorsMatchOneNoneRequested) {
-    testVendorOptionsOROAndPersistent({VENDOR_ID_CABLE_LABS, 3561},
-                                      {VENDOR_ID_CABLE_LABS},
+    testVendorOptionsOROAndPersistent({ VENDOR_ID_CABLE_LABS, 3561 },
+                                      { VENDOR_ID_CABLE_LABS },
                                       {},
-                                      {DOCSIS3_V6_CONFIG_FILE, 12});
+                                      { DOCSIS3_V6_CONFIG_FILE, 12 });
 }
 
 // This test checks if Option Request Option (ORO) in docsis (vendor-id=4491)
 // vendor options is parsed correctly and the requested options are actually assigned.
 TEST_F(VendorOptsTest, vendorOptionsOROAndPersistentOneOptionMultipleVendorsMatchAllNoneRequested) {
-    testVendorOptionsOROAndPersistent({VENDOR_ID_CABLE_LABS, 3561},
-                                      {VENDOR_ID_CABLE_LABS, 3561},
+    testVendorOptionsOROAndPersistent({ VENDOR_ID_CABLE_LABS, 3561 },
+                                      { VENDOR_ID_CABLE_LABS, 3561 },
                                       {},
-                                      {DOCSIS3_V6_CONFIG_FILE});
+                                      { DOCSIS3_V6_CONFIG_FILE });
 }
 
 // This test checks if Option Request Option (ORO) in docsis (vendor-id=4491)
 // vendor options is parsed correctly and the requested options are actually assigned.
 TEST_F(VendorOptsTest, vendorOptionsOROAndPersistentMultipleOptionsMultipleVendorsMatchAllNoneRequested) {
-    testVendorOptionsOROAndPersistent({VENDOR_ID_CABLE_LABS, 3561},
-                                      {VENDOR_ID_CABLE_LABS, 3561},
+    testVendorOptionsOROAndPersistent({ VENDOR_ID_CABLE_LABS, 3561 },
+                                      { VENDOR_ID_CABLE_LABS, 3561 },
                                       {},
-                                      {DOCSIS3_V6_CONFIG_FILE, 12});
+                                      { DOCSIS3_V6_CONFIG_FILE, 12 });
 }
 
 // Same as vendorOptionsORO except a different vendor ID than Cable Labs is
 // provided and vendor options are expected to not be present in the response.
 TEST_F(VendorOptsTest, vendorOptionsOROAndPersistentOneOptionDifferentVendorIDNoneRequested) {
-    testVendorOptionsOROAndPersistent({VENDOR_ID_CABLE_LABS},
-                                      {32768},
+    testVendorOptionsOROAndPersistent({ VENDOR_ID_CABLE_LABS },
+                                      { 32768 },
                                       {},
-                                      {DOCSIS3_V6_CONFIG_FILE});
+                                      { DOCSIS3_V6_CONFIG_FILE });
 }
 
 // Same as vendorOptionsORO except a different vendor ID than Cable Labs is
 // provided and vendor options are expected to not be present in the response.
 TEST_F(VendorOptsTest, vendorOptionsOROAndPersistentMultipleOptionsDifferentVendorIDNoneRequested) {
-    testVendorOptionsOROAndPersistent({VENDOR_ID_CABLE_LABS},
-                                      {32768},
+    testVendorOptionsOROAndPersistent({ VENDOR_ID_CABLE_LABS },
+                                      { 32768 },
                                       {},
-                                      {DOCSIS3_V6_CONFIG_FILE, 12});
+                                      { DOCSIS3_V6_CONFIG_FILE, 12 });
 }
 
 // Same as vendorOptionsORO except a different vendor ID than Cable Labs is
 // provided and vendor options are expected to not be present in the response.
 TEST_F(VendorOptsTest, vendorOptionsOROAndPersistentOneOptionDifferentVendorIDMultipleVendorsMatchNoneNoneRequested) {
-    testVendorOptionsOROAndPersistent({VENDOR_ID_CABLE_LABS, 3561},
-                                      {32768, 16384},
+    testVendorOptionsOROAndPersistent({ VENDOR_ID_CABLE_LABS, 3561 },
+                                      { 32768, 16384},
                                       {},
-                                      {DOCSIS3_V6_CONFIG_FILE});
+                                      { DOCSIS3_V6_CONFIG_FILE });
 }
 
 // Same as vendorOptionsORO except a different vendor ID than Cable Labs is
 // provided and vendor options are expected to not be present in the response.
 TEST_F(VendorOptsTest, vendorOptionsOROAndPersistentMultipleOptionDifferentVendorIDMultipleVendorsMatchNoneNoneRequested) {
-    testVendorOptionsOROAndPersistent({VENDOR_ID_CABLE_LABS, 3561},
-                                      {32768, 16384},
+    testVendorOptionsOROAndPersistent({ VENDOR_ID_CABLE_LABS, 3561 },
+                                      { 32768, 16384},
                                       {},
-                                      {DOCSIS3_V6_CONFIG_FILE, 12});
+                                      { DOCSIS3_V6_CONFIG_FILE, 12 });
 }
 
 // Test checks whether it is possible to use option definitions defined in