Alan, can you please extend a little bot more ... what do you mean that you see 
the correct value .... i see value "f3 08 48 12" when i m actually expecting 
"00000001" ..... i really dont see where it is actually correct. ... thanks!!!

From: jpablolorenze...@hotmail.com
To: freeradius-users@lists.freeradius.org
Subject: RE: wireshart shows wrong information
Date: Fri, 26 Apr 2013 14:22:20 +0000




i realise now that i may have not been very clear in my explanation of the 
problem, that problem is that all values for the fields are the wrong values, 
for example, this is my code:
pairadd(&request->reply->vps,pairmake("3GPP2-Prepaid-Acct-Quota-QuotaIDentifier","1",
 T_OP_EQ));

and this is what travels on the wire:
subtype = 01 (3GPP2-Prepaid-Acct-Quota-QuotaIDentifier)subtype-length = 06 
value = f3 08 48 12 

and this happens for all values ... i might be missing something .... thanks!

From: jpablolorenze...@hotmail.com
To: freeradius-users@lists.freeradius.org
Subject: RE: wireshart shows wrong information
Date: Thu, 25 Apr 2013 21:00:51 +0000




i m sorry i accidentally press the wrong combination of keys and the mail left 
.... resuming my message below .....
this is the data that tcpdump show as being transmitted for this attribute:
type = 1a length = 1a vendor = 00 00 15 9f vendor-type = 5a vendor-length = 14 
subtype = 01 (3GPP2-Prepaid-Acct-Quota-QuotaIDentifier)subtype-length = 06 
value = f3 08 48 12 subtype = 02 
(3GPP2-Prepaid-Acct-Quota-VolumeQuota)subtype-length=06value = 00 00 00 00 
subtype = 04 (3GPP2-Prepaid-Acct-Quota-VolumeThreshold)length = 06 value = 00 
00 88 fa
i dont see where i m doing wrong ... any help will be appreciated.
From: jpablolorenze...@hotmail.com
To: freeradius-users@lists.freeradius.org
Subject: wireshart shows wrong information
Date: Thu, 25 Apr 2013 20:53:58 +0000




Hi, i m implementing a module in which i m using some TLV for which i modified 
the dictionary.3gpp2 as very well suggested in a different thread, but i see 
that the data for those TLV fields are not encoded properly or at least that is 
what wireshark is showing even thou debugging freeradius it shows that the data 
being sent is the correct it differs from the data captured using tcpdump ... 
here is my dictionary entry:
ATTRIBUTE       3GPP2-Prepaid-Acct-Quota                90      tlvBEGIN-TLV    
   3GPP2-Prepaid-Acct-QuotaATTRIBUTE       
3GPP2-Prepaid-Acct-Quota-QuotaIDentifier        1       integerATTRIBUTE       
3GPP2-Prepaid-Acct-Quota-VolumeQuota    2       integerATTRIBUTE       
3GPP2-Prepaid-Acct-Quota-VolumeThreshold        4       integerEND-TLV         
3GPP2-Prepaid-Acct-Quota

and for that i m writing the following code:
pairadd(&request->reply->vps,pairmake("3GPP2-Prepaid-Acct-Quota-QuotaIDentifier","1",
 
T_OP_EQ));pairadd(&request->reply->vps,pairmake("3GPP2-Prepaid-Acct-Quota-VolumeQuota","1000000",
 
T_OP_EQ));pairadd(&request->reply->vps,pairmake("3GPP2-Prepaid-Acct-Quota-VolumeThreshold","100",
 T_OP_EQ));                                                                     
                                                                                
         
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Reply via email to