avp.c File Reference

#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"

Include dependency graph for avp.c:

Go to the source code of this file.

Functions

AAAReturnCode AAAAddAVPToMessage (AAAMessage *msg, AAA_AVP *avp, AAA_AVP *position)
AAA_AVPAAACloneAVP (AAA_AVP *avp, unsigned char clone_data)
char * AAAConvertAVPToString (AAA_AVP *avp, char *dest, unsigned int destLen)
AAA_AVPAAACreateAVP (AAA_AVPCode code, AAA_AVPFlag flags, AAAVendorId vendorId, char *data, unsigned int length, AVPDataStatus data_status)
AAA_AVPAAAFindMatchingAVP (AAAMessage *msg, AAA_AVP *startAvp, AAA_AVPCode avpCode, AAAVendorId vendorId, AAASearchType searchType)
AAAReturnCode AAAFreeAVP (AAA_AVP **avp)
AAA_AVPAAAGetFirstAVP (AAA_AVP_LIST *avpList)
AAA_AVPAAAGetLastAVP (AAA_AVP_LIST *avpList)
AAA_AVPAAAGetNextAVP (AAA_AVP *avp)
AAA_AVPAAAGetPrevAVP (AAA_AVP *avp)
AAAReturnCode AAARemoveAVPFromMessage (AAAMessage *msg, AAA_AVP *avp)
void set_avp_fields (AAA_AVPCode code, AAA_AVP *avp)


Function Documentation

AAAReturnCode AAAAddAVPToMessage ( AAAMessage msg,
AAA_AVP avp,
AAA_AVP position 
)

AAA_AVP* AAACloneAVP ( AAA_AVP avp,
unsigned char  clone_data 
)

Definition at line 414 of file avp.c.

References ad_free, ad_malloc, avp::data, avp::free_it, _str::len, LM_ERR, avp::next, avp::prev, and _str::s.

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  ) 

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  ) 

Definition at line 316 of file avp.c.

References _avp_list_t::head.

AAA_AVP* AAAGetLastAVP ( AAA_AVP_LIST avpList  ) 

Definition at line 323 of file avp.c.

References _avp_list_t::tail.

Referenced by diameter_authorize().

AAA_AVP* AAAGetNextAVP ( AAA_AVP avp  ) 

Definition at line 332 of file avp.c.

References avp::next.

AAA_AVP* AAAGetPrevAVP ( AAA_AVP avp  ) 

Definition at line 340 of file avp.c.

References avp::prev.

AAAReturnCode AAARemoveAVPFromMessage ( AAAMessage msg,
AAA_AVP avp 
)

void set_avp_fields ( AAA_AVPCode  code,
AAA_AVP avp 
) [inline]


Generated on Thu May 17 12:00:35 2012 for Kamailio - The Open Source SIP Server by  doxygen 1.5.6