FD.io VPP
v19.08.3-2-gbabecb413
Vector Packet Processing
|
BFD protocol declarations. More...
Go to the source code of this file.
Macros | |
#define | foreach_bfd_auth_type(F) |
#define | BFD_AUTH_TYPE_NAME(t) BFD_AUTH_TYPE_##t |
#define | F(n, l, t, s) BFD_AUTH_TYPE_NAME (t) = n, |
#define | foreach_bfd_diag_code(F) |
#define | BFD_DIAG_CODE_NAME(t) BFD_DIAG_CODE_##t |
#define | F(n, t, s) BFD_DIAG_CODE_NAME (t) = n, |
#define | foreach_bfd_state(F) |
#define | BFD_STATE_NAME(t) BFD_STATE_##t |
#define | F(n, t, s) BFD_STATE_NAME (t) = n, |
Enumerations | |
enum | bfd_auth_type_e { foreach_bfd_auth_type =(F) } |
enum | bfd_diag_code_e { foreach_bfd_diag_code =(F) } |
enum | bfd_state_e { foreach_bfd_state =(F) } |
Functions | |
u32 | bfd_max_key_len_for_auth_type (bfd_auth_type_e auth_type) |
get the maximum length of key data for given auth type More... | |
const char * | bfd_auth_type_str (bfd_auth_type_e auth_type) |
typedef | CLIB_PACKED (struct { u8 type;u8 len;}) bfd_auth_common_t |
typedef | CLIB_PACKED (struct { bfd_auth_common_t type_len;u8 key_id;u8 reserved;u32 seq_num;u8 hash[20];}) bfd_auth_sha1_t |
typedef | CLIB_PACKED (struct { struct { u8 vers_diag;u8 sta_flags;u8 detect_mult;u8 length;} head;u32 my_disc;u32 your_disc;u32 des_min_tx;u32 req_min_rx;u32 req_min_echo_rx;}) bfd_pkt_t |
typedef | CLIB_PACKED (struct { bfd_pkt_t pkt;bfd_auth_common_t common_auth;}) bfd_pkt_with_common_auth_t |
typedef | CLIB_PACKED (struct { bfd_pkt_t pkt;bfd_auth_sha1_t sha1_auth;}) bfd_pkt_with_sha1_auth_t |
u8 | bfd_pkt_get_version (const bfd_pkt_t *pkt) |
void | bfd_pkt_set_version (bfd_pkt_t *pkt, int version) |
u8 | bfd_pkt_get_diag_code (const bfd_pkt_t *pkt) |
void | bfd_pkt_set_diag_code (bfd_pkt_t *pkt, int value) |
u8 | bfd_pkt_get_state (const bfd_pkt_t *pkt) |
void | bfd_pkt_set_state (bfd_pkt_t *pkt, int value) |
u8 | bfd_pkt_get_poll (const bfd_pkt_t *pkt) |
void | bfd_pkt_set_final (bfd_pkt_t *pkt) |
u8 | bfd_pkt_get_final (const bfd_pkt_t *pkt) |
void | bfd_pkt_set_poll (bfd_pkt_t *pkt) |
u8 | bfd_pkt_get_control_plane_independent (const bfd_pkt_t *pkt) |
void | bfd_pkt_set_control_plane_independent (bfd_pkt_t *pkt) |
u8 | bfd_pkt_get_auth_present (const bfd_pkt_t *pkt) |
void | bfd_pkt_set_auth_present (bfd_pkt_t *pkt) |
u8 | bfd_pkt_get_demand (const bfd_pkt_t *pkt) |
void | bfd_pkt_set_demand (bfd_pkt_t *pkt) |
u8 | bfd_pkt_get_multipoint (const bfd_pkt_t *pkt) |
void | bfd_pkt_set_multipoint (bfd_pkt_t *pkt) |
const char * | bfd_diag_code_string (bfd_diag_code_e diag) |
const char * | bfd_state_string (bfd_state_e state) |
BFD protocol declarations.
Definition in file bfd_protocol.h.
#define BFD_AUTH_TYPE_NAME | ( | t | ) | BFD_AUTH_TYPE_##t |
Definition at line 34 of file bfd_protocol.h.
#define BFD_DIAG_CODE_NAME | ( | t | ) | BFD_DIAG_CODE_##t |
Definition at line 175 of file bfd_protocol.h.
#define BFD_STATE_NAME | ( | t | ) | BFD_STATE_##t |
Definition at line 193 of file bfd_protocol.h.
#define F | ( | n, | |
l, | |||
t, | |||
s | |||
) | BFD_AUTH_TYPE_NAME (t) = n, |
Definition at line 197 of file bfd_protocol.h.
#define F | ( | n, | |
t, | |||
s | |||
) | BFD_DIAG_CODE_NAME (t) = n, |
Definition at line 197 of file bfd_protocol.h.
#define F | ( | n, | |
t, | |||
s | |||
) | BFD_STATE_NAME (t) = n, |
Definition at line 197 of file bfd_protocol.h.
#define foreach_bfd_auth_type | ( | F | ) |
Definition at line 26 of file bfd_protocol.h.
#define foreach_bfd_diag_code | ( | F | ) |
Definition at line 164 of file bfd_protocol.h.
#define foreach_bfd_state | ( | F | ) |
Definition at line 187 of file bfd_protocol.h.
enum bfd_auth_type_e |
Enumerator | |
---|---|
foreach_bfd_auth_type |
Definition at line 36 of file bfd_protocol.h.
enum bfd_diag_code_e |
Enumerator | |
---|---|
foreach_bfd_diag_code |
Definition at line 177 of file bfd_protocol.h.
enum bfd_state_e |
Enumerator | |
---|---|
foreach_bfd_state |
Definition at line 195 of file bfd_protocol.h.
const char* bfd_auth_type_str | ( | bfd_auth_type_e | auth_type | ) |
const char* bfd_diag_code_string | ( | bfd_diag_code_e | diag | ) |
u32 bfd_max_key_len_for_auth_type | ( | bfd_auth_type_e | auth_type | ) |
get the maximum length of key data for given auth type
Definition at line 138 of file bfd_protocol.c.
u8 bfd_pkt_get_auth_present | ( | const bfd_pkt_t * | pkt | ) |
u8 bfd_pkt_get_control_plane_independent | ( | const bfd_pkt_t * | pkt | ) |
Definition at line 84 of file bfd_protocol.c.
u8 bfd_pkt_get_demand | ( | const bfd_pkt_t * | pkt | ) |
Definition at line 110 of file bfd_protocol.c.
u8 bfd_pkt_get_diag_code | ( | const bfd_pkt_t * | pkt | ) |
u8 bfd_pkt_get_final | ( | const bfd_pkt_t * | pkt | ) |
u8 bfd_pkt_get_multipoint | ( | const bfd_pkt_t * | pkt | ) |
Definition at line 124 of file bfd_protocol.c.
u8 bfd_pkt_get_poll | ( | const bfd_pkt_t * | pkt | ) |
u8 bfd_pkt_get_state | ( | const bfd_pkt_t * | pkt | ) |
u8 bfd_pkt_get_version | ( | const bfd_pkt_t * | pkt | ) |
void bfd_pkt_set_auth_present | ( | bfd_pkt_t * | pkt | ) |
void bfd_pkt_set_control_plane_independent | ( | bfd_pkt_t * | pkt | ) |
void bfd_pkt_set_demand | ( | bfd_pkt_t * | pkt | ) |
void bfd_pkt_set_diag_code | ( | bfd_pkt_t * | pkt, |
int | value | ||
) |
void bfd_pkt_set_final | ( | bfd_pkt_t * | pkt | ) |
void bfd_pkt_set_multipoint | ( | bfd_pkt_t * | pkt | ) |
void bfd_pkt_set_poll | ( | bfd_pkt_t * | pkt | ) |
void bfd_pkt_set_state | ( | bfd_pkt_t * | pkt, |
int | value | ||
) |
void bfd_pkt_set_version | ( | bfd_pkt_t * | pkt, |
int | version | ||
) |
const char* bfd_state_string | ( | bfd_state_e | state | ) |
typedef CLIB_PACKED | ( | struct { bfd_auth_common_t type_len;u8 key_id;u8 reserved;u32 seq_num;u8 hash[20];} | ) |
typedef CLIB_PACKED | ( | struct { struct { u8 vers_diag;u8 sta_flags;u8 detect_mult;u8 length;} head;u32 my_disc;u32 your_disc;u32 des_min_tx;u32 req_min_rx;u32 req_min_echo_rx;} | ) |
typedef CLIB_PACKED | ( | struct { bfd_pkt_t pkt;bfd_auth_common_t common_auth;} | ) |
typedef CLIB_PACKED | ( | struct { bfd_pkt_t pkt;bfd_auth_sha1_t sha1_auth;} | ) |