vp_prints_value did the trick, thanks<br><br><div class="gmail_quote">On Mon, May 11, 2009 at 1:48 PM, Alan DeKok <span dir="ltr"><<a href="mailto:aland@deployingradius.com">aland@deployingradius.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">James Devine wrote:<br>
> This mapping is working correctly.  When looking at the VALUE_PAIR<br>
> struct for the Framed-Protocol attribute, how do I determine that the<br>
> contents of VALUE_PAIR_DATA data; are actually a string and not an<br>
> integer without prior knowledge?<br>
<br>
</div>  vp->type<br>
<br>
  And Framed-Protocol is an integer type.  See vp->vp_integer.<br>
<br>
  This should all be very clear from the existing code.  Simply grep the<br>
code for PW_FRAMED_PROTOCOL, or PW_TYPE_INTEGER, and see what it does.<br>
<font color="#888888"><br>
  Alan DeKok.<br>
</font><div><div></div><div class="h5">-<br>
List info/subscribe/unsubscribe? See <a href="http://www.freeradius.org/list/users.html" target="_blank">http://www.freeradius.org/list/users.html</a><br>
</div></div></blockquote></div><br>