Go to the documentation of this file.
32 #define TRACE_LEVEL LLDP_TRACE_LEVEL
45 #if (LLDP_SUPPORT == ENABLED)
128 #if (TRACE_LEVEL >= TRACE_LEVEL_VERBOSE)
155 #if (TRACE_LEVEL >= TRACE_LEVEL_VERBOSE)
184 TRACE_VERBOSE(
" OUI = %02" PRIX8
"-%02" PRIX8
"-%02" PRIX8
" (%s)\r\n",
185 orgDefTlv->oui[0], orgDefTlv->oui[1],
186 orgDefTlv->oui[2],
name);
216 orgDefTlv->subtype,
name);
251 static const char_t defaultName[] =
"Unknown";
254 for(i = 0; i < paramListLen; i++)
257 return paramList[i].
name;
error_t lldpGetFirstTlv(LldpDataUnit *lldpdu, LldpTlv *tlv)
Extract the first TLV from an LLDPDU.
@ LLDP_MED_SUBTYPE_EXT_POWER_VIA_MDI
Extended Power-via-MDI.
@ LLDP_MED_SUBTYPE_FIRMWARE_REVISION
Inventory - Firmware Revision.
@ LLDP_TLV_TYPE_SYS_CAP
System Capabilities.
const LldpParamName lldpTlvTypeList[]
IEEE 802.1 LLDP extension.
@ LLDP_DOT3_SUBTYPE_POWER_VIA_MDI
Power Via MDI.
@ LLDP_DOT1_SUBTYPE_PORT_PROTO_VLAN_ID
Port And Protocol VLAN ID.
const LldpParamName lldpPnoSubtypeList[]
@ LLDP_MED_SUBTYPE_MANUFACTURER_NAME
Inventory - Manufacturer Name.
const LldpParamName lldpDot1SubtypeList[]
@ LLDP_MED_SUBTYPE_SOFTWARE_REVISION
Inventory - Software Revision.
void lldpDumpDataUnit(LldpDataUnit *lldpdu)
Dump LLDP data unit.
@ LLDP_TLV_TYPE_MGMT_ADDR
Management Address.
error_t lldpGetNextTlv(LldpDataUnit *lldpdu, LldpTlv *tlv)
Extract the next TLV from an LLDPDU.
@ LLDP_TLV_TYPE_ORG_DEFINED
Organizationally Specific TLVs.
@ LLDP_MED_SUBTYPE_ASSET_ID
Inventory - Asset ID.
@ LLDP_MED_SUBTYPE_MODEL_NAME
Inventory - Model Name.
@ LLDP_PNO_SUBTYPE_ALIAS
Alias.
@ LLDP_DOT1_SUBTYPE_RESERVED
Reserved.
@ LLDP_TLV_TYPE_END_OF_LLDPDU
End Of LLDPDU.
Data logging functions for debugging purpose (LLDP)
@ LLDP_DOT3_SUBTYPE_RESERVED
Reserved.
@ LLDP_PNO_SUBTYPE_MEASURED_DELAY_VALUES
Measured Delay Values.
@ LLDP_MED_SUBTYPE_SERIAL_NUMBER
Inventory - Serial Number.
@ LLDP_DOT1_SUBTYPE_PORT_VLAN_ID
Port VLAN ID.
const LldpParamName lldpDot3SubtypeList[]
@ LLDP_MED_SUBTYPE_LLDP_MED_CAP
LLDP-MED Capabilities.
@ LLDP_MED_SUBTYPE_NETWORK_POLICY
Network Policy.
@ LLDP_MED_SUBTYPE_HARDWARE_REVISION
Inventory - Hardware Revision.
@ LLDP_DOT3_SUBTYPE_MAX_FRAME_SIZE
Maximum Frame Size.
@ LLDP_DOT1_OUI
IEEE 802.1.
const char_t * lldpGetParamName(uint_t value, const LldpParamName *paramList, size_t paramListLen)
Convert a parameter to string representation.
@ LLDP_TLV_TYPE_SYS_NAME
System Name.
@ LLDP_TLV_TYPE_CHASSIS_ID
Chassis ID.
@ LLDP_PNO_SUBTYPE_MRP_PORT_STATUS
MRP Port Status.
@ LLDP_PNO_SUBTYPE_INTERFACE_MAC_ADDR
Interface MAC address.
@ LLDP_PNO_SUBTYPE_PTCP_STATUS
PTCP Status.
@ LLDP_MED_SUBTYPE_RESERVED
Reserved.
@ LLDP_TLV_TYPE_SYS_DESC
System Description.
LLDP-MED extension (LLDP for Media Endpoint Devices)
@ LLDP_DOT3_OUI
IEEE 802.3.
@ LLDP_PNO_SUBTYPE_PORT_STATUS
Port Status.
void lldpDumpTlv(const LldpTlv *tlv)
Dump TLV structure.
@ LLDP_DOT1_SUBTYPE_VLAN_NAME
VLAN Name.
const LldpParamName lldpOuiList[]
@ LLDP_TLV_TYPE_PORT_ID
Port ID.
@ LLDP_MED_SUBTYPE_LOCATION_ID
Location Identification.
@ LLDP_DOT1_SUBTYPE_PROTOCOL_ID
Protocol Identity.
LLDP (Link Layer Discovery Protocol)
@ LLDP_DOT3_SUBTYPE_MAC_PHY_CONFIG_STATUS
MAC/PHY Configuration/Status.
@ LLDP_DOT3_SUBTYPE_LINK_AGGREGATION
Link Aggregation.
const LldpParamName lldpMedSubtypeList[]
@ LLDP_TLV_TYPE_TIME_TO_LIVE
Time To Live.
IEEE 802.3 LLDP extension.
Parameter value/name binding.
@ LLDP_PNO_SUBTYPE_RESERVED
Reserved.
@ LLDP_TLV_TYPE_PORT_DESC
Port Description.
#define TRACE_VERBOSE(...)
#define TRACE_VERBOSE_ARRAY(p, a, n)