|
Open Ethernet Networking (OpEN) API Guide and Reference Manual
3.11.1.2
|
Macros | |
| #define | OPEN_MACAL_MAX_PRIORITY 64 |
| #define | OPEN_MACAL_MIN_PRIORITY 1 |
| #define | OPEN_MACAL_REQUEST_PRIORITY 0xFFFF |
Functions | |
| open_error_t | openapiMacalActivate (openapiClientHandle_t *client_handle, open_buffdesc *macalName) |
| Activate a management ACAL. More... | |
| open_error_t | openapiMacalActiveListGet (openapiClientHandle_t *client_handle, open_buffdesc *macalName) |
| Get the active management ACAL. More... | |
| open_error_t | openapiMacalClearServicePortStatistics (openapiClientHandle_t *client_handle) |
| Clears macal service port statistics. More... | |
| open_error_t | openapiMacalDeactivate (openapiClientHandle_t *client_handle, open_buffdesc *macalName) |
| Deactivate a management ACAL. More... | |
| open_error_t | openapiMacalDenyCounterIntervalGet (openapiClientHandle_t *client_handle, uint32_t *interval) |
| Get the macal deny counter interval. More... | |
| open_error_t | openapiMacalDenyCounterIntervalSet (openapiClientHandle_t *client_handle, uint32_t interval) |
| Set the macal deny counter interval. More... | |
| open_error_t | openapiMacalIsAnyListActivated (openapiClientHandle_t *client_handle, OPEN_BOOL_t *isActivated) |
| Check if a MACAL list is activated. More... | |
| open_error_t | openapiMacalIsAnyListCreated (openapiClientHandle_t *client_handle, OPEN_BOOL_t *isCreated) |
| Check if a MACAL list is created. More... | |
| open_error_t | openapiMacalIsFieldConfigured (openapiClientHandle_t *client_handle, open_buffdesc *macalName, uint32_t macalRulePrio, OPEN_MACAL_RULE_FIELD_t ruleField, OPEN_BOOL_t *isConfigured) |
| Checks to see if a user has configured a field in a management ACAL rule. More... | |
| open_error_t | openapiMacalIsNetFilterTablesFeatureSupported (openapiClientHandle_t *client_handle, OPEN_BOOL_t *isSupported) |
| Check if the Net Filter table support is present on this platform. More... | |
| open_error_t | openapiMacalListCreate (openapiClientHandle_t *client_handle, open_buffdesc *macalName) |
| To create a new management ACAL. More... | |
| open_error_t | openapiMacalListDelete (openapiClientHandle_t *client_handle, open_buffdesc *macalName) |
| To delete an existing management ACAL. More... | |
| open_error_t | openapiMacalListVrfGet (openapiClientHandle_t *client_handle, open_buffdesc *vrfName) |
| Gets VRF of a management ACAL. More... | |
| open_error_t | openapiMacalListVrfSet (openapiClientHandle_t *client_handle, open_buffdesc *vrfName) |
| Sets VRF of a management ACAL. More... | |
| open_error_t | openapiMacalNameGet (openapiClientHandle_t *client_handle, open_buffdesc *macalName) |
| Get the name of the management ACAL already existing. More... | |
| open_error_t | openapiMacalRuleActionAdd (openapiClientHandle_t *client_handle, open_buffdesc *macalName, uint32_t macalRulePrio, OPEN_MACAL_ACTION_t action) |
| To add an action to management ACAL rule. More... | |
| open_error_t | openapiMacalRuleActionGet (openapiClientHandle_t *client_handle, open_buffdesc *macalName, uint32_t macalRulePrio, OPEN_MACAL_ACTION_t *action) |
| Get the action for a management ACAL rule. More... | |
| open_error_t | openapiMacalRuleEntryAdd (openapiClientHandle_t *client_handle, open_buffdesc *macalName, uint32_t *macalRulePrio) |
| To add a management ACAL rule. More... | |
| open_error_t | openapiMacalRuleExists (openapiClientHandle_t *client_handle, open_buffdesc *macalName, uint32_t macalRulePrio, OPEN_BOOL_t *isIndexExists) |
| Check if this management ACAL rule with given priority exists. More... | |
| open_error_t | openapiMacalRuleFirstGet (openapiClientHandle_t *client_handle, open_buffdesc *macalName, uint32_t *macalRulePrio) |
| Get the first management ACAL rule. More... | |
| open_error_t | openapiMacalRuleInterfaceAdd (openapiClientHandle_t *client_handle, open_buffdesc *macalName, uint32_t macalRulePrio, uint32_t ifNum) |
| To add an interface (ethernet/LAG) to an existing management ACAL rule. More... | |
| open_error_t | openapiMacalRuleInterfaceGet (openapiClientHandle_t *client_handle, open_buffdesc *macalName, uint32_t macalRulePrio, uint32_t *ifNum) |
| Get the interface (ethernet/LAG) of an existing management ACAL rule. More... | |
| open_error_t | openapiMacalRuleIsServicePortSet (openapiClientHandle_t *client_handle, open_buffdesc *macalName, uint32_t macalRulePrio, OPEN_BOOL_t *isRuleForServicePort) |
| Check if this management ACAL rule is for the service port. More... | |
| open_error_t | openapiMacalRuleNextGet (openapiClientHandle_t *client_handle, open_buffdesc *macalName, uint32_t macalRulePrio, uint32_t *nextMacalRulePrio) |
| Get the next management ACAL rule. More... | |
| open_error_t | openapiMacalRulePriorityIndexGet (openapiClientHandle_t *client_handle, open_buffdesc *macalName, uint32_t *macalRulePrio) |
| Get the first available priority (index) for the specified management ACAL. More... | |
| open_error_t | openapiMacalRuleRemove (openapiClientHandle_t *client_handle, open_buffdesc *macalName, uint32_t macalRulePrio) |
| To remove a management rule from an existing ACAL. More... | |
| open_error_t | openapiMacalRuleServiceAdd (openapiClientHandle_t *client_handle, open_buffdesc *macalName, uint32_t macalRulePrio, OPEN_MACAL_SERVICE_t service) |
| To add a service to management ACAL rule. More... | |
| open_error_t | openapiMacalRuleServiceGet (openapiClientHandle_t *client_handle, open_buffdesc *macalName, uint32_t macalRulePrio, OPEN_MACAL_SERVICE_t *service) |
| Get the service of a management ACAL rule. More... | |
| open_error_t | openapiMacalRuleServicePortSet (openapiClientHandle_t *client_handle, open_buffdesc *macalName, uint32_t macalRulePrio, OPEN_BOOL_t isServicePort) |
| To add a serviceport to an existing management ACAL rule. More... | |
| open_error_t | openapiMacalRuleSrcIpMaskAdd (openapiClientHandle_t *client_handle, open_buffdesc *macalName, uint32_t macalRulePrio, uint32_t ipAddr, uint32_t mask) |
| To add the source ip address and net mask to a management ACAL rule. More... | |
| open_error_t | openapiMacalRuleSrcIpMaskGet (openapiClientHandle_t *client_handle, open_buffdesc *macalName, uint32_t macalRulePrio, uint32_t *ipAddr, uint32_t *mask) |
| Get the source ip address and net mask of a management ACAL rule. More... | |
| open_error_t | openapiMacalRuleTcpUdpPortNumberAdd (openapiClientHandle_t *client_handle, open_buffdesc *macalName, uint32_t macalRulePrio, uint32_t portNum) |
| Add the TCP/UDP port number to a management ACAL rule. More... | |
| open_error_t | openapiMacalRuleTcpUdpPortNumberGet (openapiClientHandle_t *client_handle, open_buffdesc *macalName, uint32_t macalRulePrio, uint32_t *portNum) |
| Get the TCP/UDP port number of a management ACAL rule. More... | |
| open_error_t | openapiMacalRuleVlanAdd (openapiClientHandle_t *client_handle, open_buffdesc *macalName, uint32_t macalRulePrio, uint32_t vlanId) |
| To add a vlan to an existing management ACAL rule. More... | |
| open_error_t | openapiMacalRuleVlanGet (openapiClientHandle_t *client_handle, open_buffdesc *macalName, uint32_t macalRulePrio, uint32_t *vlanId) |
| Gets the vlan ID of an existing management ACAL rule. More... | |
| open_error_t | openapiMacalServicePortRuleStatisticsGet (openapiClientHandle_t *client_handle, open_buffdesc *macalName, uint32_t macalRulePrio, uint32_t *packets, uint32_t *bytes) |
| Get the service port statistics for a management ACAL rule. More... | |
| open_error_t | openapiMacalStatsPacketsFilteredGet (openapiClientHandle_t *client_handle, uint32_t *filtPackets) |
| Get the number of packets filtered. More... | |
| open_error_t | openapiMacalVrfNameValid (openapiClientHandle_t *client_handle, open_buffdesc *vrfName, OPEN_BOOL_t *isValid) |
| Checks the specified VRF name is valid or not. More... | |
| open_error_t openapiMacalActivate | ( | openapiClientHandle_t * | client_handle, |
| open_buffdesc * | macalName | ||
| ) |
Activate a management ACAL.
| [in] | client_handle | Client handle from registration API |
| [in] | macalName | MACAL name |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
| OPEN_E_UNAVAIL | Feature not available |
OpEN API Version: 1.25
| open_error_t openapiMacalActiveListGet | ( | openapiClientHandle_t * | client_handle, |
| open_buffdesc * | macalName | ||
| ) |
Get the active management ACAL.
| [in] | client_handle | Client handle from registration API |
| [out] | macalName | Active MACAL name |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
| OPEN_E_UNAVAIL | Feature not available |
OpEN API Version: 1.25
| open_error_t openapiMacalClearServicePortStatistics | ( | openapiClientHandle_t * | client_handle | ) |
Clears macal service port statistics.
| [in] | client_handle | Client handle from registration API |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
| OPEN_E_UNAVAIL | Feature not available |
OpEN API Version: 1.25
| open_error_t openapiMacalDeactivate | ( | openapiClientHandle_t * | client_handle, |
| open_buffdesc * | macalName | ||
| ) |
Deactivate a management ACAL.
| [in] | client_handle | Client handle from registration API |
| [in] | macalName | MACAL name |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
| OPEN_E_UNAVAIL | Feature not available |
OpEN API Version: 1.25
| open_error_t openapiMacalDenyCounterIntervalGet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t * | interval | ||
| ) |
Get the macal deny counter interval.
| [in] | client_handle | Client handle from registration API |
| [out] | interval | Deny counter interval |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
| OPEN_E_UNAVAIL | Feature not available |
OpEN API Version: 1.25
| open_error_t openapiMacalDenyCounterIntervalSet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t | interval | ||
| ) |
Set the macal deny counter interval.
| [in] | client_handle | Client handle from registration API |
| [in] | interval | Deny counter interval |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
| OPEN_E_UNAVAIL | Feature not available |
OpEN API Version: 1.25
| open_error_t openapiMacalIsAnyListActivated | ( | openapiClientHandle_t * | client_handle, |
| OPEN_BOOL_t * | isActivated | ||
| ) |
Check if a MACAL list is activated.
| [in] | client_handle | Client handle from registration API |
| [out] | isActivated | TRUE if the MACAL is activated |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
| OPEN_E_UNAVAIL | Feature not available |
OpEN API Version: 1.25
| open_error_t openapiMacalIsAnyListCreated | ( | openapiClientHandle_t * | client_handle, |
| OPEN_BOOL_t * | isCreated | ||
| ) |
Check if a MACAL list is created.
| [in] | client_handle | Client handle from registration API |
| [out] | isCreated | TRUE if the MACAL is created |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
| OPEN_E_UNAVAIL | Feature not available |
OpEN API Version: 1.25
| open_error_t openapiMacalIsFieldConfigured | ( | openapiClientHandle_t * | client_handle, |
| open_buffdesc * | macalName, | ||
| uint32_t | macalRulePrio, | ||
| OPEN_MACAL_RULE_FIELD_t | ruleField, | ||
| OPEN_BOOL_t * | isConfigured | ||
| ) |
Checks to see if a user has configured a field in a management ACAL rule.
| [in] | client_handle | Client handle from registration API |
| [in] | macalName | MACAL name |
| [in] | macalRulePrio | MACAL rule priority. This is used as the rule index |
| [in] | ruleField | Management ACAL rule field |
| [out] | isConfigured | TRUE if the specified filed is configured |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
| OPEN_E_UNAVAIL | Feature not available |
OpEN API Version: 1.25
| open_error_t openapiMacalIsNetFilterTablesFeatureSupported | ( | openapiClientHandle_t * | client_handle, |
| OPEN_BOOL_t * | isSupported | ||
| ) |
Check if the Net Filter table support is present on this platform.
| [in] | client_handle | Client handle from registration API |
| [out] | isSupported | TRUE if the platform supports net filter table |
| OPEN_E_NONE | On success. |
| OPEN_E_PARAM | Invalid argument. |
| OPEN_E_UNAVAIL | Feature not available |
OpEN API Version: 1.25
| open_error_t openapiMacalListCreate | ( | openapiClientHandle_t * | client_handle, |
| open_buffdesc * | macalName | ||
| ) |
To create a new management ACAL.
| [in] | client_handle | Client handle from registration API |
| [in] | macalName | MACAL name |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
| OPEN_E_UNAVAIL | Feature not available |
OpEN API Version: 1.25
| open_error_t openapiMacalListDelete | ( | openapiClientHandle_t * | client_handle, |
| open_buffdesc * | macalName | ||
| ) |
To delete an existing management ACAL.
| [in] | client_handle | Client handle from registration API |
| [in] | macalName | MACAL name |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
| OPEN_E_UNAVAIL | Feature not available |
OpEN API Version: 1.25
| open_error_t openapiMacalListVrfGet | ( | openapiClientHandle_t * | client_handle, |
| open_buffdesc * | vrfName | ||
| ) |
Gets VRF of a management ACAL.
| [in] | client_handle | Client handle from registration API |
| [in] | vrfName | VRF name |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
| OPEN_E_UNAVAIL | Feature not available |
OpEN API Version: 1.25
| open_error_t openapiMacalListVrfSet | ( | openapiClientHandle_t * | client_handle, |
| open_buffdesc * | vrfName | ||
| ) |
Sets VRF of a management ACAL.
| [in] | client_handle | Client handle from registration API |
| [in] | vrfName | VRF name |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
| OPEN_E_UNAVAIL | Feature not available |
OpEN API Version: 1.25
| open_error_t openapiMacalNameGet | ( | openapiClientHandle_t * | client_handle, |
| open_buffdesc * | macalName | ||
| ) |
Get the name of the management ACAL already existing.
| [in] | client_handle | Client handle from registration API |
| [out] | macalName | MACAL name |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
| OPEN_E_UNAVAIL | Feature not available |
OpEN API Version: 1.25
| open_error_t openapiMacalRuleActionAdd | ( | openapiClientHandle_t * | client_handle, |
| open_buffdesc * | macalName, | ||
| uint32_t | macalRulePrio, | ||
| OPEN_MACAL_ACTION_t | action | ||
| ) |
To add an action to management ACAL rule.
| [in] | client_handle | Client handle from registration API |
| [in] | macalName | MACAL name |
| [in] | macalRulePrio | MACAL rule priority. This is used as the rule index |
| [in] | action | Action (permit/deny) |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
| OPEN_E_UNAVAIL | Feature not available |
OpEN API Version: 1.25
| open_error_t openapiMacalRuleActionGet | ( | openapiClientHandle_t * | client_handle, |
| open_buffdesc * | macalName, | ||
| uint32_t | macalRulePrio, | ||
| OPEN_MACAL_ACTION_t * | action | ||
| ) |
Get the action for a management ACAL rule.
| [in] | client_handle | Client handle from registration API |
| [in] | macalName | MACAL name |
| [in] | macalRulePrio | MACAL rule priority. This is used as the rule index |
| [out] | action | Action (permit/deny) |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
| OPEN_E_UNAVAIL | Feature not available |
OpEN API Version: 1.25
| open_error_t openapiMacalRuleEntryAdd | ( | openapiClientHandle_t * | client_handle, |
| open_buffdesc * | macalName, | ||
| uint32_t * | macalRulePrio | ||
| ) |
To add a management ACAL rule.
| [in] | client_handle | Client handle from registration API |
| [in] | macalName | MACAL name |
| [in,out] | macalRulePrio | MACAL rule priority. This is used as the rule index |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
| OPEN_E_UNAVAIL | Feature not available |
OpEN API Version: 1.25
| open_error_t openapiMacalRuleExists | ( | openapiClientHandle_t * | client_handle, |
| open_buffdesc * | macalName, | ||
| uint32_t | macalRulePrio, | ||
| OPEN_BOOL_t * | isIndexExists | ||
| ) |
Check if this management ACAL rule with given priority exists.
| [in] | client_handle | Client handle from registration API |
| [in] | macalName | MACAL name |
| [in] | macalRulePrio | MACAL rule priority. This is used as the rule index |
| [out] | isIndexExists | TRUE if the rule exists |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
| OPEN_E_UNAVAIL | Feature not available |
OpEN API Version: 1.25
| open_error_t openapiMacalRuleFirstGet | ( | openapiClientHandle_t * | client_handle, |
| open_buffdesc * | macalName, | ||
| uint32_t * | macalRulePrio | ||
| ) |
Get the first management ACAL rule.
| [in] | client_handle | Client handle from registration API |
| [in] | macalName | MACAL name |
| [out] | macalRulePrio | MACAL rule priority. |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
| OPEN_E_UNAVAIL | Feature not available |
OpEN API Version: 1.25
| open_error_t openapiMacalRuleInterfaceAdd | ( | openapiClientHandle_t * | client_handle, |
| open_buffdesc * | macalName, | ||
| uint32_t | macalRulePrio, | ||
| uint32_t | ifNum | ||
| ) |
To add an interface (ethernet/LAG) to an existing management ACAL rule.
| [in] | client_handle | Client handle from registration API |
| [in] | macalName | MACAL name |
| [in] | macalRulePrio | MACAL rule priority. This is used as the rule index |
| [in] | ifNum | Interface number |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
| OPEN_E_UNAVAIL | Feature not available |
OpEN API Version: 1.25
| open_error_t openapiMacalRuleInterfaceGet | ( | openapiClientHandle_t * | client_handle, |
| open_buffdesc * | macalName, | ||
| uint32_t | macalRulePrio, | ||
| uint32_t * | ifNum | ||
| ) |
Get the interface (ethernet/LAG) of an existing management ACAL rule.
| [in] | client_handle | Client handle from registration API |
| [in] | macalName | MACAL name |
| [in] | macalRulePrio | MACAL rule priority. This is used as the rule index |
| [out] | ifNum | Interface number |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
| OPEN_E_UNAVAIL | Feature not available |
OpEN API Version: 1.25
| open_error_t openapiMacalRuleIsServicePortSet | ( | openapiClientHandle_t * | client_handle, |
| open_buffdesc * | macalName, | ||
| uint32_t | macalRulePrio, | ||
| OPEN_BOOL_t * | isRuleForServicePort | ||
| ) |
Check if this management ACAL rule is for the service port.
| [in] | client_handle | Client handle from registration API |
| [in] | macalName | MACAL name |
| [in] | macalRulePrio | MACAL rule priority. This is used as the rule index |
| [out] | isRuleForServicePort | TRUE if the rule is for the service port |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
| OPEN_E_UNAVAIL | Feature not available |
OpEN API Version: 1.25
| open_error_t openapiMacalRuleNextGet | ( | openapiClientHandle_t * | client_handle, |
| open_buffdesc * | macalName, | ||
| uint32_t | macalRulePrio, | ||
| uint32_t * | nextMacalRulePrio | ||
| ) |
Get the next management ACAL rule.
| [in] | client_handle | Client handle from registration API |
| [in] | macalName | MACAL name |
| [in] | macalRulePrio | MACAL rule priority. This is used as index |
| [out] | nextMacalRulePrio | Next MACAL rule index |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
| OPEN_E_UNAVAIL | Feature not available |
OpEN API Version: 1.25
| open_error_t openapiMacalRulePriorityIndexGet | ( | openapiClientHandle_t * | client_handle, |
| open_buffdesc * | macalName, | ||
| uint32_t * | macalRulePrio | ||
| ) |
Get the first available priority (index) for the specified management ACAL.
| [in] | client_handle | Client handle from registration API |
| [in] | macalName | MACAL name |
| [out] | macalRulePrio | MACAL rule priority. This is used as the rule index |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
| OPEN_E_UNAVAIL | Feature not available |
OpEN API Version: 1.25
| open_error_t openapiMacalRuleRemove | ( | openapiClientHandle_t * | client_handle, |
| open_buffdesc * | macalName, | ||
| uint32_t | macalRulePrio | ||
| ) |
To remove a management rule from an existing ACAL.
| [in] | client_handle | Client handle from registration API |
| [in] | macalName | MACAL name |
| [in] | macalRulePrio | MACAL rule priority. This is used as the rule index |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
| OPEN_E_UNAVAIL | Feature not available |
OpEN API Version: 1.25
| open_error_t openapiMacalRuleServiceAdd | ( | openapiClientHandle_t * | client_handle, |
| open_buffdesc * | macalName, | ||
| uint32_t | macalRulePrio, | ||
| OPEN_MACAL_SERVICE_t | service | ||
| ) |
To add a service to management ACAL rule.
| [in] | client_handle | Client handle from registration API |
| [in] | macalName | MACAL name |
| [in] | macalRulePrio | MACAL rule priority. This is used as the rule index |
| [in] | service | The service to be added |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
| OPEN_E_UNAVAIL | Feature not available |
OpEN API Version: 1.25
| open_error_t openapiMacalRuleServiceGet | ( | openapiClientHandle_t * | client_handle, |
| open_buffdesc * | macalName, | ||
| uint32_t | macalRulePrio, | ||
| OPEN_MACAL_SERVICE_t * | service | ||
| ) |
Get the service of a management ACAL rule.
| [in] | client_handle | Client handle from registration API |
| [in] | macalName | MACAL name |
| [in] | macalRulePrio | MACAL rule priority. This is used as the rule index |
| [out] | service | Service like telnet, ssh ...etc |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
| OPEN_E_UNAVAIL | Feature not available |
OpEN API Version: 1.25
| open_error_t openapiMacalRuleServicePortSet | ( | openapiClientHandle_t * | client_handle, |
| open_buffdesc * | macalName, | ||
| uint32_t | macalRulePrio, | ||
| OPEN_BOOL_t | isServicePort | ||
| ) |
To add a serviceport to an existing management ACAL rule.
| [in] | client_handle | Client handle from registration API |
| [in] | macalName | MACAL name |
| [in] | macalRulePrio | MACAL rule priority. This is used as the rule index |
| [in] | isServicePort | TRUE if the rule is for the service port |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
| OPEN_E_UNAVAIL | Feature not available |
OpEN API Version: 1.25
| open_error_t openapiMacalRuleSrcIpMaskAdd | ( | openapiClientHandle_t * | client_handle, |
| open_buffdesc * | macalName, | ||
| uint32_t | macalRulePrio, | ||
| uint32_t | ipAddr, | ||
| uint32_t | mask | ||
| ) |
To add the source ip address and net mask to a management ACAL rule.
| [in] | client_handle | Client handle from registration API |
| [in] | macalName | MACAL name |
| [in] | macalRulePrio | MACAL rule priority. This is used as the rule index |
| [in] | ipAddr | IP address |
| [in] | mask | Net Mask |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
| OPEN_E_UNAVAIL | Feature not available |
OpEN API Version: 1.25
| open_error_t openapiMacalRuleSrcIpMaskGet | ( | openapiClientHandle_t * | client_handle, |
| open_buffdesc * | macalName, | ||
| uint32_t | macalRulePrio, | ||
| uint32_t * | ipAddr, | ||
| uint32_t * | mask | ||
| ) |
Get the source ip address and net mask of a management ACAL rule.
| [in] | client_handle | Client handle from registration API |
| [in] | macalName | MACAL name |
| [in] | macalRulePrio | MACAL rule priority. This is used as the rule index |
| [out] | ipAddr | IP address |
| [out] | mask | Net Mask |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
| OPEN_E_UNAVAIL | Feature not available |
OpEN API Version: 1.25
| open_error_t openapiMacalRuleTcpUdpPortNumberAdd | ( | openapiClientHandle_t * | client_handle, |
| open_buffdesc * | macalName, | ||
| uint32_t | macalRulePrio, | ||
| uint32_t | portNum | ||
| ) |
Add the TCP/UDP port number to a management ACAL rule.
| [in] | client_handle | Client handle from registration API |
| [in] | macalName | MACAL name |
| [in] | macalRulePrio | MACAL rule priority. This is used as the rule index |
| [in] | portNum | TCP/UDP port number |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
| OPEN_E_UNAVAIL | Feature not available |
OpEN API Version: 1.25
| open_error_t openapiMacalRuleTcpUdpPortNumberGet | ( | openapiClientHandle_t * | client_handle, |
| open_buffdesc * | macalName, | ||
| uint32_t | macalRulePrio, | ||
| uint32_t * | portNum | ||
| ) |
Get the TCP/UDP port number of a management ACAL rule.
| [in] | client_handle | Client handle from registration API |
| [in] | macalName | MACAL name |
| [in] | macalRulePrio | MACAL rule priority. This is used as the rule index |
| [out] | portNum | TCP/UDP port number |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
| OPEN_E_UNAVAIL | Feature not available |
OpEN API Version: 1.25
| open_error_t openapiMacalRuleVlanAdd | ( | openapiClientHandle_t * | client_handle, |
| open_buffdesc * | macalName, | ||
| uint32_t | macalRulePrio, | ||
| uint32_t | vlanId | ||
| ) |
To add a vlan to an existing management ACAL rule.
| [in] | client_handle | Client handle from registration API |
| [in] | macalName | MACAL name |
| [in] | macalRulePrio | MACAL rule priority. This is used as the rule index |
| [in] | vlanId | Vlan ID to be added |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
| OPEN_E_UNAVAIL | Feature not available |
OpEN API Version: 1.25
| open_error_t openapiMacalRuleVlanGet | ( | openapiClientHandle_t * | client_handle, |
| open_buffdesc * | macalName, | ||
| uint32_t | macalRulePrio, | ||
| uint32_t * | vlanId | ||
| ) |
Gets the vlan ID of an existing management ACAL rule.
| [in] | client_handle | Client handle from registration API |
| [in] | macalName | MACAL name |
| [in] | macalRulePrio | MACAL rule priority. This is used as the rule index |
| [out] | vlanId | Vlan ID |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
| OPEN_E_UNAVAIL | Feature not available |
OpEN API Version: 1.25
| open_error_t openapiMacalServicePortRuleStatisticsGet | ( | openapiClientHandle_t * | client_handle, |
| open_buffdesc * | macalName, | ||
| uint32_t | macalRulePrio, | ||
| uint32_t * | packets, | ||
| uint32_t * | bytes | ||
| ) |
Get the service port statistics for a management ACAL rule.
| [in] | client_handle | Client handle from registration API |
| [in] | macalName | MACAL name |
| [in] | macalRulePrio | MACAL rule priority. This is used as the rule index |
| [out] | packets | Number of packets |
| [out] | bytes | Number of bytes |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
| OPEN_E_UNAVAIL | Feature not available |
OpEN API Version: 1.25
| open_error_t openapiMacalStatsPacketsFilteredGet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t * | filtPackets | ||
| ) |
Get the number of packets filtered.
| [in] | client_handle | Client handle from registration API |
| [out] | filtPackets | Number of packets filtered by MACAL |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
| OPEN_E_UNAVAIL | Feature not available |
OpEN API Version: 1.25
| open_error_t openapiMacalVrfNameValid | ( | openapiClientHandle_t * | client_handle, |
| open_buffdesc * | vrfName, | ||
| OPEN_BOOL_t * | isValid | ||
| ) |
Checks the specified VRF name is valid or not.
| [in] | client_handle | Client handle from registration API |
| [in] | vrfName | VRF name |
| [out] | isValid | TRUE if the VRF is valid |
| OPEN_E_NONE | On success. |
| OPEN_E_PARAM | Invalid argument. |
| OPEN_E_UNAVAIL | Feature not available |
OpEN API Version: 1.25