15 #ifndef __included_bfd_protocol_h__ 16 #define __included_bfd_protocol_h__ 83 }) bfd_pkt_with_auth_t;
106 #define foreach_bfd_diag_code(F) \ 107 F (0, no_diag, "No Diagnostic") \ 108 F (1, det_time_exp, "Control Detection Time Expired") \ 109 F (2, echo_failed, "Echo Function Failed") \ 110 F (3, neighbor_sig_down, "Neighbor Signaled Session Down") \ 111 F (4, fwd_plain_reset, "Forwarding Plane Reset") \ 112 F (5, path_down, "Path Down") \ 113 F (6, concat_path_down, "Concatenated Path Down") \ 114 F (7, admin_down, "Administratively Down") \ 115 F (8, reverse_concat_path_down, "Reverse Concatenated Path Down") 117 #define BFD_DIAG_CODE_NAME(t) BFD_DIAG_CODE_##t 121 #define F(n, t, s) BFD_DIAG_CODE_NAME (t) = n, 129 #define foreach_bfd_state(F) \ 130 F (0, admin_down, "AdminDown") \ 131 F (1, down, "Down") \ 132 F (2, init, "Init") \ 135 #define BFD_STATE_NAME(t) BFD_STATE_##t 139 #define F(n, t, s) BFD_STATE_NAME (t) = n, u8 bfd_pkt_get_auth_present(const bfd_pkt_t *pkt)
u8 bfd_pkt_get_version(const bfd_pkt_t *pkt)
bad routing header type(not 4)") sr_error (NO_MORE_SEGMENTS
u8 bfd_pkt_get_final(const bfd_pkt_t *pkt)
void bfd_pkt_set_demand(bfd_pkt_t *pkt)
const char * bfd_diag_code_string(bfd_diag_code_e diag)
void bfd_pkt_set_poll(bfd_pkt_t *pkt)
void bfd_pkt_set_auth_present(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)
typedef CLIB_PACKED(struct{u8 type;u8 len;u8 data[0];}) bfd_auth_t
u8 bfd_pkt_get_demand(const bfd_pkt_t *pkt)
const char * bfd_state_string(bfd_state_e state)
u8 bfd_pkt_get_diag_code(const bfd_pkt_t *pkt)
#define foreach_bfd_state(F)
u8 bfd_pkt_get_control_plane_independent(const bfd_pkt_t *pkt)
vhost_vring_state_t state
u8 bfd_pkt_get_multipoint(const bfd_pkt_t *pkt)
u8 bfd_pkt_get_poll(const bfd_pkt_t *pkt)
void bfd_pkt_set_version(bfd_pkt_t *pkt, int version)
void bfd_pkt_set_multipoint(bfd_pkt_t *pkt)
void bfd_pkt_set_control_plane_independent(bfd_pkt_t *pkt)
u8 bfd_pkt_get_state(const bfd_pkt_t *pkt)
void bfd_pkt_set_state(bfd_pkt_t *pkt, int value)
#define foreach_bfd_diag_code(F)