| enum nmf_policer_action |
Policer Actions.
Packet policers are used to count and optionally color incoming packets. Counters are "hit" when the associated ACL condition matches.
| enum nmf_policer_attr_id |
Policer Attribute Identifiers.
| enum nmf_policer_color |
| nmf_status_t nmf_policer_add | ( | nmf_client_t | client_id, | |
| int | slot_id, | |||
| nmf_id_t * | policer_id, | |||
| char * | name | |||
| ) |
Add a policer to the switch.
| client_id | The client handle. | |
| slot_id | The slot number. | |
| policer_id | Pointer to nmf_id_t value where id for new policer will be stored. | |
| name | The name of a new counter to create. |
policer_id.
NMF_EEXIST A Policer with the specified name already exists.
| nmf_status_t nmf_policer_attr_get | ( | nmf_client_t | clid, | |
| int | slot, | |||
| nmf_id_t | policer_id, | |||
| enum nmf_policer_attr_id | id, | |||
| union nmf_policer_attr_value * | attr | |||
| ) |
Get a Counter attribute.
| clid | The client handle. | |
| slot | The slot number | |
| name | The name of the counter. | |
| id | The attribute identifier | |
| attr | Pointer to the attribute value |
-NMF_ENOENT Slot or LAG id not found.
| nmf_status_t nmf_policer_attr_set | ( | nmf_client_t | clid, | |
| int | slot, | |||
| nmf_id_t | policer_id, | |||
| enum nmf_policer_attr_id | id, | |||
| union nmf_policer_attr_value * | attr | |||
| ) |
Set the Counter attribute.
| clid | The client handle. | |
| slot | The slot number | |
| name | The name of the counter to modify. | |
| id | The counter attribute to change. | |
| attr | Pointer to the attribute's new value |
-NMF_ENOENT Slot or LAG id not found.
| nmf_status_t nmf_policer_list_get | ( | nmf_client_t | client_id, | |
| int | slot_id, | |||
| nm_bv_t * | policer_list | |||
| ) |
Get the Counter list.
| client_id | The client handle. | |
| slot | The slot number | |
| policer_list | A bit vector to contain the policer ids. |
| nmf_status_t nmf_policer_rem | ( | nmf_client_t | client_id, | |
| int | slot_id, | |||
| nmf_id_t | policer_id | |||
| ) |
Remove a policer from the switch.
| client_id | The client handle. | |
| slot_id | The slot number. | |
| policer_id | The id of the policer to remove. |
NMF_ENOENT The specified policer was not found.
1.5.6