FD.io VPP  v18.10-34-gcce845e
Vector Packet Processing
bfd_protocol.c File Reference

BFD protocol implementation. More...

+ Include dependency graph for bfd_protocol.c:

Go to the source code of this file.

Macros

#define F(t, l, n, s)
 
#define F(t, l, n, s)
 
#define F(n, t, s)
 
#define F(n, t, s)
 

Functions

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_poll (bfd_pkt_t *pkt)
 
u8 bfd_pkt_get_final (const bfd_pkt_t *pkt)
 
void bfd_pkt_set_final (bfd_pkt_t *pkt)
 
u8 bfd_pkt_get_control_plane_independent (const 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)
 
u8 bfd_pkt_get_multipoint (const bfd_pkt_t *pkt)
 
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)
 
const char * bfd_diag_code_string (bfd_diag_code_e diag)
 
const char * bfd_state_string (bfd_state_e state)
 

Detailed Description

BFD protocol implementation.

Definition in file bfd_protocol.c.

Macro Definition Documentation

#define F (   t,
  l,
  n,
 
)
Value:
if (auth_type == t) \
{ \
return l; \
}
#define F (   t,
  l,
  n,
 
)
Value:
if (auth_type == t) \
{ \
return s; \
}
#define F (   n,
  t,
 
)
Value:
case BFD_DIAG_CODE_NAME (t): \
return s;
#define BFD_DIAG_CODE_NAME(t)
Definition: bfd_protocol.h:175
#define F (   n,
  t,
 
)
Value:
case BFD_STATE_NAME (t): \
return s;
#define BFD_STATE_NAME(t)
Definition: bfd_protocol.h:193

Function Documentation

const char* bfd_auth_type_str ( bfd_auth_type_e  auth_type)

Definition at line 151 of file bfd_protocol.c.

+ Here is the caller graph for this function:

const char* bfd_diag_code_string ( bfd_diag_code_e  diag)

Definition at line 164 of file bfd_protocol.c.

+ Here is the caller graph for this function:

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.

+ Here is the caller graph for this function:

u8 bfd_pkt_get_auth_present ( const bfd_pkt_t *  pkt)

Definition at line 98 of file bfd_protocol.c.

+ Here is the caller graph for this function:

u8 bfd_pkt_get_control_plane_independent ( const bfd_pkt_t *  pkt)

Definition at line 84 of file bfd_protocol.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

u8 bfd_pkt_get_demand ( const bfd_pkt_t *  pkt)

Definition at line 110 of file bfd_protocol.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

u8 bfd_pkt_get_diag_code ( const bfd_pkt_t *  pkt)

Definition at line 35 of file bfd_protocol.c.

+ Here is the caller graph for this function:

u8 bfd_pkt_get_final ( const bfd_pkt_t *  pkt)

Definition at line 72 of file bfd_protocol.c.

+ Here is the caller graph for this function:

u8 bfd_pkt_get_multipoint ( const bfd_pkt_t *  pkt)

Definition at line 124 of file bfd_protocol.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

u8 bfd_pkt_get_poll ( const bfd_pkt_t *  pkt)

Definition at line 60 of file bfd_protocol.c.

+ Here is the caller graph for this function:

u8 bfd_pkt_get_state ( const bfd_pkt_t *  pkt)

Definition at line 48 of file bfd_protocol.c.

+ Here is the caller graph for this function:

u8 bfd_pkt_get_version ( const bfd_pkt_t *  pkt)

Definition at line 22 of file bfd_protocol.c.

+ Here is the caller graph for this function:

void bfd_pkt_set_auth_present ( bfd_pkt_t *  pkt)

Definition at line 104 of file bfd_protocol.c.

+ Here is the caller graph for this function:

void bfd_pkt_set_diag_code ( bfd_pkt_t *  pkt,
int  value 
)

Definition at line 41 of file bfd_protocol.c.

+ Here is the caller graph for this function:

void bfd_pkt_set_final ( bfd_pkt_t *  pkt)

Definition at line 78 of file bfd_protocol.c.

+ Here is the caller graph for this function:

void bfd_pkt_set_poll ( bfd_pkt_t *  pkt)

Definition at line 66 of file bfd_protocol.c.

+ Here is the caller graph for this function:

void bfd_pkt_set_state ( bfd_pkt_t *  pkt,
int  value 
)

Definition at line 54 of file bfd_protocol.c.

+ Here is the caller graph for this function:

void bfd_pkt_set_version ( bfd_pkt_t *  pkt,
int  version 
)

Definition at line 28 of file bfd_protocol.c.

+ Here is the caller graph for this function:

const char* bfd_state_string ( bfd_state_e  state)

Definition at line 177 of file bfd_protocol.c.

+ Here is the caller graph for this function: