read radius response
Alan DeKok
aland at deployingradius.com
Mon Jan 28 16:32:52 CET 2013
Jatin Bodarya wrote:
> Hi all,
>
> I suppose to send radius request as well as accounting start
> request. I can do this both successfully . Now In radius response packet It
> returns me some values including " acct-session-id" now I want to read
> this packet and send this parameter with " acct start request . using
> rc_avpair_add or rc_avpair_get like commands.. can anyone help me ? how
> can I read that packet and get this data ?
rc_avpair_get should work with the response. See the code which
already does this in radius.c:
...
((vp = rc_avpair_get(received, PW_FRAMED_PROTOCOL, 0)) != NULL))
...
Alan DeKok.
More information about the Freeradius-Devel
mailing list