FD.io VPP
v19.01.3-6-g70449b9b9
Vector Packet Processing
|
LLDP protocol declarations. More...
Go to the source code of this file.
Data Structures | |
struct | lldp_tlv_head |
Macros | |
#define | foreach_lldp_optional_tlv_type(F) |
#define | foreach_lldp_tlv_type(F) |
#define | LLDP_TLV_NAME(t) LLDP_TLV_##t |
#define | F(n, t, s) LLDP_TLV_NAME (t) = n, |
#define | foreach_chassis_id_subtype(F) |
#define | LLDP_CHASS_ID_SUBTYPE_NAME(t) LLDP_CHASS_ID_SUBTYPE_##t |
#define | LLDP_MIN_CHASS_ID_LEN (1) |
#define | LLDP_MAX_CHASS_ID_LEN (255) |
#define | F(n, t, s) LLDP_CHASS_ID_SUBTYPE_NAME (t) = n, |
#define | foreach_port_id_subtype(F) |
#define | LLDP_PORT_ID_SUBTYPE_NAME(t) LLDP_PORT_ID_SUBTYPE_##t |
#define | LLDP_MIN_PORT_ID_LEN (1) |
#define | LLDP_MAX_PORT_ID_LEN (255) |
#define | F(n, t, s) LLDP_PORT_ID_SUBTYPE_NAME (t) = n, |
Enumerations | |
enum | lldp_tlv_code_t { foreach_lldp_tlv_type =(F) } |
enum | lldp_chassis_id_subtype_t { foreach_chassis_id_subtype =(F) } |
enum | lldp_port_id_subtype_t { foreach_port_id_subtype =(F) } |
Functions | |
typedef | CLIB_PACKED (struct { struct lldp_tlv_head head;u8 v[0];}) lldp_tlv_t |
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) |
typedef | CLIB_PACKED (struct { struct lldp_tlv_head head;u8 subtype;u8 id[0];}) lldp_chassis_id_tlv_t |
typedef | CLIB_PACKED (struct { struct lldp_tlv_head head;u16 ttl;}) lldp_ttl_tlv_t |
LLDP protocol declarations.
Definition in file lldp_protocol.h.
#define F | ( | n, | |
t, | |||
s | |||
) | LLDP_TLV_NAME (t) = n, |
Definition at line 116 of file lldp_protocol.h.
#define F | ( | n, | |
t, | |||
s | |||
) | LLDP_CHASS_ID_SUBTYPE_NAME (t) = n, |
Definition at line 116 of file lldp_protocol.h.
#define F | ( | n, | |
t, | |||
s | |||
) | LLDP_PORT_ID_SUBTYPE_NAME (t) = n, |
Definition at line 116 of file lldp_protocol.h.
#define foreach_chassis_id_subtype | ( | F | ) |
Definition at line 71 of file lldp_protocol.h.
#define foreach_lldp_optional_tlv_type | ( | F | ) |
Definition at line 26 of file lldp_protocol.h.
#define foreach_lldp_tlv_type | ( | F | ) |
Definition at line 37 of file lldp_protocol.h.
#define foreach_port_id_subtype | ( | F | ) |
Definition at line 100 of file lldp_protocol.h.
#define LLDP_CHASS_ID_SUBTYPE_NAME | ( | t | ) | LLDP_CHASS_ID_SUBTYPE_##t |
Definition at line 81 of file lldp_protocol.h.
#define LLDP_MAX_CHASS_ID_LEN (255) |
Definition at line 83 of file lldp_protocol.h.
#define LLDP_MAX_PORT_ID_LEN (255) |
Definition at line 112 of file lldp_protocol.h.
#define LLDP_MIN_CHASS_ID_LEN (1) |
Definition at line 82 of file lldp_protocol.h.
#define LLDP_MIN_PORT_ID_LEN (1) |
Definition at line 111 of file lldp_protocol.h.
#define LLDP_PORT_ID_SUBTYPE_NAME | ( | t | ) | LLDP_PORT_ID_SUBTYPE_##t |
Definition at line 110 of file lldp_protocol.h.
#define LLDP_TLV_NAME | ( | t | ) | LLDP_TLV_##t |
Definition at line 44 of file lldp_protocol.h.
Enumerator | |
---|---|
foreach_chassis_id_subtype |
Definition at line 85 of file lldp_protocol.h.
Enumerator | |
---|---|
foreach_port_id_subtype |
Definition at line 114 of file lldp_protocol.h.
enum lldp_tlv_code_t |
Enumerator | |
---|---|
foreach_lldp_tlv_type |
Definition at line 46 of file lldp_protocol.h.
typedef CLIB_PACKED | ( | struct { struct lldp_tlv_head head;u8 v[0];} | ) |
typedef CLIB_PACKED | ( | struct { struct lldp_tlv_head head;u8 subtype;u8 id[0];} | ) |
typedef CLIB_PACKED | ( | struct { struct lldp_tlv_head head;u16 ttl;} | ) |
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 | ||
) |