LLDP protocol declarations.
More...
Go to the source code of this file.
LLDP protocol declarations.
Definition in file lldp_protocol.h.
◆ F [1/3]
◆ F [2/3]
◆ F [3/3]
◆ foreach_chassis_id_subtype
#define foreach_chassis_id_subtype |
( |
|
F | ) |
|
Value:F (0, reserved,
"Reserved") \
F (1, chassis_comp, "Chassis component") \
F (2, intf_alias, "Interface alias") \
F (3, port_comp, "Port component") \
F (5, net_addr, "Network address") \
F (6, intf_name, "Interface name") \
F (7, local, "Locally assigned")
Definition at line 71 of file lldp_protocol.h.
◆ foreach_lldp_optional_tlv_type
#define foreach_lldp_optional_tlv_type |
( |
|
F | ) |
|
Value:F (4, port_desc,
"Port Description") \
F (5, sys_name, "System name") \
F (6, sys_desc, "System Description") \
F (7, sys_caps, "System Capabilities") \
F (8, mgmt_addr, "Management Address") \
F (127, org_spec, "Organizationally Specific TLV")
Definition at line 26 of file lldp_protocol.h.
◆ foreach_lldp_tlv_type
#define foreach_lldp_tlv_type |
( |
|
F | ) |
|
Value:F (0, pdu_end,
"End of LLDPDU") \
F (1, chassis_id, "Chassis ID") \
F (2, port_id, "Port ID") \
F (3,
ttl,
"Time To Live") \
foreach_lldp_optional_tlv_type (
F)
Definition at line 37 of file lldp_protocol.h.
◆ foreach_port_id_subtype
#define foreach_port_id_subtype |
( |
|
F | ) |
|
Value:F (0, reserved,
"Reserved") \
F (1, intf_alias, "Interface alias") \
F (2, port_comp, "Port component") \
F (4, net_addr, "Network address") \
F (5, intf_name, "Interface name") \
F (6, agent_circuit_id, "Agent circuit ID") \
F (7, local, "Locally assigned")
Definition at line 100 of file lldp_protocol.h.
◆ LLDP_CHASS_ID_SUBTYPE_NAME
#define LLDP_CHASS_ID_SUBTYPE_NAME |
( |
|
t | ) |
LLDP_CHASS_ID_SUBTYPE_##t |
◆ LLDP_MAX_CHASS_ID_LEN
#define LLDP_MAX_CHASS_ID_LEN (255) |
◆ LLDP_MAX_PORT_ID_LEN
#define LLDP_MAX_PORT_ID_LEN (255) |
◆ LLDP_MIN_CHASS_ID_LEN
#define LLDP_MIN_CHASS_ID_LEN (1) |
◆ LLDP_MIN_PORT_ID_LEN
#define LLDP_MIN_PORT_ID_LEN (1) |
◆ LLDP_PORT_ID_SUBTYPE_NAME
#define LLDP_PORT_ID_SUBTYPE_NAME |
( |
|
t | ) |
LLDP_PORT_ID_SUBTYPE_##t |
◆ LLDP_TLV_NAME
#define LLDP_TLV_NAME |
( |
|
t | ) |
LLDP_TLV_##t |
◆ lldp_chassis_id_subtype_t
◆ lldp_port_id_subtype_t
◆ lldp_tlv_code_t
◆ CLIB_PACKED() [1/3]
◆ CLIB_PACKED() [2/3]
◆ CLIB_PACKED() [3/3]
◆ lldp_tlv_get_code()
◆ lldp_tlv_get_length()
u16 lldp_tlv_get_length |
( |
const lldp_tlv_t * |
tlv | ) |
|
◆ lldp_tlv_set_code()
◆ lldp_tlv_set_length()
void lldp_tlv_set_length |
( |
lldp_tlv_t * |
tlv, |
|
|
u16 |
length |
|
) |
| |