BFD protocol declarations.
More...
Go to the source code of this file.
|
#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, |
|
BFD protocol declarations.
Definition in file bfd_protocol.h.
#define BFD_AUTH_TYPE_NAME |
( |
|
t | ) |
BFD_AUTH_TYPE_##t |
#define BFD_DIAG_CODE_NAME |
( |
|
t | ) |
BFD_DIAG_CODE_##t |
#define BFD_STATE_NAME |
( |
|
t | ) |
BFD_STATE_##t |
#define foreach_bfd_auth_type |
( |
|
F | ) |
|
Value:F (0, 0, reserved,
"Reserved")
\ F (1, 16, simple_password,
"Simple Password")
\ F (2, 16, keyed_md5,
"Keyed MD5")
\ F (3, 16, meticulous_keyed_md5,
"Meticulous Keyed MD5")
\ F (4, 20, keyed_sha1,
"Keyed SHA1")
\ F (5, 20, meticulous_keyed_sha1,
"Meticulous Keyed SHA1")
Definition at line 26 of file bfd_protocol.h.
#define foreach_bfd_diag_code |
( |
|
F | ) |
|
Value:F (0, no_diag,
"No Diagnostic")
\ F (1, det_time_exp,
"Control Detection Time Expired")
\ F (2, echo_failed,
"Echo Function Failed")
\ F (3, neighbor_sig_down,
"Neighbor Signaled Session Down")
\ F (4, fwd_plain_reset,
"Forwarding Plane Reset")
\ F (5, path_down,
"Path Down")
\ F (6, concat_path_down,
"Concatenated Path Down")
\ F (7, admin_down,
"Administratively Down")
\ F (8, reverse_concat_path_down,
"Reverse Concatenated Path Down")
Definition at line 164 of file bfd_protocol.h.
#define foreach_bfd_state |
( |
|
F | ) |
|
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 | ) |
|
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 | ) |
|
u8 bfd_pkt_get_multipoint |
( |
const bfd_pkt_t * |
pkt | ) |
|
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 |
|
) |
| |
typedef CLIB_PACKED |
( |
struct{u8 type;u8 len;} |
| ) |
|
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;} |
| ) |
|