FD.io VPP
v17.07-30-g839fa73
Vector Packet Processing
|
LLDP packet parsing implementation. More...
Go to the source code of this file.
Data Structures | |
struct | lldp_intf_update_t |
Macros | |
#define | TLV_VIOLATES_PKT_BOUNDARY(pkt, tlv) |
#define | F(num, type, str) |
Functions | |
static void | lldp_rpc_update_peer_cb (const lldp_intf_update_t *a) |
static void | lldp_rpc_update_peer (u32 hw_if_index, const u8 *chid, u8 chid_len, u8 chid_subtype, const u8 *portid, u8 portid_len, u8 portid_subtype, u16 ttl) |
lldp_tlv_code_t | lldp_tlv_get_code (const lldp_tlv_t *tlv) |
void | lldp_tlv_set_code (lldp_tlv_t *tlv, lldp_tlv_code_t code) |
u16 | lldp_tlv_get_length (const lldp_tlv_t *tlv) |
void | lldp_tlv_set_length (lldp_tlv_t *tlv, u16 length) |
static int | lldp_packet_scan (u32 hw_if_index, const lldp_tlv_t *pkt) |
lldp_intf_t * | lldp_get_intf (lldp_main_t *lm, u32 hw_if_index) |
lldp_intf_t * | lldp_create_intf (lldp_main_t *lm, u32 hw_if_index) |
lldp_error_t | lldp_input (vlib_main_t *vm, vlib_buffer_t *b0, u32 bi0) |
static clib_error_t * | lldp_init (vlib_main_t *vm) |
Variables | |
lldp_main_t | lldp_main |
LLDP packet parsing implementation.
Definition in file lldp_input.c.
#define F | ( | num, | |
type, | |||
str | |||
) |
#define TLV_VIOLATES_PKT_BOUNDARY | ( | pkt, | |
tlv | |||
) |
lldp_intf_t* lldp_create_intf | ( | lldp_main_t * | lm, |
u32 | hw_if_index | ||
) |
lldp_intf_t* lldp_get_intf | ( | lldp_main_t * | lm, |
u32 | hw_if_index | ||
) |
|
static |
lldp_error_t lldp_input | ( | vlib_main_t * | vm, |
vlib_buffer_t * | b0, | ||
u32 | bi0 | ||
) |
Definition at line 249 of file lldp_input.c.
|
static |
Definition at line 120 of file lldp_input.c.
|
static |
Definition at line 66 of file lldp_input.c.
|
static |
Definition at line 36 of file lldp_input.c.
lldp_tlv_code_t lldp_tlv_get_code | ( | const lldp_tlv_t * | tlv | ) |
u16 lldp_tlv_get_length | ( | const lldp_tlv_t * | tlv | ) |
void lldp_tlv_set_code | ( | lldp_tlv_t * | tlv, |
lldp_tlv_code_t | code | ||
) |
void lldp_tlv_set_length | ( | lldp_tlv_t * | tlv, |
u16 | length | ||
) |
lldp_main_t lldp_main |
Definition at line 117 of file lldp_input.c.