FD.io VPP  v18.01-8-g0eacf49
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_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
 
enum { ... }  lldp_process_event_t
 

Detailed Description

LLDP global declarations.

Definition in file lldp_node.h.

Macro Definition Documentation

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

Definition at line 121 of file lldp_node.h.

#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")
#define F(sym, str)
Definition: lldp_node.h:121

Definition at line 113 of file lldp_node.h.

#define LLDP_MAX_TX_HOLD   (100)

Definition at line 106 of file lldp_node.h.

#define LLDP_MAX_TX_INTERVAL   (3600)

Definition at line 108 of file lldp_node.h.

#define LLDP_MIN_TX_HOLD   (1)

Definition at line 105 of file lldp_node.h.

#define LLDP_MIN_TX_INTERVAL   (1)

Definition at line 107 of file lldp_node.h.

Typedef Documentation

typedef struct lldp_intf lldp_intf_t

Enumeration Type Documentation

anonymous enum
Enumerator
LLDP_EVENT_RESCHEDULE 

Definition at line 134 of file lldp_node.h.

Enumerator
foreach_lldp_error 

Definition at line 119 of file lldp_node.h.

Function Documentation

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 caller graph for this function:

void lldp_delete_intf ( lldp_main_t lm,
lldp_intf_t n 
)

Definition at line 249 of file lldp_output.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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_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:

u8* lldp_input_format_trace ( u8 s,
va_list *  args 
)

Definition at line 696 of file lldp_cli.c.

+ Here is the call graph for this function:

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:

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:

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_t lldp_main

Definition at line 117 of file lldp_input.c.

enum { ... } lldp_process_event_t