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 mentioned
the function is not expecting a float .. lol ... thanks for the advise too!


From: jpablolorenzetti@hotmail.com
To: freeradius-users@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       tlv
ATTRIBUTE       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)
or
ppac = 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 subtypes
of any tlv-type attribute. the other option is just put back the dictionary to octect type and access the values manually
but i know this version of freeradius supports tlv so i would like to find a way to do it using freeradius 
capabilities. thanks!