#include <stdio.h>#include <stdlib.h>#include <string.h>#include <sys/types.h>#include <netinet/in.h>#include "../../mem/shm_mem.h"#include "../../dprint.h"#include "diameter_msg.h"

Go to the source code of this file.
Functions | |
| AAAReturnCode | AAAAddAVPToMessage (AAAMessage *msg, AAA_AVP *avp, AAA_AVP *position) |
| AAA_AVP * | AAACloneAVP (AAA_AVP *avp, unsigned char clone_data) |
| char * | AAAConvertAVPToString (AAA_AVP *avp, char *dest, unsigned int destLen) |
| AAA_AVP * | AAACreateAVP (AAA_AVPCode code, AAA_AVPFlag flags, AAAVendorId vendorId, char *data, unsigned int length, AVPDataStatus data_status) |
| AAA_AVP * | AAAFindMatchingAVP (AAAMessage *msg, AAA_AVP *startAvp, AAA_AVPCode avpCode, AAAVendorId vendorId, AAASearchType searchType) |
| AAAReturnCode | AAAFreeAVP (AAA_AVP **avp) |
| AAA_AVP * | AAAGetFirstAVP (AAA_AVP_LIST *avpList) |
| AAA_AVP * | AAAGetLastAVP (AAA_AVP_LIST *avpList) |
| AAA_AVP * | AAAGetNextAVP (AAA_AVP *avp) |
| AAA_AVP * | AAAGetPrevAVP (AAA_AVP *avp) |
| AAAReturnCode | AAARemoveAVPFromMessage (AAAMessage *msg, AAA_AVP *avp) |
| void | set_avp_fields (AAA_AVPCode code, AAA_AVP *avp) |
| AAAReturnCode AAAAddAVPToMessage | ( | AAAMessage * | msg, | |
| AAA_AVP * | avp, | |||
| AAA_AVP * | position | |||
| ) |
Definition at line 153 of file avp.c.
References AAA_ERR_PARAMETER, AAA_ERR_SUCCESS, _message_t::auth_ses_state, AVP_Auth_Session_State, AVP_Destination_Host, AVP_Destination_Realm, AVP_Origin_Host, AVP_Origin_Realm, AVP_Result_Code, AVP_Session_Id, _message_t::avpList, avp::code, _message_t::dest_host, _message_t::dest_realm, _avp_list_t::head, LM_ERR, avp::next, _message_t::orig_host, _message_t::orig_realm, avp::prev, _message_t::res_code, _message_t::sessionId, and _avp_list_t::tail.
Referenced by AAATranslateMessage(), diameter_authorize(), and diameter_is_user_in().
| char* AAAConvertAVPToString | ( | AAA_AVP * | avp, | |
| char * | dest, | |||
| unsigned int | destLen | |||
| ) |
Definition at line 349 of file avp.c.
References AAA_AVP_ADDRESS_TYPE, AAA_AVP_DATA_TYPE, AAA_AVP_INTEGER32_TYPE, AAA_AVP_STRING_TYPE, AAA_AVP_TIME_TYPE, avp::code, avp::data, avp::flags, _str::len, LM_ERR, LM_WARN, avp::next, avp::packetType, avp::prev, _str::s, snprintf, avp::type, and avp::vendorId.
Referenced by AAAPrintMessage().
| AAA_AVP* AAACreateAVP | ( | AAA_AVPCode | code, | |
| AAA_AVPFlag | flags, | |||
| AAAVendorId | vendorId, | |||
| char * | data, | |||
| unsigned int | length, | |||
| AVPDataStatus | data_status | |||
| ) |
Definition at line 99 of file avp.c.
References ad_malloc, AVP_DUPLICATE_DATA, AVP_FREE_DATA, avp::code, avp::data, avp::flags, avp::free_it, _str::len, LM_ERR, avp::packetType, _str::s, set_avp_fields(), and avp::vendorId.
Referenced by AAATranslateMessage(), diameter_authorize(), and diameter_is_user_in().
| AAA_AVP* AAAFindMatchingAVP | ( | AAAMessage * | msg, | |
| AAA_AVP * | startAvp, | |||
| AAA_AVPCode | avpCode, | |||
| AAAVendorId | vendorId, | |||
| AAASearchType | searchType | |||
| ) |
Definition at line 207 of file avp.c.
References AAA_FORWARD_SEARCH, _message_t::avpList, avp::code, _avp_list_t::head, LM_ERR, avp::next, avp::prev, _avp_list_t::tail, and avp::vendorId.
Referenced by tcp_send_recv().
| AAAReturnCode AAAFreeAVP | ( | AAA_AVP ** | avp | ) |
Definition at line 295 of file avp.c.
References AAA_ERR_PARAMETER, AAA_ERR_SUCCESS, ad_free, and LM_ERR.
Referenced by AAAFreeMessage(), diameter_authorize(), and diameter_is_user_in().
| AAA_AVP* AAAGetFirstAVP | ( | AAA_AVP_LIST * | avpList | ) |
| AAA_AVP* AAAGetLastAVP | ( | AAA_AVP_LIST * | avpList | ) |
Definition at line 323 of file avp.c.
References _avp_list_t::tail.
Referenced by diameter_authorize().
| AAAReturnCode AAARemoveAVPFromMessage | ( | AAAMessage * | msg, | |
| AAA_AVP * | avp | |||
| ) |
Definition at line 248 of file avp.c.
References AAA_ERR_PARAMETER, AAA_ERR_SUCCESS, _message_t::auth_ses_state, AVP_Auth_Session_State, AVP_Destination_Host, AVP_Destination_Realm, AVP_Origin_Host, AVP_Origin_Realm, AVP_Result_Code, AVP_Session_Id, _message_t::avpList, avp::code, _message_t::dest_host, _message_t::dest_realm, _avp_list_t::head, LM_ERR, avp::next, _message_t::orig_host, _message_t::orig_realm, avp::prev, _message_t::res_code, _message_t::sessionId, and _avp_list_t::tail.
| void set_avp_fields | ( | AAA_AVPCode | code, | |
| AAA_AVP * | avp | |||
| ) | [inline] |
Definition at line 42 of file avp.c.
References AAA_AVP_ADDRESS_TYPE, AAA_AVP_DATA_TYPE, AAA_AVP_INTEGER32_TYPE, AAA_AVP_STRING_TYPE, avp::flags, and avp::type.
Referenced by AAACreateAVP().
1.5.6