FD.io VPP  v19.08.1-401-g8e4ed521a
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

◆ F [1/4]

#define F (   t,
  l,
  n,
 
)
Value:
if (auth_type == t) \
{ \
return l; \
}

◆ F [2/4]

#define F (   t,
  l,
  n,
 
)
Value:
if (auth_type == t) \
{ \
return s; \
}

◆ F [3/4]

#define F (   n,
  t,
 
)
Value:
case BFD_DIAG_CODE_NAME (t): \
return s;
#define BFD_DIAG_CODE_NAME(t)
Definition: bfd_protocol.h:175

◆ F [4/4]

#define F (   n,
  t,
 
)
Value:
case BFD_STATE_NAME (t): \
return s;
#define BFD_STATE_NAME(t)
Definition: bfd_protocol.h:193

Function Documentation

◆ bfd_auth_type_str()

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:

◆ bfd_diag_code_string()

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:

◆ bfd_max_key_len_for_auth_type()

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:

◆ bfd_pkt_get_auth_present()

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:

◆ bfd_pkt_get_control_plane_independent()

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:

◆ bfd_pkt_get_demand()

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:

◆ bfd_pkt_get_diag_code()

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:

◆ bfd_pkt_get_final()

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:

◆ bfd_pkt_get_multipoint()

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:

◆ bfd_pkt_get_poll()

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:

◆ bfd_pkt_get_state()

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:

◆ bfd_pkt_get_version()

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:

◆ bfd_pkt_set_auth_present()

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:

◆ bfd_pkt_set_diag_code()

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:

◆ bfd_pkt_set_final()

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:

◆ bfd_pkt_set_poll()

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:

◆ bfd_pkt_set_state()

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:

◆ bfd_pkt_set_version()

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:

◆ bfd_state_string()

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: