FD.io VPP  v21.06-3-gbb25fbf28
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)
 

Variables

const u8 lldp_mac_addr [6] = { 0x01, 0x80, 0xC2, 0x00, 0x00, 0x0E }
 

Detailed Description

LLDP packet generation implementation.

Definition in file lldp_output.c.

Function Documentation

◆ lldp_add_chassis_id()

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:

◆ lldp_add_mgmt_addr()

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:

◆ lldp_add_pdu_end()

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:

◆ lldp_add_port_desc()

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:

◆ lldp_add_port_id()

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:

◆ lldp_add_sys_name()

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:

◆ lldp_add_tlvs()

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:

◆ lldp_add_ttl()

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:

◆ lldp_build_mgmt_addr_tlv()

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:

◆ 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_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_template_init()

static clib_error_t* lldp_template_init ( vlib_main_t vm)
static

Definition at line 272 of file lldp_output.c.

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

Variable Documentation

◆ lldp_mac_addr

const u8 lldp_mac_addr[6] = { 0x01, 0x80, 0xC2, 0x00, 0x00, 0x0E }

Definition at line 269 of file lldp_output.c.