FD.io VPP  v18.01.2-1-g9b554f3
Vector Packet Processing
lldp_node.c File Reference

LLDP nodes implementation. More...

+ Include dependency graph for lldp_node.c:

Go to the source code of this file.

Macros

#define LLDP_DEBUG   (0)
 
#define F(sym, string)   static char LLDP_ERR_##sym##_STR[] = string;
 
#define F(sym, string)   LLDP_ERR_##sym##_STR,
 

Enumerations

enum  lldp_next_t { LLDP_INPUT_NEXT_NORMAL, LLDP_INPUT_N_NEXT }
 

Functions

 foreach_lldp_error (F)
 
static uword lldp_node_fn (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
static uword lldp_process (vlib_main_t *vm, vlib_node_runtime_t *rt, vlib_frame_t *f)
 
void lldp_schedule_intf (lldp_main_t *lm, lldp_intf_t *n)
 
void lldp_unschedule_intf (lldp_main_t *lm, lldp_intf_t *n)
 
static clib_error_tlldp_sw_interface_up_down (vnet_main_t *vnm, u32 sw_if_index, u32 flags)
 
 VNET_SW_INTERFACE_ADMIN_UP_DOWN_FUNCTION (lldp_sw_interface_up_down)
 
static clib_error_tlldp_hw_interface_up_down (vnet_main_t *vnm, u32 hw_if_index, u32 flags)
 
 VNET_HW_INTERFACE_LINK_UP_DOWN_FUNCTION (lldp_hw_interface_up_down)
 

Variables

static vlib_node_registration_t lldp_process_node
 (constructor) VLIB_REGISTER_NODE (lldp_process_node) More...
 
static char * lldp_error_strings []
 
static vlib_node_registration_t lldp_input_node
 (constructor) VLIB_REGISTER_NODE (lldp_input_node) More...
 

Detailed Description

LLDP nodes implementation.

Definition in file lldp_node.c.

Macro Definition Documentation

#define F (   sym,
  string 
)    static char LLDP_ERR_##sym##_STR[] = string;

Definition at line 28 of file lldp_node.c.

#define F (   sym,
  string 
)    LLDP_ERR_##sym##_STR,

Definition at line 28 of file lldp_node.c.

#define LLDP_DEBUG   (0)

Definition at line 24 of file lldp_node.c.

Enumeration Type Documentation

Enumerator
LLDP_INPUT_NEXT_NORMAL 
LLDP_INPUT_N_NEXT 

Definition at line 47 of file lldp_node.c.

Function Documentation

foreach_lldp_error ( F  )
static clib_error_t* lldp_hw_interface_up_down ( vnet_main_t vnm,
u32  hw_if_index,
u32  flags 
)
static

Definition at line 319 of file lldp_node.c.

+ Here is the call graph for this function:

static uword lldp_node_fn ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame 
)
static

Definition at line 58 of file lldp_node.c.

+ Here is the call graph for this function:

static uword lldp_process ( vlib_main_t vm,
vlib_node_runtime_t rt,
vlib_frame_t f 
)
static

Definition at line 129 of file lldp_node.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:

static clib_error_t* lldp_sw_interface_up_down ( vnet_main_t vnm,
u32  sw_if_index,
u32  flags 
)
static

Definition at line 298 of file lldp_node.c.

+ Here is the call 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:

VNET_HW_INTERFACE_LINK_UP_DOWN_FUNCTION ( lldp_hw_interface_up_down  )

+ Here is the caller graph for this function:

VNET_SW_INTERFACE_ADMIN_UP_DOWN_FUNCTION ( lldp_sw_interface_up_down  )

+ Here is the caller graph for this function:

Variable Documentation

char* lldp_error_strings[]
static
Initial value:
= {
#define F(sym, string)
}
#define F(sym, string)
Definition: lldp_node.c:28
foreach_lldp_error(F)

Definition at line 36 of file lldp_node.c.

vlib_node_registration_t lldp_input_node
static
Initial value:
= {
.function = lldp_node_fn,
.name = "lldp-input",
.vector_size = sizeof(u32),
.n_errors = LLDP_N_ERROR,
.error_strings = lldp_error_strings,
.format_trace = lldp_input_format_trace,
.n_next_nodes = LLDP_INPUT_N_NEXT,
.next_nodes =
{
[LLDP_INPUT_NEXT_NORMAL] = "error-drop",
},
}
u8 * lldp_input_format_trace(u8 *s, va_list *args)
Definition: lldp_cli.c:696
unsigned int u32
Definition: types.h:88
static uword lldp_node_fn(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
Definition: lldp_node.c:58
static char * lldp_error_strings[]
Definition: lldp_node.c:36

(constructor) VLIB_REGISTER_NODE (lldp_input_node)

Definition at line 106 of file lldp_node.c.

static vlib_node_registration_t lldp_process_node
static
Initial value:
= {
.function = lldp_process,
.name = "lldp-process",
}
static uword lldp_process(vlib_main_t *vm, vlib_node_runtime_t *rt, vlib_frame_t *f)
Definition: lldp_node.c:129

(constructor) VLIB_REGISTER_NODE (lldp_process_node)

Definition at line 26 of file lldp_node.c.