The FreeRADIUS server $Id: a4e7f8c94e8038b7627bcf52356b7ed15955c1d7 $
Loading...
Searching...
No Matches
Functions
session.c File Reference

BFD Session handling. More...

#include <freeradius-devel/util/debug.h>
#include <freeradius-devel/util/time.h>
#include <freeradius-devel/util/event.h>
#include <freeradius-devel/util/base16.h>
#include <freeradius-devel/util/md5.h>
#include <freeradius-devel/util/rand.h>
#include <freeradius-devel/util/sha1.h>
#include <freeradius-devel/util/socket.h>
#include "session.h"
+ Include dependency graph for session.c:

Go to the source code of this file.

Functions

static void bfd_arm_detection (bfd_session_t *session)
 
static void bfd_auth_md5 (bfd_session_t *session, bfd_packet_t *bfd)
 
static void bfd_auth_sha1 (bfd_session_t *session, bfd_packet_t *bfd)
 
static void bfd_auth_simple (bfd_session_t *session, bfd_packet_t *bfd)
 
static int bfd_authenticate (bfd_session_t *session, bfd_packet_t *bfd)
 
static void bfd_calc_md5 (bfd_session_t *session, bfd_packet_t *bfd)
 
static void bfd_calc_sha1 (bfd_session_t *session, bfd_packet_t *bfd)
 
static void bfd_calc_simple (bfd_session_t *session, bfd_packet_t *bfd)
 
static void bfd_control_packet_init (bfd_session_t *session, bfd_packet_t *bfd)
 
static void bfd_detection_timeout (UNUSED fr_timer_list_t *tl, fr_time_t now, void *ctx)
 
static bool bfd_local_demand_active (bfd_session_t const *session)
 
static void bfd_poll_response (bfd_session_t *session)
 
static bool bfd_remote_demand_active (bfd_session_t const *session)
 
static void bfd_send_init (bfd_session_t *session, bfd_packet_t *bfd)
 
static void bfd_send_packet (UNUSED fr_timer_list_t *el, UNUSED fr_time_t now, void *ctx)
 
void bfd_session_admin_down (bfd_session_t *session)
 
int bfd_session_init (bfd_session_t *session)
 
bfd_state_change_t bfd_session_process (bfd_session_t *session, bfd_packet_t *bfd)
 
void bfd_session_start (bfd_session_t *session)
 
static void bfd_set_desired_min_tx_interval (bfd_session_t *session, fr_time_delta_t value)
 
static void bfd_set_timeout (bfd_session_t *session, fr_time_t when)
 
static void bfd_sign (bfd_session_t *session, bfd_packet_t *bfd)
 
static void bfd_start_control (bfd_session_t *session)
 
static void bfd_start_packets (bfd_session_t *session)
 
static void bfd_start_poll (bfd_session_t *session)
 
static int bfd_stop_control (bfd_session_t *session)
 
static int bfd_stop_poll (bfd_session_t *session)
 
static void bfd_trigger (UNUSED bfd_session_t *session, UNUSED bfd_state_change_t change)
 
static void bfd_unlang_send_packet (UNUSED fr_timer_list_t *tl, UNUSED fr_time_t now, void *ctx)
 
static int bfd_verify_md5 (bfd_session_t *session, bfd_packet_t *bfd)
 
static int bfd_verify_sequence (bfd_session_t *session, uint32_t sequence_no, int meticulous, uint8_t detect_mult)
 
static int bfd_verify_sha1 (bfd_session_t *session, bfd_packet_t *bfd)
 
static int bfd_verify_simple (bfd_session_t *session, bfd_packet_t *bfd)
 

Detailed Description

BFD Session handling.

Id
2b9a7ac155faa8a27d7a52ab1939b396a94bab13

Definition in file session.c.

Function Documentation

◆ bfd_arm_detection()

static void bfd_arm_detection ( bfd_session_t *  session)
inlinestatic

Definition at line 1083 of file session.c.

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

◆ bfd_auth_md5()

static void bfd_auth_md5 ( bfd_session_t *  session,
bfd_packet_t *  bfd 
)
static

Definition at line 535 of file session.c.

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

◆ bfd_auth_sha1()

static void bfd_auth_sha1 ( bfd_session_t *  session,
bfd_packet_t *  bfd 
)
static

Definition at line 570 of file session.c.

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

◆ bfd_auth_simple()

static void bfd_auth_simple ( bfd_session_t *  session,
bfd_packet_t *  bfd 
)
static

Definition at line 500 of file session.c.

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

◆ bfd_authenticate()

static int bfd_authenticate ( bfd_session_t *  session,
bfd_packet_t *  bfd 
)
static

Definition at line 711 of file session.c.

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

◆ bfd_calc_md5()

static void bfd_calc_md5 ( bfd_session_t *  session,
bfd_packet_t *  bfd 
)
static

Definition at line 516 of file session.c.

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

◆ bfd_calc_sha1()

static void bfd_calc_sha1 ( bfd_session_t *  session,
bfd_packet_t *  bfd 
)
static

Definition at line 549 of file session.c.

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

◆ bfd_calc_simple()

static void bfd_calc_simple ( bfd_session_t *  session,
bfd_packet_t *  bfd 
)
static

Definition at line 490 of file session.c.

+ Here is the caller graph for this function:

◆ bfd_control_packet_init()

static void bfd_control_packet_init ( bfd_session_t *  session,
bfd_packet_t *  bfd 
)
static

Definition at line 772 of file session.c.

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

◆ bfd_detection_timeout()

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

Definition at line 1026 of file session.c.

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

◆ bfd_local_demand_active()

static bool bfd_local_demand_active ( bfd_session_t const *  session)
inlinestatic

Definition at line 56 of file session.c.

+ Here is the caller graph for this function:

◆ bfd_poll_response()

static void bfd_poll_response ( bfd_session_t *  session)
static

Definition at line 158 of file session.c.

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

◆ bfd_remote_demand_active()

static bool bfd_remote_demand_active ( bfd_session_t const *  session)
inlinestatic

Definition at line 67 of file session.c.

+ Here is the caller graph for this function:

◆ bfd_send_init()

static void bfd_send_init ( bfd_session_t *  session,
bfd_packet_t *  bfd 
)
static

Definition at line 807 of file session.c.

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

◆ bfd_send_packet()

static void bfd_send_packet ( UNUSED fr_timer_list_t *  el,
UNUSED fr_time_t  now,
void *  ctx 
)
static

Definition at line 828 of file session.c.

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

◆ bfd_session_admin_down()

void bfd_session_admin_down ( bfd_session_t *  session)

Definition at line 99 of file session.c.

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

◆ bfd_session_init()

int bfd_session_init ( bfd_session_t *  session)

Definition at line 1190 of file session.c.

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

◆ bfd_session_process()

bfd_state_change_t bfd_session_process ( bfd_session_t *  session,
bfd_packet_t *  bfd 
)

Definition at line 183 of file session.c.

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

◆ bfd_session_start()

void bfd_session_start ( bfd_session_t *  session)

Definition at line 1216 of file session.c.

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

◆ bfd_set_desired_min_tx_interval()

static void bfd_set_desired_min_tx_interval ( bfd_session_t *  session,
fr_time_delta_t  value 
)
static

Definition at line 981 of file session.c.

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

◆ bfd_set_timeout()

static void bfd_set_timeout ( bfd_session_t *  session,
fr_time_t  when 
)
static

Definition at line 1100 of file session.c.

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

◆ bfd_sign()

static void bfd_sign ( bfd_session_t *  session,
bfd_packet_t *  bfd 
)
static

Definition at line 744 of file session.c.

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

◆ bfd_start_control()

static void bfd_start_control ( bfd_session_t *  session)
static

Definition at line 1140 of file session.c.

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

◆ bfd_start_packets()

static void bfd_start_packets ( bfd_session_t *  session)
static

Definition at line 887 of file session.c.

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

◆ bfd_start_poll()

static void bfd_start_poll ( bfd_session_t *  session)
static

Definition at line 950 of file session.c.

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

◆ bfd_stop_control()

static int bfd_stop_control ( bfd_session_t *  session)
static

Definition at line 1134 of file session.c.

+ Here is the caller graph for this function:

◆ bfd_stop_poll()

static int bfd_stop_poll ( bfd_session_t *  session)
static

Definition at line 112 of file session.c.

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

◆ bfd_trigger()

static void bfd_trigger ( UNUSED bfd_session_t *  session,
UNUSED bfd_state_change_t  change 
)
static

Definition at line 81 of file session.c.

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

◆ bfd_unlang_send_packet()

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

Definition at line 851 of file session.c.

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

◆ bfd_verify_md5()

static int bfd_verify_md5 ( bfd_session_t *  session,
bfd_packet_t *  bfd 
)
static

Definition at line 627 of file session.c.

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

◆ bfd_verify_sequence()

static int bfd_verify_sequence ( bfd_session_t *  session,
uint32_t  sequence_no,
int  meticulous,
uint8_t  detect_mult 
)
static

Definition at line 588 of file session.c.

+ Here is the caller graph for this function:

◆ bfd_verify_sha1()

static int bfd_verify_sha1 ( bfd_session_t *  session,
bfd_packet_t *  bfd 
)
static

Definition at line 669 of file session.c.

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

◆ bfd_verify_simple()

static int bfd_verify_simple ( bfd_session_t *  session,
bfd_packet_t *  bfd 
)
static

Definition at line 616 of file session.c.

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