Structs in 3.1
Alan DeKok
aland at deployingradius.com
Mon May 30 20:25:22 CEST 2016
Version 3.1 now supports native structures;
ATTRIBUTE My-Struct 1 struct
ATTRIBUTE My-Struct-byte 1.1 byte
ATTRIBUTE My-Struct-short 1.2 short
ATTRIBUTE My-Struct-octets 1.3 octets[6]
i.e. they are defined similarly to TLV, but they're just data.
The idea is to allow decoding /encoding of simple structures by the server core. This means that there is less manual packing / unpacking of data. That should make it easier to write policies based on complex structures.
The caveat (for now) is that all of the struct elements have to be fixed width. So if a struct ends with a variable-length string, that's not supported. But it's on the list of new features to add.
Alan DeKok.
More information about the Freeradius-Devel
mailing list