FD.io VPP  v21.10.1-2-g0a485f517
Vector Packet Processing
cdp.h File Reference
+ Include dependency graph for cdp.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  cdp_neighbor_t
 
struct  cdp_main_t
 
struct  cdp_input_trace_t
 

Macros

#define foreach_neighbor_string_field
 
#define foreach_cdp_error
 

Enumerations

enum  cdp_packet_template_id_t { CDP_PACKET_TEMPLATE_ETHERNET, CDP_PACKET_TEMPLATE_HDLC, CDP_PACKET_TEMPLATE_SRP, CDP_N_PACKET_TEMPLATES }
 
enum  cdp_error_t { CDP_N_ERROR }
 
enum  cdp_process_event_t { CDP_EVENT_ENABLE, CDP_EVENT_DISABLE }
 

Functions

cdp_error_t cdp_input (vlib_main_t *vm, vlib_buffer_t *b0, u32 bi0)
 
void cdp_periodic (vlib_main_t *vm)
 
void cdp_keepalive (cdp_main_t *cm, cdp_neighbor_t *n)
 
u16 cdp_checksum (void *p, int count)
 
u8cdp_input_format_trace (u8 *s, va_list *args)
 
void vnet_cdp_create_periodic_process (cdp_main_t *cmp)
 

Variables

cdp_main_t cdp_main
 
vlib_node_registration_t cdp_process_node
 

Macro Definition Documentation

◆ foreach_cdp_error

#define foreach_cdp_error
Value:
_ (NONE, "good cdp packets (processed)") \
_ (CACHE_HIT, "good cdp packets (cache hit)") \
_ (BAD_TLV, "cdp packets with bad TLVs") \
_ (PROTOCOL_VERSION, "cdp packets with bad protocol versions") \
_ (CHECKSUM, "cdp packets with bad checksums") \
_ (DISABLED, "cdp packets received on disabled interfaces")

Definition at line 112 of file cdp.h.

◆ foreach_neighbor_string_field

#define foreach_neighbor_string_field
Value:
_(device_name) \
_(version) \
_(port_id) \
_(platform)

Definition at line 73 of file cdp.h.

Enumeration Type Documentation

◆ cdp_error_t

Enumerator
CDP_N_ERROR 

Definition at line 120 of file cdp.h.

◆ cdp_packet_template_id_t

Enumerator
CDP_PACKET_TEMPLATE_ETHERNET 
CDP_PACKET_TEMPLATE_HDLC 
CDP_PACKET_TEMPLATE_SRP 
CDP_N_PACKET_TEMPLATES 

Definition at line 33 of file cdp.h.

◆ cdp_process_event_t

Enumerator
CDP_EVENT_ENABLE 
CDP_EVENT_DISABLE 

Definition at line 135 of file cdp.h.

Function Documentation

◆ cdp_checksum()

u16 cdp_checksum ( void *  p,
int  count 
)

Definition at line 26 of file cdp_input.c.

+ Here is the caller graph for this function:

◆ cdp_input()

cdp_error_t cdp_input ( vlib_main_t vm,
vlib_buffer_t b0,
u32  bi0 
)

Definition at line 323 of file cdp_input.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ cdp_input_format_trace()

u8* cdp_input_format_trace ( u8 s,
va_list *  args 
)

Definition at line 484 of file cdp_input.c.

+ Here is the call graph for this function:

◆ cdp_keepalive()

void cdp_keepalive ( cdp_main_t cm,
cdp_neighbor_t n 
)

◆ cdp_periodic()

void cdp_periodic ( vlib_main_t vm)

Definition at line 350 of file cdp_periodic.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ vnet_cdp_create_periodic_process()

void vnet_cdp_create_periodic_process ( cdp_main_t cmp)

Definition at line 201 of file cdp_node.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Variable Documentation

◆ cdp_main

cdp_main_t cdp_main

Definition at line 17 of file cdp_input.c.

◆ cdp_process_node

vlib_node_registration_t cdp_process_node
version
option version
Definition: sample.api:19