Unlang "finally" keyword evaluation.
More...
#include <freeradius-devel/server/state.h>
#include <freeradius-devel/server/signal.h>
#include <freeradius-devel/server/pair.h>
#include <freeradius-devel/unlang/unlang_priv.h>
#include <freeradius-devel/unlang/action.h>
#include <freeradius-devel/unlang/finally.h>
#include <freeradius-devel/unlang/interpret.h>
#include <freeradius-devel/util/timer.h>
Go to the source code of this file.
Unlang "finally" keyword evaluation.
- Id
- 1307234c2c59bfd78e52ae68c614c2302bec11d9
Used for running policy after a virtual server.
- Copyright
- 2025 Network RAIDUS SAS (legal.nosp@m.@net.nosp@m.workr.nosp@m.adiu.nosp@m.s.com)
Definition in file finally.c.
◆ unlang_frame_state_finally_t
struct unlang_frame_state_finally_t |
◆ unlang_finally()
◆ unlang_finally_init()
void unlang_finally_init |
( |
void |
| ) |
|
◆ unlang_finally_push_instruction()
Push a finally instructtion on the stack, to be evaluated as the stack is unwound.
- Parameters
-
[in] | request | to push timeout onto |
[in] | instruction | to run as we unwind |
[in] | min_time | max time to wait for the finally instruction to finish. This only applies if the request timeout timer has already fired, or has less than max_time to execute. i.e. this is a guarantee of a minimum amount of time for the finally instruction to run. |
[in] | top_frame | Set to UNLANG_TOP_FRAME if the interpreter should return. Set to UNLANG_SUB_FRAME if the interprer should continue. |
- Returns
- 0 on success.
- -1 on failure.
Static instruction for performing xlat evaluations
Definition at line 101 of file finally.c.
◆ unlang_timeout_handler()