38 #ifndef OPENAPI_LLDP_H_INCLUDED
39 #define OPENAPI_LLDP_H_INCLUDED
43 #define OPEN_LLDP_MED_CAP_CAPABILITIES_BITMASK 0x01
44 #define OPEN_LLDP_MED_CAP_NETWORKPOLICY_BITMASK 0x02
45 #define OPEN_LLDP_MED_CAP_LOCATION_BITMASK 0x04
46 #define OPEN_LLDP_MED_CAP_EXT_PSE_BITMASK 0x08
47 #define OPEN_LLDP_MED_CAP_EXT_PD_BITMASK 0x10
48 #define OPEN_LLDP_MED_CAP_INVENTORY_BITMASK 0x20
52 unsigned char bitmap[2];
296 uint32_t *nextIfNum);
317 uint32_t *timeStamp);
950 uint32_t intf, uint32_t remIndex, uint32_t timeStamp,
973 uint32_t intf, uint32_t remIndex, uint32_t timeStamp,
974 uint32_t *deviceClass);
1014 uint32_t intf, uint32_t remIndex, uint32_t timeStamp,
open_error_t openapiLldpIntfLocalDeviceChassisIdGet(openapiClientHandle_t *client_handle, uint32_t ifNum, OPEN_LLDP_CHASSIS_ID_SUBTYPE_t *chassisIdSubtype, open_buffdesc *chassisId)
Gets the LLDP Local Device Chassis Id and Chassis Id Subtype for the specified interface.
open_error_t openapiLldpMedRemoteModelNameGet(openapiClientHandle_t *client_handle, uint32_t intf, uint32_t remIndex, uint32_t timeStamp, open_buffdesc *modelName)
Get the LLDP-MED model name of the remote device.
OPEN_LLDP_IANA_ADDR_FAMILY_t
open_error_t openapiLldpIntfLocalDeviceSystemNameGet(openapiClientHandle_t *client_handle, uint32_t ifNum, open_buffdesc *systemName)
Gets the LLDP Local Device System Name for the specified interface.
OPEN_LLDP_PORT_ID_SUBTYPE_t
OPEN_LLDP_CHASSIS_ID_SUBTYPE_t
open_error_t openapiLldpMedIntfModeSet(openapiClientHandle_t *client_handle, uint32_t intf, OPEN_CONTROL_t mode)
Set LLDP-MED administrative mode on valid LLDP interfaces.
open_error_t openapiLldpMedIntfModeGet(openapiClientHandle_t *client_handle, uint32_t intf, OPEN_CONTROL_t *mode)
Get the interface LLDP-MED administrative mode.
open_error_t openapiLldpIntfRemoteDeviceSysCapSuppGet(openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t remIndex, uint32_t timeStamp, open_buffdesc *sysCapSupp)
Gets the LLDP Remote Device System Capabilities Supported for the specified interface.
open_error_t
OPEN uses these enumerators to indicate the error codes.
open_error_t openapiLldpIntfLocalDevicePortIdGet(openapiClientHandle_t *client_handle, uint32_t ifNum, OPEN_LLDP_PORT_ID_SUBTYPE_t *portIdSubtype, open_buffdesc *portId)
Gets the LLDP Local Device Port Id and Port Id Subtype for the specified interface.
open_error_t openapiLldpIntfLocalDeviceSysCapSuppGet(openapiClientHandle_t *client_handle, uint32_t ifNum, open_buffdesc *sysCapSupp)
Gets the LLDP Local Device System Capabilities Supported for the specified interface.
open_error_t openapiLldpIntfRemoteDeviceMgmtAddressNextGet(openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t remIndex, uint32_t timeStamp, OPEN_LLDP_IANA_ADDR_FAMILY_t *addressFamily, open_buffdesc *address, uint8_t *addrLen)
Gets the LLDP Remote Device next Management Address for the specified interface.
open_error_t openapiLldpMedRemoteDeviceClassGet(openapiClientHandle_t *client_handle, uint32_t intf, uint32_t remIndex, uint32_t timeStamp, uint32_t *deviceClass)
Get the LLDP-MED device class of the remote device.
open_error_t openapiLldpIntfNextGet(openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t *nextIfNum)
Gets the next valid LLDP interface.
open_error_t openapiLldpIntfLocalDevicePortDescGet(openapiClientHandle_t *client_handle, uint32_t ifNum, open_buffdesc *portDesc)
Gets the LLDP Local Device Port Description for the specified interface.
open_error_t openapiLldpIntfRemoteDeviceTTLGet(openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t remIndex, uint32_t timeStamp, uint32_t *ttl)
Gets the LLDP Remote Device TTL for the specified interface.
open_error_t openapiLldpIntfRemoteDeviceSystemNameGet(openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t remIndex, uint32_t timeStamp, open_buffdesc *systemName)
Gets the LLDP Remote Device System Name for the specified interface.
open_error_t openapiLldpIntfLocalDeviceMgmtAddressGet(openapiClientHandle_t *client_handle, uint32_t ifNum, OPEN_LLDP_IANA_ADDR_FAMILY_t *addressFamily, open_buffdesc *address)
Gets the LLDP Local Device Management Address for the specified interface.
open_error_t openapiLldpIntfRemoteDeviceSystemDescGet(openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t remIndex, uint32_t timeStamp, open_buffdesc *systemDesc)
Gets the LLDP Remote Device System Description for the specified interface.
open_error_t openapiLldpIntfLocalDeviceSystemDescGet(openapiClientHandle_t *client_handle, uint32_t ifNum, open_buffdesc *systemDesc)
Gets the LLDP Local Device System Description for the specified interface.
open_error_t openapiLldpMgmtStrLenGet(openapiClientHandle_t *client_handle, uint32_t *strLen)
Gets the LLDP Management string length.
open_error_t openapiLldpIntfNotificationModeSet(openapiClientHandle_t *client_handle, uint32_t ifNum, OPEN_CONTROL_t lldpNotMode)
Sets the LLDP Notification mode for the specified interface.
OPEN_CONTROL_t
OPEN uses these enumerators to indicate enable or disable for a given config or status parameter...
open_error_t openapiLldpIntfRemoteDeviceNextGet(openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t *remIndex, uint32_t *timeStamp)
Gets the next LLDP Remote Device entry for the specified interface.
open_error_t openapiLldpIntfRemoteDeviceSysCapEnabledGet(openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t remIndex, uint32_t timeStamp, open_buffdesc *sysCapEnabled)
Gets the LLDP Remote Device System Capabilities Enabled for the specified interface.
OPEN_BOOL_t
OPEN uses these enumerators to indicate true or false for a given config or status parameter...
open_error_t openapiLldpMedIntfTransmitTlvSet(openapiClientHandle_t *client_handle, uint32_t intf, OPEN_LLDP_MED_CAPABILITIES_t *cap)
Set LLDP-MED TLVs for transmision on valid LLDP interfaces.
open_error_t openapiLldpMedRemoteModelNameSizeGet(openapiClientHandle_t *client_handle, uint32_t *size)
Get the size in bytes for the open_buffdesc used to call openapiLldpMedRemoteModelNameGet().
open_error_t openapiLldpIntfTransmitModeSet(openapiClientHandle_t *client_handle, uint32_t ifNum, OPEN_CONTROL_t lldpTxMode)
Sets LLDP PDU transmit mode on the specified interface.
open_error_t openapiLldpIntfNotificationModeGet(openapiClientHandle_t *client_handle, uint32_t ifNum, OPEN_CONTROL_t *lldpNotMode)
Gets the LLDP Notification mode for the specified interface.
open_error_t openapiLldpIntfTLVTransmitModeGet(openapiClientHandle_t *client_handle, uint32_t ifNum, OPEN_LLDP_TLV_TYPE_t tlvType, OPEN_CONTROL_t *tlvTransmitMode)
Gets the LLDP optional TLVs transmit mode for the specified interface.
open_error_t openapiLldpMedIntfConfigNotificationModeGet(openapiClientHandle_t *client_handle, uint32_t intf, OPEN_BOOL_t *mode)
Get the interface LLDP-MED configuration notification mode.
open_error_t openapiLldpIntfRemoteDevicePortDescGet(openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t remIndex, uint32_t timeStamp, open_buffdesc *portDesc)
Gets the LLDP Remote Device Port Description for the specified interface.
open_error_t openapiLldpIntfRemoteDeviceChassisIdGet(openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t remIndex, uint32_t timeStamp, OPEN_LLDP_CHASSIS_ID_SUBTYPE_t *chassisIdSubtype, open_buffdesc *chassisId)
Gets the LLDP Remote Device Chassis Id and Chassis Id Subtype for the specified interface.
open_error_t openapiLldpIntfReceiveModeSet(openapiClientHandle_t *client_handle, uint32_t ifNum, OPEN_CONTROL_t lldpRxMode)
Sets LLDP PDU reception mode on the specified interface.
open_error_t openapiLldpIntfTransmitModeGet(openapiClientHandle_t *client_handle, uint32_t ifNum, OPEN_CONTROL_t *lldpTxMode)
Gets the LLDP PDU transmit mode for the specified interface.
open_error_t openapiLldpIntfTLVTransmitModeSet(openapiClientHandle_t *client_handle, uint32_t ifNum, OPEN_LLDP_TLV_TYPE_t tlvType, OPEN_CONTROL_t tlvTransmitMode)
Sets the LLDP optional TLVs transmit mode for the specified interface.
open_error_t openapiLldpIntfReceiveModeGet(openapiClientHandle_t *client_handle, uint32_t ifNum, OPEN_CONTROL_t *lldpRxMode)
Gets the LLDP PDU reception mode for the specified interface.
open_error_t openapiLldpMedIntfTransmitTlvGet(openapiClientHandle_t *client_handle, uint32_t intf, OPEN_LLDP_MED_CAPABILITIES_t *cap)
Get the interface LLDP-MED TLVs enabled for transmision.
open_error_t openapiLldpMedIntfConfigNotificationModeSet(openapiClientHandle_t *client_handle, uint32_t intf, OPEN_BOOL_t mode)
Set LLDP-MED configuration notification mode on valid LLDP interfaces.
open_error_t openapiLldpMedRemoteCapabilitiesGet(openapiClientHandle_t *client_handle, uint32_t intf, uint32_t remIndex, uint32_t timeStamp, OPEN_LLDP_MED_CAPABILITIES_t *supportedCapabilities, OPEN_LLDP_MED_CAPABILITIES_t *enabledCapabilities)
Get the LLDP-MED capabilities received from the remote device.
open_error_t openapiLldpIntfLocalDeviceSysCapEnabledGet(openapiClientHandle_t *client_handle, uint32_t ifNum, open_buffdesc *sysCapEnabled)
Gets the LLDP Local Device System Capabilities Enabled for the specified interface.
open_error_t openapiLldpIntfRemoteDevicePortIdGet(openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t remIndex, uint32_t timeStamp, OPEN_LLDP_PORT_ID_SUBTYPE_t *portIdSubtype, open_buffdesc *portId)
Gets the LLDP Remote Device Port Id and Port Id Subtype for the specified interface.