#include <freeradius-devel/util/rand.h>
#include <freeradius-devel/util/log.h>
#include <freeradius-devel/util/pair.h>
#include <freeradius-devel/util/md5.h>
#include <freeradius-devel/util/sha1.h>
#include <freeradius-devel/util/dbuff.h>
Go to the source code of this file.
|
enum | bfd_auth_type_t {
BFD_AUTH_RESERVED = 0
,
BFD_AUTH_SIMPLE
,
BFD_AUTH_KEYED_MD5
,
BFD_AUTH_MET_KEYED_MD5
,
BFD_AUTH_KEYED_SHA1
,
BFD_AUTH_MET_KEYED_SHA1
} |
|
enum | bfd_diag_t {
BFD_DIAG_NONE = 0
,
BFD_CTRL_EXPIRED
,
BFD_ECHO_FAILED
,
BFD_NEIGHBOR_DOWN
,
BFD_FORWARD_PLANE_RESET
,
BFD_PATH_DOWN
,
BFD_CONCATENATED_PATH_DOWN
,
BFD_ADMIN_DOWN
,
BFD_REVERSE_CONCAT_PATH_DOWN
} |
|
enum | bfd_session_state_t {
BFD_STATE_ADMIN_DOWN = 0
,
BFD_STATE_DOWN
,
BFD_STATE_INIT
,
BFD_STATE_UP
} |
|
enum | fr_bfd_packet_code_t {
FR_BFD_ADMIN_DOWN
,
FR_BFD_DOWN
,
FR_BFD_INIT
,
FR_BFD_UP
} |
|
|
union bfd_auth_t | __attribute__ ((packed)) bfd_auth_t |
|
ssize_t | fr_bfd_decode (TALLOC_CTX *ctx, fr_pair_list_t *out, uint8_t const *packet, size_t packet_len, char const *secret, size_t secret_len) |
|
ssize_t | fr_bfd_encode (uint8_t *packet, size_t packet_len, uint8_t const *original, char const *secret, size_t secret_len, fr_pair_list_t *vps) |
|
void | fr_bfd_global_free (void) |
|
int | fr_bfd_global_init (void) |
|
bool | fr_bfd_packet_ok (char const **err, uint8_t const *packet, size_t packet_len) |
|
◆ __attribute__
Definition at line 63 of file bfd.h.
◆ bfd_auth_t
Definition at line 95 of file bfd.h.
◆ bfd_auth_t.__unnamed180__
union bfd_auth_t.__unnamed180__ |
Definition at line 96 of file bfd.h.
Data Fields |
bfd_auth_basic_t |
basic |
|
bfd_auth_md5_t |
md5 |
|
bfd_auth_simple_t |
password |
|
bfd_auth_sha1_t |
sha1 |
|
◆ fr_bfd_ctx_t
Definition at line 154 of file bfd.h.
Data Fields |
char const * |
secret |
shared secret. MUST be talloc'd |
TALLOC_CTX * |
tmp_ctx |
for temporary things cleaned up during decoding |
◆ BFD_AUTH_INVALID
Definition at line 61 of file bfd.h.
◆ FR_BFD_CODE_MAX
◆ FR_BFD_HEADER_LENGTH
#define FR_BFD_HEADER_LENGTH (24) |
◆ FR_BFD_PACKET_CODE_VALID
◆ bfd_auth_type_t
◆ bfd_diag_t
◆ bfd_session_state_t
◆ bfd_auth_type_t
Enumerator |
---|
BFD_AUTH_RESERVED | |
BFD_AUTH_SIMPLE | |
BFD_AUTH_KEYED_MD5 | |
BFD_AUTH_MET_KEYED_MD5 | |
BFD_AUTH_KEYED_SHA1 | |
BFD_AUTH_MET_KEYED_SHA1 | |
Definition at line 52 of file bfd.h.
◆ bfd_diag_t
Enumerator |
---|
BFD_DIAG_NONE | |
BFD_CTRL_EXPIRED | |
BFD_ECHO_FAILED | |
BFD_NEIGHBOR_DOWN | |
BFD_FORWARD_PLANE_RESET | |
BFD_PATH_DOWN | |
BFD_CONCATENATED_PATH_DOWN | |
BFD_ADMIN_DOWN | |
BFD_REVERSE_CONCAT_PATH_DOWN | |
Definition at line 40 of file bfd.h.
◆ bfd_session_state_t
Enumerator |
---|
BFD_STATE_ADMIN_DOWN | |
BFD_STATE_DOWN | |
BFD_STATE_INIT | |
BFD_STATE_UP | |
Definition at line 33 of file bfd.h.
◆ fr_bfd_packet_code_t
Enumerator |
---|
FR_BFD_ADMIN_DOWN | |
FR_BFD_DOWN | |
FR_BFD_INIT | |
FR_BFD_UP | |
Definition at line 143 of file bfd.h.
◆ __attribute__()
◆ fr_bfd_decode()
◆ fr_bfd_encode()
◆ fr_bfd_global_free()
void fr_bfd_global_free |
( |
void |
| ) |
|
◆ fr_bfd_global_init()
int fr_bfd_global_init |
( |
void |
| ) |
|
◆ fr_bfd_packet_ok()
bool fr_bfd_packet_ok |
( |
char const ** |
err, |
|
|
uint8_t const * |
packet, |
|
|
size_t |
packet_len |
|
) |
| |
◆ __attribute__
◆ bfd_auth_type_table
◆ bfd_auth_type_table_len
size_t const bfd_auth_type_table_len |
|
extern |
◆ fr_bfd_packet_names