flags.is_unknown = 1;
flags.array = 0;
flags.has_value = 0;
- flags.length = 0; /* not fixed length */
+ if (type != FR_TYPE_VENDOR) {
+ flags.length = 0; /* not fixed length */
+ } else {
+ flags.type_size = da->flags.type_size;
+ flags.length = da->flags.length;
+ }
flags.extra = 0;
/*
encode-pair Cisco-AVPair = "foo", Cisco-AVPair = "bar"
match 1a 0b 00 00 00 09 01 05 66 6f 6f 1a 0b 00 00 00 09 01 05 62 61 72
+#
+# Unknown attributes with TLVs
+#
+encode-pair 26.6809.1 = 0xabcdef
+match 1a 0b 00 00 1a 99 01 05 ab cd ef
+
+decode-pair -
+match Vendor-Specific.6809.1 = 0xabcdef
+
+encode-pair 26.6809.1.2 = 0xabcdef
+match 1a 0d 00 00 1a 99 01 07 02 05 ab cd ef
+
+#
+# @todo - This should be Vendor-Specific.6809.1.2 = 0xabcdef
+#
+decode-pair -
+match Vendor-Specific.6809.1 = 0x0205abcdef
+
+encode-pair 26.6809.1.2.3 = 0xabcdef
+match 1a 0f 00 00 1a 99 01 09 02 07 03 05 ab cd ef
+
+#
+# @todo - This should be Vendor-Specific.6809.1.2.3 = 0xabcdef
+#
+decode-pair -
+match Vendor-Specific.6809.1 = 0x02070305abcdef
+
count
-match 52
+match 64