<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Hi Alan, i m sorry i m sorry if i m not being clear enough, but please consider the example from my last reply:<div> </div><div>this is the code in the module:</div><div>pairadd(&request->reply->vps,pairmake("3GPP2-Prepaid-Acct-Quota-QuotaIDentifier","1", T_OP_EQ));<br><div><br></div><div>and this is what travels on the wire:</div><div><br></div><div><div>subtype = 01 (<span style="font-size: 12pt;">3GPP2-Prepaid-Acct-Quota-QuotaIDentifier)</span></div><div>subtype-length = 06 </div><div>value = f3 08 48 12 </div></div><div><br></div><div>as you see, the value in value is expected it to be 00000001 and not <span style="font-size: 12pt;">f3 08 48 12 . maybe is a misunderstanding from me. i m using freeradius stable 2.2 and wireshark 1.8.6.</span></div><div><span style="font-size: 12pt;"><br></span></div><div><span style="font-size: 12pt;">thanks!</span></div><br><div><div id="SkyDrivePlaceholder"></div><hr id="stopSpelling">From: jpablolorenzetti@hotmail.com<br>To: freeradius-users@lists.freeradius.org<br>Subject: RE: wireshart shows wrong information<br>Date: Fri, 26 Apr 2013 14:22:20 +0000<br><br>

<style><!--
.ExternalClass .ecxhmmessage P {
padding:0px;
}

.ExternalClass body.ecxhmmessage {
font-size:12pt;
font-family:Calibri;
}

--></style>
<div dir="ltr">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:<div><br></div><div>pairadd(&request->reply->vps,pairmake("3GPP2-Prepaid-Acct-Quota-QuotaIDentifier","1", T_OP_EQ));<br><div><br></div><div>and this is what travels on the wire:</div><div><br></div><div><div>subtype = 01 (<span style="font-size:12pt;">3GPP2-Prepaid-Acct-Quota-QuotaIDentifier)</span></div><div>subtype-length = 06 </div><div>value = f3 08 48 12 </div></div><div><br></div><div><br></div><div>and this happens for all values ... i might be missing something .... thanks!</div><div><br><br><div><div id="ecxSkyDrivePlaceholder"></div><hr id="ecxstopSpelling">From: jpablolorenzetti@hotmail.com<br>To: freeradius-users@lists.freeradius.org<br>Subject: RE: wireshart shows wrong information<br>Date: Thu, 25 Apr 2013 21:00:51 +0000<br><br>

<style><!--
.ExternalClass .ecxhmmessage P {
padding:0px;
}

.ExternalClass body.ecxhmmessage {
font-size:12pt;
font-family:Calibri;
}


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

<style><!--
.ExternalClass .ecxhmmessage P {
padding:0px;
}

.ExternalClass body.ecxhmmessage {
font-size:12pt;
font-family:Calibri;
}


--></style>
<div dir="ltr">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:<div><br></div><div>ATTRIBUTE       3GPP2-Prepaid-Acct-Quota                90      tlv</div><div>BEGIN-TLV       3GPP2-Prepaid-Acct-Quota</div><div>ATTRIBUTE       3GPP2-Prepaid-Acct-Quota-QuotaIDentifier        1       integer</div><div>ATTRIBUTE       3GPP2-Prepaid-Acct-Quota-VolumeQuota    2       integer</div><div>ATTRIBUTE       3GPP2-Prepaid-Acct-Quota-VolumeThreshold        4       integer</div><div>END-TLV         3GPP2-Prepaid-Acct-Quota</div><div><br></div><div><br></div><div>and for that i m writing the following code:</div><div><br></div><div>pairadd(&request->reply->vps,pairmake("3GPP2-Prepaid-Acct-Quota-QuotaIDentifier","1", T_OP_EQ));</div><div>pairadd(&request->reply->vps,pairmake("3GPP2-Prepaid-Acct-Quota-VolumeQuota","1000000", T_OP_EQ));</div><div><span style="font-size:12pt;">pairadd(&request->reply->vps,pairmake("3GPP2-Prepaid-Acct-Quota-VolumeThreshold","100", T_OP_EQ));</span> </div>                                           </div></div></div>                                    </div></div></div></div>                                        </div></div></div>                                    </div></body>
</html>