From: Alan T. DeKok Date: Wed, 6 Sep 2023 18:05:09 +0000 (-0400) Subject: note that giving flat lists results in us creating nested ones X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f84126c7baf601461c8658747a1b399269b73ec2;p=thirdparty%2Ffreeradius-server.git note that giving flat lists results in us creating nested ones --- diff --git a/src/tests/unit/protocols/dhcpv4/vendor.txt b/src/tests/unit/protocols/dhcpv4/vendor.txt index b2f89964f3c..eb0bc049281 100644 --- a/src/tests/unit/protocols/dhcpv4/vendor.txt +++ b/src/tests/unit/protocols/dhcpv4/vendor.txt @@ -5,6 +5,14 @@ proto dhcpv4 proto-dictionary dhcpv4 fuzzer-out dhcpv4 +migrate pair_legacy_nested=true + +# +# When the caller gives us flat lists, we create nested ones. +# +pair V-I-Vendor-Specific.Cisco.Indirect-Image-Filename = "aa.txt", V-I-Vendor-Specific.Cisco.Indirect-Image-Filename = "bb.txt" +match V-I-Vendor-Specific = { Cisco = { Indirect-Image-Filename = "aa.txt", Indirect-Image-Filename = "bb.txt" } } + encode-pair V-I-Vendor-Specific.Cisco.Indirect-Image-Filename = "aa.txt" match 7d 0d 00 00 00 09 08 05 06 61 61 2e 74 78 74 @@ -30,4 +38,4 @@ decode-pair 7d 0d 00 00 00 09 09 05 06 61 61 2e 74 78 74 match V-I-Vendor-Specific = { raw.Cisco = 0x09050661612e747874 } count -match 17 +match 20