request value_pairs

James Devine fxmulder at gmail.com
Mon May 11 21:39:11 CEST 2009


This mapping is working correctly.  When looking at the VALUE_PAIR struct
for the Framed-Protocol attribute, how do I determine that the contents of
VALUE_PAIR_DATA data; are actually a string and not an integer without prior
knowledge?


On Mon, May 11, 2009 at 1:32 PM, Ivan Kalik <tnt at kalik.net> wrote:

> > I am looking at request information in a C module I am working on, and
> > there
> > are various value_pairs such as Framed-Protocol who's type is
> > PW_TYPE_INTEGER but the content is actually a string.  It does have a
> > value
> > in the dictionary and I am guessing it is being mapped from this, but
> then
> > shouldn't the type be PW_TYPE_STRING?  Or am I just looking at this
> > incorrectly?
>
> It is mapped in the dictionary under heading: "Integer Translations". That
> string is a human readable translation of the integer that is the
> attribute value.
>
> Ivan Kalik
> Kalik Informatika ISP
>
> -
> List info/subscribe/unsubscribe? See
> http://www.freeradius.org/list/users.html
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20090511/1ce90ed7/attachment.html>


More information about the Freeradius-Users mailing list