RADIUS_T
Provides expressions to retrieve radius header information and radius
Header and AVPs (attribute value pairs) from radius requests and responses.
Note:The radius implementation is RFC 2865 and 2866 compliant.
This topic lists the expressions that are provided by this class.
IS_CLIENT
Returns true if this is a radius client connection.
Returns: bool_at
IS_SERVER
Returns true if this is a radius server connection.
Returns: bool_at
NEW_ACCESSREJECT
Creates Radius Access Reject message (Header only) based on Request header.
Returns: text_t
NEW_ANSWER(uint code)
Creates Radius message (Header only) based on Request header.
Parameters:
code -
Radius Message code
Returns: text_t
NEW_AVP_INTEGER32(uint avpcode, num_atavpvalue)
Creates new AVP based on given avp code and given Integer32 value.
Parameters:
avpcode -
AVP code
avpvalue -
AVP value
Returns: text_t
NEW_AVP_INTEGER64(uint avpcode, ip_address_atavpvalue)
Creates new AVP based on given avp code and given Interger64 value.
Parameters:
avpcode -
AVP code
avpvalue -
AVP value
Returns: text_t
NEW_AVP_INTEGER64(uint avpcode, num_atavpvalue)
Creates new AVP based on given avp code and given Interger64 value.
Parameters:
avpcode -
AVP code
avpvalue -
AVP value
Returns: text_t
NEW_AVP_INTEGER64(uint avpcode, time_atavpvalue)
Creates new AVP based on given avp code and given Interger64 value.
Parameters:
avpcode -
AVP code
avpvalue -
AVP value
Returns: text_t
NEW_AVP_INTEGER64(uint avpcode, unsigned_long_atavpvalue)
Creates new AVP based on given avp code and given Interger64 value.
Parameters:
avpcode -
AVP code
avpvalue -
AVP value
Returns: text_t
NEW_AVP_IPADDRESS(uint avpcode, ip_address_atavpvalue)
Creates new AVP based on given avp code and given IP address value.
Example: RADIUS.NEW_AVP_IPADDRESS(8, 1.1.1.1)
Parameters:
avpcode -
AVP code
avpvalue -
AVP value as octet string
Returns: text_t
NEW_AVP_IPV6ADDRESS(uint avpcode, ipv6_address_atavpvalue)
Creates new AVP based on given avp code and given IPv6 address value.
Example: RADIUS.NEW_AVP_IPV6ADDRESS(95, 127:1:1::1)
Parameters:
avpcode -
AVP code
avpvalue -
AVP value as octet string
Returns: text_t
NEW_AVP_IPV6SUBNET(uint avpcode, ipv6_subnet_ats)
Creates new AVP based on given avp code and given IPv6 Subnet value.
Example: RADIUS.NEW_AVP_IPV6SUBNET(97, 127::1/64)
Parameters:
avpcode -
AVP code
s -
IPv6 Subnet
Returns: text_t
NEW_AVP(uint avpcode, text_tavpvalue)
Creates new AVP based on given avp code and given value.
Example: RADIUS.NEW_AVP(1, "Hemant")
Example: RADIUS.NEW_AVP(97, RADIUS.REQ.AVP(97).VALUE(0))
Parameters:
avpcode -
AVP code
avpvalue -
AVP value as octet string
Returns: text_t
NEW_AVP_TIME(uint avpcode, time_att)
Creates new AVP based on given avp code and given time value.
Example: RADIUS.NEW_AVP(
, GMT May 10h 0m)
<b>Parameters</b>:
avpcode -
AVP code
t -
Time
<b>Returns: </b>[text_t](text_t.md)
<b>NEW_AVP_UNSIGNED32</b>(uint avpcode, uint avpvalue)
Creates new AVP based on given avp code and given Unsigned32 value.
<b>Parameters</b>:
avpcode -
AVP code
avpvalue -
AVP value
<b>Returns: </b>[text_t](text_t.md)
<b>NEW_AVP_UNSIGNED64</b>(uint avpcode, [ip_address_at](ip_address_at.md)avpvalue)
Creates new AVP based on given avp code and given unsigned64 value.
<b>Parameters</b>:
avpcode -
AVP code
avpvalue -
AVP value
<b>Returns: </b>[text_t](text_t.md)
<b>NEW_AVP_UNSIGNED64</b>(uint avpcode, [num_at](num_at.md)avpvalue)
Creates new AVP based on given avp code and given unsigned64 value.
<b>Parameters</b>:
avpcode -
AVP code
avpvalue -
AVP value
<b>Returns: </b>[text_t](text_t.md)
<b>NEW_AVP_UNSIGNED64</b>(uint avpcode, [time_at](time_at.md)avpvalue)
Creates new AVP based on given avp code and given unsigned64 value.
<b>Parameters</b>:
avpcode -
AVP code
avpvalue -
AVP value
<b>Returns: </b>[text_t](text_t.md)
<b>NEW_AVP_UNSIGNED64</b>(uint avpcode, [unsigned_long_at](unsigned_long_at.md)avpvalue)
Creates new AVP based on given avp code and given unsigned64 value.
<b>Parameters</b>:
avpcode -
AVP code
avpvalue -
AVP value
<b>Returns: </b>[text_t](text_t.md)
<b>NEW_VENDOR_SPEC_AVP</b>(uint vendorid, [text_t](text_t.md)avpvalue)
Creates new Vendor-Specific AVP with given vendor id and given value.
<b>Parameters</b>:
vendorid -
Vendor ID
avpvalue -
AVP value as octet string
<b>Returns: </b>[text_t](text_t.md)
<b>REQ</b>
Retrieves header information and AVPs from radius requests.
<b>Returns: </b>[radius_req_t](radius_req_t.md)
<b>RES</b>
Retrieves header information and AVPs from radius responses.
<b>Returns: </b>[radius_res_t](radius_res_t.md)