BFD global declarations.
More...
Go to the source code of this file.
|
u8 * | bfd_input_format_trace (u8 *s, va_list *args) |
|
bfd_session_t * | bfd_get_session (bfd_main_t *bm, bfd_transport_t t) |
|
void | bfd_put_session (bfd_main_t *bm, bfd_session_t *bs) |
|
bfd_session_t * | bfd_find_session_by_idx (bfd_main_t *bm, uword bs_idx) |
|
bfd_session_t * | bfd_find_session_by_disc (bfd_main_t *bm, u32 disc) |
|
void | bfd_session_start (bfd_main_t *bm, bfd_session_t *bs) |
|
void | bfd_consume_pkt (bfd_main_t *bm, const bfd_pkt_t *bfd, u32 bs_idx) |
|
int | bfd_verify_pkt_common (const bfd_pkt_t *pkt) |
| verify bfd packet - common checks More...
|
|
int | bfd_verify_pkt_session (const bfd_pkt_t *pkt, u16 pkt_size, const bfd_session_t *bs) |
| verify bfd packet - authentication More...
|
|
void | bfd_event (bfd_main_t *bm, bfd_session_t *bs) |
|
void | bfd_send_final (vlib_main_t *vm, vlib_buffer_t *b, bfd_session_t *bs) |
|
u8 * | format_bfd_session (u8 *s, va_list *args) |
|
BFD global declarations.
Definition in file bfd_main.h.
#define F |
( |
|
t, |
|
|
|
n |
|
) |
| BFD_TRANSPORT_##t, |
#define F |
( |
|
x | ) |
BFD_MODE_##x, |
#define F |
( |
|
sym, |
|
|
|
str |
|
) |
| BFD_ERROR_##sym, |
#define foreach_bfd_error |
( |
|
F | ) |
|
Value:F (NONE,
"good bfd packets (processed)")
\ F (BAD,
"invalid bfd packets")
\ F (DISABLED,
"bfd packets received on disabled interfaces")
Definition at line 164 of file bfd_main.h.
#define foreach_bfd_mode |
( |
|
F | ) |
|
#define foreach_bfd_transport |
( |
|
F | ) |
|
Value:F (UDP4,
"ip4-rewrite")
\
Definition at line 27 of file bfd_main.h.
#define USEC_PER_MS 1000LL |
Enumerator |
---|
BFD_EVENT_RESCHEDULE |
|
BFD_EVENT_NEW_SESSION |
|
Definition at line 184 of file bfd_main.h.
Enumerator |
---|
foreach_bfd_error |
|
Definition at line 169 of file bfd_main.h.
Enumerator |
---|
foreach_bfd_mode |
|
Definition at line 42 of file bfd_main.h.
Enumerator |
---|
foreach_bfd_transport |
|
Definition at line 31 of file bfd_main.h.
void bfd_consume_pkt |
( |
bfd_main_t * |
bm, |
|
|
const bfd_pkt_t * |
bfd, |
|
|
u32 |
bs_idx |
|
) |
| |
u8* bfd_input_format_trace |
( |
u8 * |
s, |
|
|
va_list * |
args |
|
) |
| |
int bfd_verify_pkt_common |
( |
const bfd_pkt_t * |
pkt | ) |
|
verify bfd packet - common checks
- Parameters
-
- Returns
- 1 if bfd packet is valid
Definition at line 792 of file bfd_main.c.
int bfd_verify_pkt_session |
( |
const bfd_pkt_t * |
pkt, |
|
|
u16 |
pkt_size, |
|
|
const bfd_session_t * |
bs |
|
) |
| |
verify bfd packet - authentication
- Parameters
-
- Returns
- 1 if bfd packet is valid
Definition at line 848 of file bfd_main.c.
u8* format_bfd_session |
( |
u8 * |
s, |
|
|
va_list * |
args |
|
) |
| |
enum { ... } bfd_process_event_e |