The FreeRADIUS server $Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
Loading...
Searching...
No Matches
Data Structures | Functions
timeout.c File Reference

Unlang "timeout" keyword evaluation. More...

#include <freeradius-devel/unlang/timeout.h>
#include "group_priv.h"
#include "timeout_priv.h"
#include "unlang_priv.h"
+ Include dependency graph for timeout.c:

Go to the source code of this file.

Data Structures

struct  unlang_frame_state_timeout_t
 

Functions

static unlang_action_t unlang_timeout (rlm_rcode_t *p_result, request_t *request, unlang_stack_frame_t *frame)
 
static void unlang_timeout_handler (UNUSED fr_timer_list_t *tl, UNUSED fr_time_t now, void *ctx)
 
void unlang_timeout_init (void)
 
static unlang_action_t unlang_timeout_resume_done (UNUSED rlm_rcode_t *p_result, request_t *request, unlang_stack_frame_t *frame)
 
int unlang_timeout_section_push (request_t *request, CONF_SECTION *cs, fr_time_delta_t timeout, bool top_frame)
 When a timeout fires, run the given section.
 
static unlang_action_t unlang_timeout_set (rlm_rcode_t *p_result, request_t *request, unlang_stack_frame_t *frame)
 
static unlang_action_t unlang_timeout_xlat_done (rlm_rcode_t *p_result, request_t *request, unlang_stack_frame_t *frame)
 

Detailed Description

Unlang "timeout" keyword evaluation.

Id
f72e545e8e3043e48558b711c3acd8b92423ad02

Definition in file timeout.c.


Data Structure Documentation

◆ unlang_frame_state_timeout_t

struct unlang_frame_state_timeout_t

Definition at line 32 of file timeout.c.

+ Collaboration diagram for unlang_frame_state_timeout_t:
Data Fields
int depth
fr_timer_t * ev
rindent_t indent
unlang_t * instruction to run on timeout
request_t * request
fr_value_box_list_t result
bool success
fr_time_delta_t timeout

Function Documentation

◆ unlang_timeout()

static unlang_action_t unlang_timeout ( rlm_rcode_t p_result,
request_t request,
unlang_stack_frame_t frame 
)
static

Definition at line 145 of file timeout.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ unlang_timeout_handler()

static void unlang_timeout_handler ( UNUSED fr_timer_list_t tl,
UNUSED fr_time_t  now,
void *  ctx 
)
static

Definition at line 45 of file timeout.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ unlang_timeout_init()

void unlang_timeout_init ( void  )

Definition at line 258 of file timeout.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ unlang_timeout_resume_done()

static unlang_action_t unlang_timeout_resume_done ( UNUSED rlm_rcode_t p_result,
request_t request,
unlang_stack_frame_t frame 
)
static

Definition at line 72 of file timeout.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ unlang_timeout_section_push()

int unlang_timeout_section_push ( request_t request,
CONF_SECTION cs,
fr_time_delta_t  timeout,
bool  top_frame 
)

When a timeout fires, run the given section.

Parameters
[in]requestto push timeout onto
[in]timeoutwhen to run the timeout
[in]cssection to run when the timeout fires.
[in]top_frameSet 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 184 of file timeout.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ unlang_timeout_set()

static unlang_action_t unlang_timeout_set ( rlm_rcode_t p_result,
request_t request,
unlang_stack_frame_t frame 
)
static

Definition at line 107 of file timeout.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ unlang_timeout_xlat_done()

static unlang_action_t unlang_timeout_xlat_done ( rlm_rcode_t p_result,
request_t request,
unlang_stack_frame_t frame 
)
static

Definition at line 132 of file timeout.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function: