The FreeRADIUS server  $Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
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_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_event_list_t *el, fr_time_t now, void *ctx)
 
static void bfd_poll_response (bfd_session_t *session)
 
static void bfd_send_init (bfd_session_t *session, bfd_packet_t *bfd)
 
static void bfd_send_packet (UNUSED fr_event_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_event_list_t *el, 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 keyed)
 
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
b0fffb18d2baebee26dbf66490db036767383efb

Definition in file session.c.

Function Documentation

◆ bfd_auth_md5()

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

Definition at line 480 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 510 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 451 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 642 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 467 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 494 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 441 of file session.c.

+ Here is the call graph for this function:
+ 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 692 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_event_list_t el,
fr_time_t  now,
void *  ctx 
)
static

Definition at line 940 of file session.c.

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

◆ bfd_poll_response()

static void bfd_poll_response ( bfd_session_t session)
static

Definition at line 125 of file session.c.

+ Here is the call graph for this function:
+ 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 734 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_event_list_t el,
UNUSED fr_time_t  now,
void *  ctx 
)
static

Definition at line 750 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 75 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 1063 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 150 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 1087 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 895 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 984 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 664 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 1017 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 806 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 871 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 1010 of file session.c.

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

◆ bfd_stop_poll()

static int bfd_stop_poll ( bfd_session_t session)
static

Definition at line 87 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 57 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_event_list_t el,
UNUSED fr_time_t  now,
void *  ctx 
)
static

Definition at line 773 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 562 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  keyed 
)
static

Definition at line 524 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 602 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 551 of file session.c.

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