request current section

Arran Cudbard-Bell a.cudbardb at freeradius.org
Thu Dec 29 14:52:23 CET 2016


> On Dec 29, 2016, at 8:18 AM, Matthew Newton <mcn4 at leicester.ac.uk> wrote:
> 
> Just a quick check in case I'm missing something obvious. Can't
> see anything, but...
> 
> Is there any way from the current request structure to find out
> which section is currently being processed
> (authorize/accounting/post-auth etc)?


There's the string name of the section if that's all you need:

https://github.com/FreeRADIUS/freeradius-server/blob/v4.0.x/src/main/xlat_eval.c#L99

-Arran
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 842 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.freeradius.org/pipermail/freeradius-devel/attachments/20161229/fc9a6904/attachment.sig>


More information about the Freeradius-Devel mailing list