Ah sorry,<br>By the way, in the C code, please change Cisco-AVPair to CISCO_AVPAIR. This is the transformation which freeradius makes with regard to its environment variables and you should take care of the issue in your shell scripts or C code.
<br><br>Best Regards<br>Ali<br><br><div><span class="gmail_quote">On 9/7/06, <b class="gmail_sendername">Ali Majdzadeh</b> <<a href="mailto:ali.majdzadeh@gmail.com">ali.majdzadeh@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>Hi Fonci<br>Thanks for your attention.<br>I consulted the freeradius documentation about the problem.<br>They have mentioned that the AV pairs which contain multiple values are maintained using arrays. These arrays are available in, for example, shell scripts:
<br>example:<br>%{Cisco-AVPair[0]} references the value of the *first* Cisco-AVPair attribute (if it exists) in the request packet.<br>You can pass these values as command line arguments to your program.<br>But my problem was about fetching these types of AV pairs using getenv() in C.
<br>Example:<br>char *Cisco-AVPair;<br>if (getenv ("Cisco-AVPair"))<br>{<br> Cisco-AVPair = getenv ("Cisco-AVPair");<br>}<br>Hope this information can help.<br><br>Best Regards<br></div>
<div><span class="sg">Ali</span></div><div><span class="e" id="q_10d889df9ee07fb4_2"><br>
<br><br><div><span class="gmail_quote">On 9/7/06, <b class="gmail_sendername">Fonci</b> <<a href="mailto:fonci@freemail.hu" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">fonci@freemail.hu</a>> wrote:
</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Ali!<br>I've seen your mail in the freeradius mailing list. I think<br>we have the same problem. Let me write here mine:<br>So I get accounting requests from a client, which contains<br>an attribute whit these TLV parameters:
<br>Type : PC_Header<br>Length: 76 bytes<br>The Problem:<br>Value : 003ab54687bcc3029a.... (152 hexadecimal numbers)<br>parts : message ID. | Event type | ....<br><br>The message ID is a random number. But I need to know the
<br>event type. But all of this are together in one attribute. I<br>want to separate these.<br>How can I catch this value, and separate them? You mentioned<br>a C program or something. Can you give me an advice, how to<br>
try, or where to find information?<br>Thank you, and<br>Regards:<br>F.<br><br>_____________________________________________________________________<br>Kamatmentes vásárlás 45 napig! Különleges mindennapok az [origo] klikkbank hitelkártyával.
<br><a href="http://www.klikkbank.hu/lakossagi/termekek/hitelkartya/index.html" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.klikkbank.hu/lakossagi/termekek/hitelkartya/index.html</a>
<br><br></blockquote></div><br>
</span></div></blockquote></div><br>