LLDP protocol declarations.
More...
Go to the source code of this file.
LLDP protocol declarations.
Definition in file lldp_protocol.h.
#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 (4, mac_addr,
"MAC address")
\ 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.
#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.
#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")
\ #define foreach_lldp_optional_tlv_type(F)
Definition at line 37 of file lldp_protocol.h.
#define foreach_port_id_subtype |
( |
|
F | ) |
|
Value:F (0, reserved,
"Reserved")
\ F (1, intf_alias,
"Interface alias")
\ F (2, port_comp,
"Port component")
\ F (3, mac_addr,
"MAC address")
\ 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.
#define LLDP_CHASS_ID_SUBTYPE_NAME |
( |
|
t | ) |
LLDP_CHASS_ID_SUBTYPE_##t |
#define LLDP_MAX_CHASS_ID_LEN (255) |
#define LLDP_MAX_PORT_ID_LEN (255) |
#define LLDP_MIN_CHASS_ID_LEN (1) |
#define LLDP_MIN_PORT_ID_LEN (1) |
#define LLDP_PORT_ID_SUBTYPE_NAME |
( |
|
t | ) |
LLDP_PORT_ID_SUBTYPE_##t |
#define LLDP_TLV_NAME |
( |
|
t | ) |
LLDP_TLV_##t |
u16 lldp_tlv_get_length |
( |
const lldp_tlv_t * |
tlv | ) |
|
void lldp_tlv_set_length |
( |
lldp_tlv_t * |
tlv, |
|
|
u16 |
length |
|
) |
| |