Data Structures | |
| struct | nmf_port_attr_state |
| Port State Value. More... | |
| struct | nmf_port_vlan_spec |
| Port-Vlan Specification. More... | |
| union | nmf_port_attr_value |
| Port Attribute Value Types. More... | |
| struct | nmf_port_stats |
| Port Statistics. More... | |
Enumerations | |
| enum | nmf_port_state |
| enum | nmf_port_bist_mode |
| Port State Quailfier for BIST Mode. | |
| enum | nmf_port_tagging_policy { NMF_PORT_VLAN_TAG_ADD_DEFAULT = 1, NMF_PORT_VLAN_TAG_ADD_EMPTY, NMF_PORT_VLAN_TAG_KEEP, NMF_PORT_VLAN_TAG_REPLACE } |
| enum | nmf_port_attr_id |
| Port Attribute Identifiers. More... | |
| enum | nmf_port_security_mode { NMF_PORT_SECURITY_OFF = 1, NMF_PORT_SECURITY_SAV, NMF_PORT_SECURITY_SPV, NMF_PORT_SECURITY_SHV } |
| Port Security Modes. More... | |
| enum | nmf_port_security_action { NMF_PORT_SECURITY_DROP = 1, NMF_PORT_SECURITY_TRAP } |
| Port Security Actions. More... | |
| enum | nmf_port_attr_lane_order |
| Port Lane Ordering Settings. | |
| enum | nmf_port_attr_lane_polarity |
| Port Lane Polarity Settings. | |
| enum | nmf_autoneg |
| Port Autonegotiation Configuration. More... | |
| enum | nmf_autoneg_capabilities |
| Port Autonegotiation Capabilities Masks. | |
| enum | nmf_dot1x_state { NMF_DOT1X_STATE_NOT_ACTIVE = 1, NMF_DOT1X_STATE_AUTH, NMF_DOT1X_STATE_NOT_AUTH } |
| DOT1X Protocol State. More... | |
| enum | nmf_port_capabilities |
| Port Capabilities Mask. | |
| enum | nmf_port_bridging_role |
| Port Bridging Role Setting. | |
Functions | |
| nmf_status_t | nmf_port_attr_set (nmf_client_t clid, int slot, int port, enum nmf_port_attr_id id, union nmf_port_attr_value *value) |
| Set a port attribute. | |
| nmf_status_t | nmf_port_attr_get (nmf_client_t clid, int slot, int port, enum nmf_port_attr_id id, union nmf_port_attr_value *value) |
| Get a port attribute. | |
| nmf_status_t | nmf_port_stats_get (nmf_client_t clid, int slot, int port, struct nmf_port_stats *stats) |
| Get a port's statistics. | |
| nmf_status_t | nmf_port_stats_reset (nmf_client_t clid, int slot, int port) |
| Reset a port's statistic values to zero. | |
| char * | nmf_err_str (nmf_status_t s) |
| Convert a status code of type nmf_status_t to a named string. This is useful for printing errors from API calls. | |
| enum nmf_autoneg |
| enum nmf_dot1x_state |
| enum nmf_port_attr_id |
Port Attribute Identifiers.
TX_PAUSE_BIT_TIMES The number of bit-times that the link partner needs to pause in units of 512 bit-times. The attribute value may range from 0 to 65535. Specify zero to disable PAUSE. The default value is 65535
TX_PAUSE_MODE Determines the PAUSE frame format on transmit as follows: NMF_PORT_RX_PAUSE_CLASS_BASED, NMF_PORT_RX_PAUSE_NORMAL (default).
Port Security Modes.
| enum nmf_port_state |
| char* nmf_err_str | ( | nmf_status_t | s | ) |
Convert a status code of type nmf_status_t to a named string. This is useful for printing errors from API calls.
| s | An NMF status value. |
string A string containing the name of the corresponding status value passed in.
| nmf_status_t nmf_port_attr_get | ( | nmf_client_t | clid, | |
| int | slot, | |||
| int | port, | |||
| enum nmf_port_attr_id | id, | |||
| union nmf_port_attr_value * | value | |||
| ) |
Get a port attribute.
| clid | The client handle. | |
| slot | The slot number | |
| port | The port number. | |
| id | The attribute identifier | |
| value | Pointer to memory containing the attribute value |
| nmf_status_t nmf_port_attr_set | ( | nmf_client_t | clid, | |
| int | slot, | |||
| int | port, | |||
| enum nmf_port_attr_id | id, | |||
| union nmf_port_attr_value * | value | |||
| ) |
Set a port attribute.
| clid | The client handle. | |
| slot | The slot number. | |
| port | The port number. | |
| id | The attribute identifier | |
| value | Pointer to memory containing the attribute value. |
| nmf_status_t nmf_port_stats_get | ( | nmf_client_t | clid, | |
| int | slot, | |||
| int | port, | |||
| struct nmf_port_stats * | stats | |||
| ) |
Get a port's statistics.
| clid | The client handle. | |
| slot | The slot number | |
| port | The port number. | |
| stats | Pointer to structure to receive stats |
| nmf_status_t nmf_port_stats_reset | ( | nmf_client_t | clid, | |
| int | slot, | |||
| int | port | |||
| ) |
Reset a port's statistic values to zero.
| clid | The client handle. | |
| slot | The slot number | |
| port | The port number. |
1.5.6