accessing subtypes (tlv)

Juan Pablo L. jpablolorenzetti at hotmail.com
Thu May 16 00:47:41 CEST 2013


Hi, thank you very much, that worked.regarding the float as parameter, i should not have sent that as an example because it was wrong anyways as you very well mentionedthe function is not expecting a float .. lol ... thanks for the advise too!
From: jpablolorenzetti at hotmail.com
To: freeradius-users at lists.freeradius.org
Subject: accessing subtypes (tlv)
Date: Wed, 15 May 2013 19:55:56 +0000




Hi, i have downloaded and installed freeradius from git master FreeRADIUS Version 3.0.0 (git #7a9281c), i m developing a module to do some charging based on 3gpp2 standards for a cdma network, i have modified the dictionary to reflect a subtype in one of the attributes: 
ATTRIBUTE      3GPP2-Prepaid-acct-Capability           91       tlvATTRIBUTE       3GPP2-Prepaid-acct-Capability-AvailableInClient   91.1     integer
but i m having trouble accesing 3GPP2-Prepaid-acct-Capability-AvailableInClient, basically i dont know how and i cant find an example in the code so far.
when i do:
ppac = pairfind(request->packet->vps,91.1,5535,TAG_ANY)orppac = pairfind(request->packet->vps,91,5535,TAG_ANY)
they both return null. any hint will be appreciated as to how can i access the values in the subtypesof any tlv-type attribute. the other option is just put back the dictionary to octect type and access the values manuallybut i know this version of freeradius supports tlv so i would like to find a way to do it using freeradius capabilities. thanks!
 		 	   		   		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20130515/aaf48a16/attachment.html>


More information about the Freeradius-Users mailing list