Go to the documentation of this file.
31 #ifndef _LLDP_EXT_MED_H
32 #define _LLDP_EXT_MED_H
39 #define LLDP_MED_MIN_INVENTORY_STRING_LEN 0
41 #define LLDP_MED_MAX_INVENTORY_STRING_LEN 32
174 #if defined(__CCRX__)
176 #elif defined(__CWCC__) || defined(_WIN32)
177 #pragma pack(push, 1)
187 uint16_t capabilities;
198 #if defined(_CPU_BIG_ENDIAN) && !defined(__ICCRX__)
228 uint8_t locationDataFormat;
239 #if defined(_CPU_BIG_ENDIAN) && !defined(__ICCRX__)
242 uint8_t powerPriority : 4;
245 uint8_t powerPriority : 4;
254 #if defined(__CCRX__)
256 #elif defined(__CWCC__) || defined(_WIN32)
266 uint16_t vlanId, uint8_t l2Priority, uint8_t
dscpValue);
270 const void *
locationId,
size_t locationIdLen);
277 const char_t *hardwareRevision);
280 const char_t *firmwareRevision);
283 const char_t *softwareRevision);
286 const char_t *serialNumber);
289 const char_t *manufacturerName);
@ LLDP_MED_SUBTYPE_EXT_POWER_VIA_MDI
Extended Power-via-MDI.
@ LLDP_MED_CAP_INVENTORY
Inventory.
error_t lldpMedSetLocalManufacturerName(LldpAgentContext *context, const char_t *manufacturerName)
Set manufacturer name.
@ LLDP_MED_SUBTYPE_FIRMWARE_REVISION
Inventory - Firmware Revision.
@ LLDP_MED_PD_POWER_SOURCE_UNKNOWN
Unknown (PD device type)
@ LLDP_MED_PSE_POWER_SOURCE_UNKNOWN
Unknown (PSE device type)
@ LLDP_MED_APP_TYPE_STREAMING_VIDEO
Streaming Video.
@ LLDP_MED_POWER_TYPE_PSE_DEVICE
PSE Device.
@ LLDP_MED_SUBTYPE_MANUFACTURER_NAME
Inventory - Manufacturer Name.
error_t lldpMedSetLocalNetworkPolicy(LldpAgentContext *context, uint_t portIndex, LldpMedAppType appType, bool_t u, bool_t t, uint16_t vlanId, uint8_t l2Priority, uint8_t dscpValue)
Set network policy.
@ LLDP_MED_SUBTYPE_SOFTWARE_REVISION
Inventory - Software Revision.
error_t lldpMedSetLocalSoftwareRevision(LldpAgentContext *context, const char_t *softwareRevision)
Set software revision.
@ LLDP_MED_DEVICE_TYPE_ENDPOINT_CLASS_1
Endpoint class I.
LldpMedLocationDataFormat
Location data format.
@ LLDP_MED_APP_TYPE_SOFTPHONE_VOICE
Softphone Voice.
@ LLDP_MED_PD_POWER_SOURCE_PSE_AND_LOCAL
PSE and local (PD device type)
@ LLDP_MED_SUBTYPE_ASSET_ID
Inventory - Asset ID.
@ LLDP_MED_SUBTYPE_MODEL_NAME
Inventory - Model Name.
@ LLDP_MED_LOCATION_DATA_FORMAT_CIVIC_ADDR_LCI
Civic Address LCI.
@ LLDP_MED_CAP
LLDP-MED capabilities.
error_t lldpMedSetLocalHardwareRevision(LldpAgentContext *context, const char_t *hardwareRevision)
Set hardware revision.
@ LLDP_MED_APP_TYPE_VOICE_SIGNALING
Voice signaling.
error_t lldpMedSetLocalCap(LldpAgentContext *context, uint16_t capabilities, LldpMedDeviceType deviceType)
Set LLDP-MED capabilities.
@ LLDP_MED_APP_TYPE_RESERVED
Reserved.
@ LLDP_MED_APP_TYPE_VOICE
Voice.
LldpMedPowerSource
Power source.
@ LLDP_MED_LOCATION_DATA_FORMAT_COORD_BASED_LCI
Coordinate-based LCI.
@ LLDP_MED_DEVICE_TYPE_ENDPOINT_CLASS_2
Endpoint class II.
error_t lldpMedSetLocalAssetId(LldpAgentContext *context, const char_t *assetId)
Set asset identifier.
@ LLDP_MED_DEVICE_TYPE_ENDPOINT_CLASS_3
Endpoint class III.
@ LLDP_MED_SUBTYPE_SERIAL_NUMBER
Inventory - Serial Number.
@ LLDP_MED_SUBTYPE_LLDP_MED_CAP
LLDP-MED Capabilities.
@ LLDP_MED_POWER_TYPE_PD_DEVICE
PD Device.
@ LLDP_MED_SUBTYPE_NETWORK_POLICY
Network Policy.
@ LLDP_MED_SUBTYPE_HARDWARE_REVISION
Inventory - Hardware Revision.
@ LLDP_MED_APP_TYPE_GUEST_VOICE_SIGNALING
Guest Voice Signaling.
@ LLDP_MED_POWER_TYPE_RESERVED_2
Reserved.
LldpMedDeviceType
LLDP-MED device type.
error_t lldpMedSetLocalModelName(LldpAgentContext *context, const char_t *modelName)
Set model name.
LldpMedCap
LLDP-MED capabilities.
@ LLDP_MED_PSE_POWER_SOURCE_BACKUP
Backup Power Source (PSE device type)
error_t lldpMedSetLocalFirmwareRevision(LldpAgentContext *context, const char_t *firmwareRevision)
Set firmware revision.
error_t lldpMedDeleteLocalTlv(LldpAgentContext *context, LldpMedSubtype subtype)
Remove all LLDP-MED specific TLVs with specified subtype.
@ LLDP_MED_CAP_LOCATION
Location identification.
@ LLDP_MED_PD_POWER_SOURCE_PSE
PSE (PD device type)
@ LLDP_MED_CAP_EXTENDED_PD
Extended power via MDI - PD.
@ LLDP_MED_LOCATION_DATA_FORMAT_INVALID
Invalid.
error_t lldpMedSetLocalSerialNumber(LldpAgentContext *context, const char_t *serialNumber)
Set serial number.
@ LLDP_MED_LOCATION_DATA_FORMAT_ECS_ELIN
ECS ELIN.
@ LLDP_MED_CAP_EXTENDED_PSE
Extended power via MDI - PSE.
@ LLDP_MED_DEVICE_TYPE_NETWORK_CONNECTIVITY
Network connectivity.
@ LLDP_MED_SUBTYPE_RESERVED
Reserved.
@ LLDP_MED_DEVICE_TYPE_NOT_DEFINED
Type not defined.
@ LLDP_MED_APP_TYPE_VIDEO_SIGNALING
Video signaling.
@ LLDP_MED_APP_TYPE_VIDEO_CONFERENCING
Video Conferencing.
@ LLDP_MED_POWER_PRIORITY_UNKNOWN
Unknown.
LldpMedAppType
Application type.
@ LLDP_MED_POWER_PRIORITY_CRITICAL
Critical.
error_t lldpMedSetLocalLocationId(LldpAgentContext *context, uint_t portIndex, LldpMedLocationDataFormat locationDataFormat, const void *locationId, size_t locationIdLen)
Set location identification.
LldpMedPowerType
Power type.
error_t lldpMedSetLocalExtPowerViaMdi(LldpAgentContext *context, uint_t portIndex, LldpMedPowerType powerType, LldpMedPowerSource powerSource, LldpMedPowerPriority powerPriority, uint16_t powerValue)
Set extended power-via-MDI.
@ LLDP_MED_APP_TYPE_GUEST_VOICE
Guest Voice.
typedef __packed_struct
LLDP-MED Capabilities TLV.
@ LLDP_MED_PD_POWER_SOURCE_LOCAL
Local (PD device type)
@ LLDP_MED_SUBTYPE_LOCATION_ID
Location Identification.
@ LLDP_MED_PSE_POWER_SOURCE_RESERVED
Reserved (PSE device type)
LldpMedPowerPriority
Power priority.
LLDP (Link Layer Discovery Protocol)
@ LLDP_MED_CAP_NETWORK_POLICY
Network policy.
@ LLDP_MED_POWER_PRIORITY_LOW
Low.
@ LLDP_MED_PSE_POWER_SOURCE_PRIMARY
Primary Power Source (PSE device type)
LldpMedSubtype
LLDP-MED subtypes.
@ LLDP_MED_POWER_PRIORITY_HIGH
High.
@ LLDP_MED_POWER_TYPE_RESERVED_1
Reserved.