From: Alan T. DeKok Date: Sat, 20 Aug 2022 13:02:42 +0000 (-0400) Subject: tests for flat / nested VSAs X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bb6331579a2dbfc56182373e1391f92a26839608;p=thirdparty%2Ffreeradius-server.git tests for flat / nested VSAs --- diff --git a/src/tests/unit/protocols/radius/wimax.txt b/src/tests/unit/protocols/radius/wimax.txt index 135b92c4303..34a785126d5 100644 --- a/src/tests/unit/protocols/radius/wimax.txt +++ b/src/tests/unit/protocols/radius/wimax.txt @@ -272,5 +272,33 @@ match 1a 14 00 00 14 cb 01 0e 00 03 0b 04 09 67 61 72 62 61 67 65 decode-pair - match Vendor-Specific.Telrad.TSDF-Table = { TSDF-Parameters = { Reference-QOS-Profile-Name = "garbage" } } +encode-pair Vendor-Specific.WiMAX.Capability = { Release = "1.0" } +match 1a 0e 00 00 60 b5 01 08 00 01 05 31 2e 30 + +decode-pair - +match Vendor-Specific.WiMAX.Capability = { Release = "1.0" } + +encode-pair Vendor-Specific = { WiMAX = { Capability = { Release = "1.0" } } } +match 1a 0e 00 00 60 b5 01 08 00 01 05 31 2e 30 + +decode-pair - +match Vendor-Specific.WiMAX.Capability = { Release = "1.0" } + +# +# two VSAs in "flat" form, create two VSAs. +# +encode-pair Vendor-Specific.WiMAX.Capability = { Release = "1.0" }, Vendor-Specific.WiMAX.Capability = { Accounting-Capabilities = No-Accounting } +match 1a 0e 00 00 60 b5 01 08 00 01 05 31 2e 30 1a 0c 00 00 60 b5 01 06 00 02 03 00 + +# +# Two VSAs in "nested" form create one VSA. +# +encode-pair Vendor-Specific.WiMAX.Capability = { Release = "1.0", Accounting-Capabilities = No-Accounting } +match 1a 11 00 00 60 b5 01 0b 00 01 05 31 2e 30 02 03 00 + +decode-pair - +match Vendor-Specific.WiMAX.Capability = { Release = "1.0", Accounting-Capabilities = No-Accounting } + + count -match 127 +match 141