LLDP packet generation implementation.
More...
Go to the source code of this file.
|
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_t * | lldp_template_init (vlib_main_t *vm) |
|
LLDP packet generation implementation.
Definition in file lldp_output.c.
◆ lldp_add_chassis_id()
◆ lldp_add_mgmt_addr()
◆ lldp_add_pdu_end()
static void lldp_add_pdu_end |
( |
u8 ** |
t0p | ) |
|
|
static |
◆ lldp_add_port_desc()
◆ lldp_add_port_id()
◆ lldp_add_sys_name()
static void lldp_add_sys_name |
( |
const lldp_main_t * |
lm, |
|
|
u8 ** |
t0p |
|
) |
| |
|
static |
◆ lldp_add_tlvs()
◆ lldp_add_ttl()
static void lldp_add_ttl |
( |
const lldp_main_t * |
lm, |
|
|
u8 ** |
t0p, |
|
|
int |
shutdown |
|
) |
| |
|
static |
◆ 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 |
◆ lldp_delete_intf()
◆ lldp_send_ethernet()
◆ lldp_template_init()
◆ lldp_mac_addr
const u8 lldp_mac_addr[6] = { 0x01, 0x80, 0xC2, 0x00, 0x00, 0x0E } |