FD.io VPP  v18.10-34-gcce845e
Vector Packet Processing
lldp_output.c File Reference

LLDP packet generation implementation. More...

+ Include dependency graph for lldp_output.c:

Go to the source code of this file.

Functions

static void lldp_build_mgmt_addr_tlv (u8 **t0p, u8 subtype, u8 addr_len, u8 *addr, u32 if_index, u8 oid_len, u8 *oid)
 
static void lldp_add_chassis_id (const vnet_hw_interface_t *hw, u8 **t0p)
 
static void lldp_add_port_id (const vnet_hw_interface_t *hw, u8 **t0p)
 
static void lldp_add_ttl (const lldp_main_t *lm, u8 **t0p, int shutdown)
 
static void lldp_add_port_desc (const lldp_main_t *lm, lldp_intf_t *n, u8 **t0p)
 
static void lldp_add_sys_name (const lldp_main_t *lm, u8 **t0p)
 
static void lldp_add_mgmt_addr (const lldp_intf_t *n, const vnet_hw_interface_t *hw, u8 **t0p)
 
static void lldp_add_pdu_end (u8 **t0p)
 
static void lldp_add_tlvs (lldp_main_t *lm, vnet_hw_interface_t *hw, u8 **t0p, int shutdown, lldp_intf_t *n)
 
void lldp_send_ethernet (lldp_main_t *lm, lldp_intf_t *n, int shutdown)
 
void lldp_delete_intf (lldp_main_t *lm, lldp_intf_t *n)
 
static clib_error_tlldp_template_init (vlib_main_t *vm)
 

Detailed Description

LLDP packet generation implementation.

Definition in file lldp_output.c.

Function Documentation

static void lldp_add_chassis_id ( const vnet_hw_interface_t hw,
u8 **  t0p 
)
static

Definition at line 46 of file lldp_output.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void lldp_add_mgmt_addr ( const lldp_intf_t n,
const vnet_hw_interface_t hw,
u8 **  t0p 
)
static

Definition at line 130 of file lldp_output.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void lldp_add_pdu_end ( u8 **  t0p)
static

Definition at line 174 of file lldp_output.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void lldp_add_port_desc ( const lldp_main_t lm,
lldp_intf_t n,
u8 **  t0p 
)
static

Definition at line 102 of file lldp_output.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void lldp_add_port_id ( const vnet_hw_interface_t hw,
u8 **  t0p 
)
static

Definition at line 62 of file lldp_output.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void lldp_add_sys_name ( const lldp_main_t lm,
u8 **  t0p 
)
static

Definition at line 116 of file lldp_output.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void lldp_add_tlvs ( lldp_main_t lm,
vnet_hw_interface_t hw,
u8 **  t0p,
int  shutdown,
lldp_intf_t n 
)
static

Definition at line 183 of file lldp_output.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void lldp_add_ttl ( const lldp_main_t lm,
u8 **  t0p,
int  shutdown 
)
static

Definition at line 77 of file lldp_output.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void lldp_build_mgmt_addr_tlv ( u8 **  t0p,
u8  subtype,
u8  addr_len,
u8 addr,
u32  if_index,
u8  oid_len,
u8 oid 
)
static

Definition at line 22 of file lldp_output.c.

+ Here is the call graph for this function:

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

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:

static clib_error_t* lldp_template_init ( vlib_main_t vm)
static

Definition at line 266 of file lldp_output.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function: