]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
tests for flat / nested VSAs
authorAlan T. DeKok <aland@freeradius.org>
Sat, 20 Aug 2022 13:02:42 +0000 (09:02 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Mon, 22 Aug 2022 00:34:07 +0000 (20:34 -0400)
src/tests/unit/protocols/radius/wimax.txt

index 135b92c43030dd234461d6b78f60f9849505577d..34a785126d5ba5d75e34930e62694f5bbf98dded 100644 (file)
@@ -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