11 May
2009
11 May
'09
4:34 p.m.
vp_prints_value did the trick, thanks On Mon, May 11, 2009 at 1:48 PM, Alan DeKok <aland@deployingradius.com>wrote:
James Devine wrote:
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?
vp->type
And Framed-Protocol is an integer type. See vp->vp_integer.
This should all be very clear from the existing code. Simply grep the code for PW_FRAMED_PROTOCOL, or PW_TYPE_INTEGER, and see what it does.
Alan DeKok. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html