38 #ifndef OPENAPI_LOOP_PROTECT_H_INCLUDED
39 #define OPENAPI_LOOP_PROTECT_H_INCLUDED
45 OPEN_LOOP_PROTECT_ACTION_LOGMSG = 0,
46 OPEN_LOOP_PROTECT_ACTION_SHUTDOWN,
47 OPEN_LOOP_PROTECT_ACTION_LOGMSG_SHUTDOWN
48 } OPEN_LOOP_PROTECT_PORT_ACTION_t;
297 OPEN_LOOP_PROTECT_PORT_ACTION_t mode);
317 OPEN_LOOP_PROTECT_PORT_ACTION_t *mode);
339 uint32_t ifNum, uint32_t tpid,
361 uint32_t ifNum, uint32_t *tpid,
416 uint32_t *loopCount);
497 uint32_t ifNum, uint32_t *count);
516 uint32_t ifNum, uint32_t *count);
572 uint32_t ifNum, uint32_t *nextIfNum);
open_error_t openapiLoopProtectPortloopDetectCountGet(openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t *loopCount)
Gets the loop Count for the specified interface.
open_error_t openapiLoopProtectPortPacketRxCountGet(openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t *count)
Gets the receive loop count for the specified interface.
open_error_t openapiLoopProtectPortAdminModeGet(openapiClientHandle_t *client_handle, uint32_t ifNum, OPEN_CONTROL_t *mode)
Gets the loop protection admin mode for the interface.
open_error_t openapiLoopProtectPortTxModeSet(openapiClientHandle_t *client_handle, uint32_t ifNum, OPEN_CONTROL_t mode)
Sets the transmission mode for the LoopProtection PDU's.
open_error_t openapiLoopProtectDisableTimerGet(openapiClientHandle_t *client_handle, uint32_t *val)
Gets the disable duration for the port.
open_error_t openapiLoopProtectPortPacketTxCountGet(openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t *count)
Gets the transmit loop count for the specified interface.
open_error_t openapiLoopProtectValidIntfFirstGet(openapiClientHandle_t *client_handle, uint32_t *ifNum)
Gets the first interface that is valid for loop protection.
open_error_t
OPEN uses these enumerators to indicate the error codes.
open_error_t openapiLoopProtectMaxPduReceiveSet(openapiClientHandle_t *client_handle, uint32_t val)
Sets the maximum number of PDU's to be received on a port before action is taken. ...
open_error_t openapiLoopProtectIsPortDisabled(openapiClientHandle_t *client_handle, uint32_t ifNum, OPEN_BOOL_t *status)
Gets the port status.
open_error_t openapiLoopProtectMaxPduReceiveGet(openapiClientHandle_t *client_handle, uint32_t *val)
Gets the maximum number of PDU's to be received on a port before action is taken. ...
open_error_t openapiLoopProtectTxTimerGet(openapiClientHandle_t *client_handle, uint32_t *timerVal)
Gets the transmission timer for the LoopProtection PDU's.
open_error_t openapiLoopProtectTxTimerSet(openapiClientHandle_t *client_handle, uint32_t timerVal)
Sets the transmission timer for the LoopProtection PDU's.
open_error_t openapiLoopProtectAdminModeSet(openapiClientHandle_t *client_handle, OPEN_CONTROL_t adminMode)
Sets the LoopProtection global mode.
open_error_t openapiLoopProtectAllStatsClear(openapiClientHandle_t *client_handle)
Clears the statistics for all interfaces.
open_error_t openapiLoopProtectPortAdminModeSet(openapiClientHandle_t *client_handle, uint32_t ifNum, OPEN_CONTROL_t mode)
Sets the loop protection admin mode for the interface.
open_error_t openapiLoopProtectPortVlanPropertiesSet(openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t tpid, uint32_t vlanId)
Sets the VLAN ID and the TPID to be used for detecting a loop on the specified interface.
open_error_t openapiLoopProtectDisableTimerSet(openapiClientHandle_t *client_handle, uint32_t val)
Sets the disable duration for the port.
OPEN_CONTROL_t
OPEN uses these enumerators to indicate enable or disable for a given config or status parameter...
open_error_t openapiLoopProtectAdminModeGet(openapiClientHandle_t *client_handle, OPEN_CONTROL_t *adminMode)
Gets the LoopProtection global mode.
open_error_t openapiLoopProtectPortVlanPropertiesGet(openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t *tpid, uint32_t *vlanId)
Gets the VLAN ID and the TPID used for detecting a loop on 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 openapiLoopProtectPortStatsClear(openapiClientHandle_t *client_handle, uint32_t ifNum)
Clears statistics of the specified interface.
open_error_t openapiLoopProtectValidIntfNextGet(openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t *nextIfNum)
Gets the next interface that is valid for loop protection.
open_error_t openapiLoopProtectPortTimeSinceLastLoopGet(openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t *timeVal, OPEN_BOOL_t needUtc)
Gets the time since last loop occured for the specified interface.
open_error_t openapiLoopProtectPortTxModeGet(openapiClientHandle_t *client_handle, uint32_t ifNum, OPEN_CONTROL_t *mode)
Gets the transmission timer Mode for the LoopProtection PDU's.
open_error_t openapiLoopProtectIsLoopDetected(openapiClientHandle_t *client_handle, uint32_t ifNum, OPEN_BOOL_t *status)
Gets the status of loop on the specified interface.
open_error_t openapiLoopProtectPortActionGet(openapiClientHandle_t *client_handle, uint32_t ifNum, OPEN_LOOP_PROTECT_PORT_ACTION_t *mode)
Gets the port action for the the specified interface.
open_error_t openapiLoopProtectIsValidIntf(openapiClientHandle_t *client_handle, uint32_t ifNum, OPEN_BOOL_t *status)
Gets the status of an interface whether port is valid for configuration for loop protection.
open_error_t openapiLoopProtectPortActionSet(openapiClientHandle_t *client_handle, uint32_t ifNum, OPEN_LOOP_PROTECT_PORT_ACTION_t mode)
Sets the port action for the the specified interface.