RADIUS_MESSAGE_T
Define common operations for radius.Req or radius.Res.
This topic lists the expressions that are provided by this class.
-
ACCT_MULTI_SESSION_IDReturns the Acct-Multi-Session-Id AVP (code 50) from the message.
Returns: radius_avp_t
-
ACCT_SESSION_IDReturns the Acct-Session-ID AVP (code 44) from the message.
Returns: radius_avp_t
-
ACCT_STATUS_TYPEReturns the ACCT_STATUS_TYPE AVP (code 40) from the message.
Returns: radius_avp_t
-
AVP_ENDReturns the location at the end of radius message (or in other words end of all AVPs) in radius message.
Returns: text_t
-
AVP_LISTReturns the AVP region in radius message (or in other words returns location at start of AVPs and length equal to radius message length excluding header).
Returns: text_t
AVP (uint avpcode)
Returns the specified AVP from the message.
For example, to get the AVP with code 26 from a Request, use the expression: radius.REQ.AVP(26).
Parameters (expressions not allowed):
avpcode- AVP code
Returns: radius_avp_t
AVP (uint avpcode, uint vendorid)
Returns the specified AVP encoded within a Vendor-Specific Radius attribute with the given vendorid from the message.
For example, to get Vendor AVP 1 with vender ID '10415' from a Request, use the expression: radius.REQ.AVP(10, 10415).
Parameters (expressions not allowed):
avpcode- AVP code
vendorid- Vendor ID
Returns: radius_avp_t
-
AVP_STARTReturns the location at the start of AVPs (or in other words end of radius header) in radius message.
Returns: text_t
-
CALLED_STATION_IDReturns the CALLED_STATION_ID AVP (code 30) from the message.
Returns: radius_avp_t
-
CALLING_STATION_IDReturns the CALLING_STATION_ID AVP (code 31) from the message.
Returns: radius_avp_t
-
CODEReturns code header field from the message.
Returns: radius_code_t
-
FRAMED_IP_ADDRESSReturns the FRAMED_IP_ADDRESS AVP (code 8) from the message.
Returns: radius_avp_t
-
FRAMED_PROTOCOLReturns the FRAMED_PROTOCOL AVP (code 7) from the message.
Returns: radius_avp_t
-
IDENTIFIERReturns identifier header field from the message.
Returns: num_at
-
LENGTHReturns the Message Length from the message.
Returns: num_at
-
NAS_IDENTIFIERReturns the NAS_IDENTIFIER AVP (code 32) from the message.
Returns: radius_avp_t
-
NAS_IP_ADDRESSReturns the NAS-IP-ADDRESS AVP (code 4) from the message.
Returns: radius_avp_t
-
NAS_PORTReturns the NAS_PORT AVP (code 5) from the message.
Returns: radius_avp_t
-
USER_NAMEReturns the User-Name AVP (code 1) from the message.
Returns: radius_avp_t
-
VENDOR_SPECIFICReturns the Vendor-Id AVP (code 26) from the message.
Returns: vendor_spec_radius_avp_t