home_server type = auth+acct+coa in the same port?

Alan DeKok aland at deployingradius.com
Fri May 8 17:37:31 CEST 2015


On May 8, 2015, at 11:30 AM, Jorge Pereira <jpereiran at gmail.com> wrote:
>   I guess that i got it your idea... because today we have the
> src/main/command.c that have a
> static 'options' like the string "auth+acct" (you can't invert the order!)
> that set a static defines.

  In command.c, that string is used only when printing.  So it's easy enough to fix.

> I think that we can change for bit-wise matchs... like:

  That's probably the best approach.

>   // And in the places when need to match...
> 
>   if (type_value & HOME_TYPE_ACCT)
>                do_handle_acct();
>   else if (type_value & HOME_TYPE_COA)
>                do_handle_coa();

  Yes.  There's already code to do this for the auth+acct, I think.

>   </pseudo imaginary code>
> 
> something like that? btw... I have looked around, looks like a hard work! :)

  It's just work.  I don't think it involves serious changes to the core.

  Alan DeKok.




More information about the Freeradius-Users mailing list