proto-dictionary radius
fuzzer-out radius
+migrate pair_legacy_nested = true
+
#
# Time delta in milliseconds.
#
pair Unit-TLV.Delta-MSec = 5
-match Unit-TLV.Delta-MSec = 5
+match Unit-TLV = { Delta-MSec = 5 }
encode-pair -
match fe 08 02 06 00 00 00 05
match Unit-TLV = { Delta-MSec = 5 }
pair Unit-TLV.Delta-Sec = 10
-match Unit-TLV.Delta-Sec = 10
+match Unit-TLV = { Delta-Sec = 10 }
encode-pair -
match fe 08 03 06 00 00 00 0a
match Unit-TLV = { Delta-MSec-int32 = -32768 }
pair Unit-TLV.Delta-MSec-int32 = -32768
-match Unit-TLV.Delta-MSec-int32 = -32768
+match Unit-TLV = { Delta-MSec-int32 = -32768 }
encode-pair Unit-TLV.Delta-MSec-int16 = -32768
match fe 06 06 04 80 00
match Unit-TLV = { Delta-MSec-int16 = -32768 }
pair Unit-TLV.Delta-MSec-int16 = -32768
-match Unit-TLV.Delta-MSec-int16 = -32768
+match Unit-TLV = { Delta-MSec-int16 = -32768 }
# Regression test for broken signed promotion
encode-pair Unit-TLV.Delta-MSec-int32 = -32768
match Unit-TLV = { Delta-MSec-int32 = -32768 }
pair Unit-TLV.Delta-MSec-int32 = -32768
-match Unit-TLV.Delta-MSec-int32 = -32768
+match Unit-TLV = { Delta-MSec-int32 = -32768 }
#
# Min/Max values & overflows
# Internal format is int64_t
pair Unit-TLV.Delta-MSec-uint16 = 9223372036853
-match Unit-TLV.Delta-MSec-uint16 = 9223372036853
+match Unit-TLV = { Delta-MSec-uint16 = 9223372036853 }
pair Unit-TLV.Delta-MSec-uint32 = 9223372036853
-match Unit-TLV.Delta-MSec-uint32 = 9223372036853
+match Unit-TLV = { Delta-MSec-uint32 = 9223372036853 }
# therefore, the encode should limit to the data type.
encode-pair Unit-TLV.Delta-MSec-uint16 = 9223372036853
match Unit-TLV = { Delta-MSec-int32 = 2147483647 }
count
-match 65
+match 66
proto-dictionary radius
fuzzer-out radius
+migrate pair_legacy_nested = true
+
#
# And using the dictionaries
#
match f6 0d 1a 00 00 00 2c 50 01 00 00 00 01 f6 0d 1a 00 00 00 2c 50 01 00 00 00 02
pair Extended-Attribute-1.Unit-Ext-241-Integer = 6809
-match Extended-Attribute-1.Unit-Ext-241-Integer = 6809
+match Extended-Attribute-1 = { Unit-Ext-241-Integer = 6809 }
encode-pair Extended-Attribute-1.Unit-Ext-241-Integer = 6809
match f1 07 f1 00 00 1a 99
# Can we parse RFC 3339 dates correctly?
pair Unit-TLV.Milliseconds = "2019-08-21T07:40:31.123-04:00"
-match Unit-TLV.Milliseconds = "2019-08-21T03:40:31.123Z"
+match Unit-TLV = { Milliseconds = "2019-08-21T03:40:31.123Z" }
count
-match 35
+match 36