Open Ethernet Networking (OpEN) API Guide and Reference Manual  3.6.0.3
Enumerations | Functions
openapi_storm_control.h File Reference
#include "openapi_common.h"

Go to the source code of this file.

Enumerations

enum  OPEN_POLICY_PORT_ACTION_t { OPEN_POLICY_PORT_ACTION_NONE = 0, OPEN_POLICY_PORT_ACTION_SHUTDOWN = 1, OPEN_POLICY_PORT_ACTION_RATELIMIT = 2, OPEN_POLICY_PORT_ACTION_TRAP = 3 }
 OpEN uses this enumeration to define Storm Control actions. More...
 
enum  OPEN_STORM_CTRL_MODE_t { OPEN_STORM_CTRL_MODE_NONE = 0, OPEN_STORM_CTRL_MODE_UNICAST = 1, OPEN_STORM_CTRL_MODE_BROADCAST = 2, OPEN_STORM_CTRL_MODE_MULTICAST = 3 }
 OpEN uses this enumeration to define Storm Control modes. More...
 

Functions

open_error_t openapiStormControlActionGet (openapiClientHandle_t *client_handle, OPEN_STORM_CTRL_MODE_t stormCtrlMode, OPEN_POLICY_PORT_ACTION_t *action)
 Get the global storm control action. More...
 
open_error_t openapiStormControlActionSet (openapiClientHandle_t *client_handle, OPEN_STORM_CTRL_MODE_t stormCtrlMode, OPEN_POLICY_PORT_ACTION_t action)
 Set the storm control action globally and on all the interfaces. More...
 
open_error_t openapiStormControlIntfModeGet (openapiClientHandle_t *client_handle, OPEN_STORM_CTRL_MODE_t stormCtrlMode, uint32_t interface, OPEN_CONTROL_t *state)
 Get the state of storm control mode on an interface. More...
 
open_error_t openapiStormControlIntfModeSet (openapiClientHandle_t *client_handle, OPEN_STORM_CTRL_MODE_t stormCtrlMode, uint32_t interface, OPEN_CONTROL_t state)
 Set the state of storm control mode on an interface. More...
 
open_error_t openapiStormControlIntfThresholdDefaultSet (openapiClientHandle_t *client_handle, OPEN_STORM_CTRL_MODE_t stormCtrlMode, uint32_t interface)
 Set the storm control threshold value and rate unit to default on an interface. More...
 
open_error_t openapiStormControlIntfThresholdGet (openapiClientHandle_t *client_handle, OPEN_STORM_CTRL_MODE_t stormCtrlMode, uint32_t interface, OPEN_RATE_UNIT_t *rateUnit, uint32_t *threshold)
 Get the storm control threshold on an interface. More...
 
open_error_t openapiStormControlIntfThresholdSet (openapiClientHandle_t *client_handle, OPEN_STORM_CTRL_MODE_t stormCtrlMode, uint32_t interface, OPEN_RATE_UNIT_t rateUnit, uint32_t threshold)
 Set the storm control mode and threshold on an interface. More...
 
open_error_t openapiStormControlModeGet (openapiClientHandle_t *client_handle, OPEN_STORM_CTRL_MODE_t stormCtrlMode, OPEN_CONTROL_t *state)
 Get the state of global storm control mode. More...
 
open_error_t openapiStormControlModeSet (openapiClientHandle_t *client_handle, OPEN_STORM_CTRL_MODE_t stormCtrlMode, OPEN_CONTROL_t state)
 Set the state of storm control mode globally and on all the interfaces. More...
 
open_error_t openapiStormControlThresholdDefaultSet (openapiClientHandle_t *client_handle, OPEN_STORM_CTRL_MODE_t stormCtrlMode)
 Set the storm control threshold and rate unit on all the interfaces to default values. More...
 
open_error_t openapiStormControlThresholdGet (openapiClientHandle_t *client_handle, OPEN_STORM_CTRL_MODE_t stormCtrlMode, OPEN_RATE_UNIT_t *rateUnit, uint32_t *threshold)
 Get the global storm control threshold value and rate unit. More...
 
open_error_t openapiStormControlThresholdMinMaxGet (openapiClientHandle_t *client_handle, OPEN_RATE_UNIT_t rateUnit, uint32_t *minThreshold, uint32_t *maxThreshold)
 Get the storm control minimum and maximum threshold values based on the rate. More...
 
open_error_t openapiStormControlThresholdSet (openapiClientHandle_t *client_handle, OPEN_STORM_CTRL_MODE_t stormCtrlMode, OPEN_RATE_UNIT_t rateUnit, uint32_t threshold)
 Set the storm control threshold and rate unit on all the interfaces. More...