FD.io VPP  v21.06-3-gbb25fbf28
Vector Packet Processing
lldp_node.h File Reference

LLDP global declarations. More...

+ Include dependency graph for lldp_node.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  lldp_intf
 
struct  lldp_main_t
 
struct  lldp_input_trace_t
 

Macros

#define LLDP_MIN_TX_HOLD   (1)
 
#define LLDP_MAX_TX_HOLD   (100)
 
#define LLDP_MIN_TX_INTERVAL   (1)
 
#define LLDP_MAX_TX_INTERVAL   (3600)
 
#define foreach_lldp_error(F)
 
#define F(sym, str)   LLDP_ERROR_##sym,
 

Typedefs

typedef struct lldp_intf lldp_intf_t
 

Enumerations

enum  lldp_error_t { foreach_lldp_error }
 
enum  lldp_process_event_t { LLDP_EVENT_RESCHEDULE = 1 }
 

Functions

lldp_intf_tlldp_get_intf (lldp_main_t *lm, u32 hw_if_index)
 
lldp_intf_tlldp_create_intf (lldp_main_t *lm, u32 hw_if_index)
 
void lldp_delete_intf (lldp_main_t *lm, lldp_intf_t *n)
 
lldp_error_t lldp_input (vlib_main_t *vm, vlib_buffer_t *b0, u32 bi0)
 
u8lldp_input_format_trace (u8 *s, va_list *args)
 
void lldp_send_ethernet (lldp_main_t *lm, lldp_intf_t *n, int shutdown)
 
void lldp_schedule_intf (lldp_main_t *lm, lldp_intf_t *n)
 
void lldp_unschedule_intf (lldp_main_t *lm, lldp_intf_t *n)
 

Variables

lldp_main_t lldp_main
 

Detailed Description

LLDP global declarations.

Definition in file lldp_node.h.

Macro Definition Documentation

◆ F

#define F (   sym,
  str 
)    LLDP_ERROR_##sym,

Definition at line 121 of file lldp_node.h.

◆ foreach_lldp_error

#define foreach_lldp_error (   F)
Value:
F(NONE, "good lldp packets (processed)") \
F(CACHE_HIT, "good lldp packets (cache hit)") \
F(BAD_TLV, "lldp packets with bad TLVs") \
F(DISABLED, "lldp packets received on disabled interfaces")

Definition at line 113 of file lldp_node.h.

◆ LLDP_MAX_TX_HOLD

#define LLDP_MAX_TX_HOLD   (100)

Definition at line 106 of file lldp_node.h.

◆ LLDP_MAX_TX_INTERVAL

#define LLDP_MAX_TX_INTERVAL   (3600)

Definition at line 108 of file lldp_node.h.

◆ LLDP_MIN_TX_HOLD

#define LLDP_MIN_TX_HOLD   (1)

Definition at line 105 of file lldp_node.h.

◆ LLDP_MIN_TX_INTERVAL

#define LLDP_MIN_TX_INTERVAL   (1)

Definition at line 107 of file lldp_node.h.

Typedef Documentation

◆ lldp_intf_t

typedef struct lldp_intf lldp_intf_t

Enumeration Type Documentation

◆ lldp_error_t

Enumerator
foreach_lldp_error 

Definition at line 119 of file lldp_node.h.

◆ lldp_process_event_t

Enumerator
LLDP_EVENT_RESCHEDULE 

Definition at line 134 of file lldp_node.h.

Function Documentation

◆ lldp_create_intf()

lldp_intf_t* lldp_create_intf ( lldp_main_t lm,
u32  hw_if_index 
)

Definition at line 224 of file lldp_input.c.

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

◆ lldp_delete_intf()

void lldp_delete_intf ( lldp_main_t lm,
lldp_intf_t n 
)

Definition at line 250 of file lldp_output.c.

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

◆ lldp_get_intf()

lldp_intf_t* lldp_get_intf ( lldp_main_t lm,
u32  hw_if_index 
)

Definition at line 212 of file lldp_input.c.

+ Here is the caller graph for this function:

◆ lldp_input()

lldp_error_t lldp_input ( vlib_main_t vm,
vlib_buffer_t b0,
u32  bi0 
)

Definition at line 249 of file lldp_input.c.

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

◆ lldp_input_format_trace()

u8* lldp_input_format_trace ( u8 s,
va_list *  args 
)

Definition at line 727 of file lldp_cli.c.

+ Here is the call graph for this function:

◆ lldp_schedule_intf()

void lldp_schedule_intf ( lldp_main_t lm,
lldp_intf_t n 
)

Definition at line 242 of file lldp_node.c.

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

◆ lldp_send_ethernet()

void lldp_send_ethernet ( lldp_main_t lm,
lldp_intf_t n,
int  shutdown 
)

Definition at line 199 of file lldp_output.c.

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

◆ lldp_unschedule_intf()

void lldp_unschedule_intf ( lldp_main_t lm,
lldp_intf_t n 
)

Definition at line 267 of file lldp_node.c.

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

Variable Documentation

◆ lldp_main

lldp_main_t lldp_main

Definition at line 117 of file lldp_input.c.

F
#define F(sym, str)
Definition: lldp_node.h:121