]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
decode attributes for unknown vendors
authorAlan T. DeKok <aland@freeradius.org>
Fri, 8 May 2020 14:09:33 +0000 (10:09 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Fri, 8 May 2020 14:09:33 +0000 (10:09 -0400)
the code was there, but no test case

src/tests/unit/protocols/radius/vendor.txt

index 5f20277813fcdc95f4565ae712f276f5cbadfd98..a75f96c43eeb579248aaa1f0d71f8b8c03f2db11 100644 (file)
@@ -59,5 +59,11 @@ match ERX-LI-Action = off
 #decode-pair -
 #data ERX-LI-Action = off
 
+#
+#  Unknown vendors get decoded as TLVs with type=1,length=1
+#
+decode-pair 1a12000080000105abcdef02076161616161
+match Attr-26.32768.1 = 0xabcdef, Attr-26.32768.2 = 0x6161616161
+
 count
 match 35