FD.io VPP
v17.01.1-3-gc6833f8
Vector Packet Processing
|
BFD protocol declarations. More...
Go to the source code of this file.
Macros | |
#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_diag_code_e { foreach_bfd_diag_code =(F) } |
enum | bfd_state_e { foreach_bfd_state =(F) } |
Functions | |
typedef | CLIB_PACKED (struct{u8 type;u8 len;u8 data[0];}) bfd_auth_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_t auth;}) bfd_pkt_with_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_DIAG_CODE_NAME | ( | t | ) | BFD_DIAG_CODE_##t |
Definition at line 117 of file bfd_protocol.h.
#define BFD_STATE_NAME | ( | t | ) | BFD_STATE_##t |
Definition at line 135 of file bfd_protocol.h.
#define F | ( | n, | |
t, | |||
s | |||
) | BFD_DIAG_CODE_NAME (t) = n, |
Definition at line 139 of file bfd_protocol.h.
#define F | ( | n, | |
t, | |||
s | |||
) | BFD_STATE_NAME (t) = n, |
Definition at line 139 of file bfd_protocol.h.
#define foreach_bfd_diag_code | ( | F | ) |
Definition at line 106 of file bfd_protocol.h.
#define foreach_bfd_state | ( | F | ) |
enum bfd_diag_code_e |
Enumerator | |
---|---|
foreach_bfd_diag_code |
Definition at line 119 of file bfd_protocol.h.
enum bfd_state_e |
Enumerator | |
---|---|
foreach_bfd_state |
Definition at line 137 of file bfd_protocol.h.
const char* bfd_diag_code_string | ( | bfd_diag_code_e | diag | ) |
u8 bfd_pkt_get_auth_present | ( | const bfd_pkt_t * | pkt | ) |
Definition at line 55 of file bfd_protocol.c.
u8 bfd_pkt_get_control_plane_independent | ( | const bfd_pkt_t * | pkt | ) |
Definition at line 48 of file bfd_protocol.c.
u8 bfd_pkt_get_demand | ( | const bfd_pkt_t * | pkt | ) |
u8 bfd_pkt_get_diag_code | ( | const bfd_pkt_t * | pkt | ) |
u8 bfd_pkt_get_final | ( | const bfd_pkt_t * | pkt | ) |
Definition at line 42 of file bfd_protocol.c.
u8 bfd_pkt_get_multipoint | ( | const bfd_pkt_t * | pkt | ) |
Definition at line 69 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{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_t auth;} | ) |