OpenNSL API Guide and Reference Manual
|
Go to the source code of this file.
Typedefs | |
typedef void(* | opennsl_linkscan_handler_t )(int unit, opennsl_port_t port, opennsl_port_info_t *info) |
typedef enum opennsl_linkscan_mode_e | opennsl_linkscan_mode_t |
opennsl_linkscan_mode_e | |
Enumerations | |
enum | opennsl_linkscan_mode_e { OPENNSL_LINKSCAN_MODE_NONE = 0, OPENNSL_LINKSCAN_MODE_SW = 1, OPENNSL_LINKSCAN_MODE_HW = 2, OPENNSL_LINKSCAN_MODE_COUNT = 3 } |
opennsl_linkscan_mode_e More... | |
Functions | |
int | opennsl_linkscan_detach (int unit) LIB_DLL_EXPORTED |
Terminate linkscan on the specified unit. | |
int | opennsl_linkscan_enable_get (int unit, int *us) LIB_DLL_EXPORTED |
Enable and disable link scanning or set the polling interval. | |
int | opennsl_linkscan_enable_set (int unit, int us) LIB_DLL_EXPORTED |
Enable and disable link scanning or set the polling interval. | |
int | opennsl_linkscan_mode_get (int unit, opennsl_port_t port, int *mode) LIB_DLL_EXPORTED |
Get or set the link scanning mode for a port. | |
int | opennsl_linkscan_mode_set (int unit, opennsl_port_t port, int mode) LIB_DLL_EXPORTED |
Get or set the link scanning mode for a port. | |
int | opennsl_linkscan_mode_set_pbm (int unit, opennsl_pbmp_t pbm, int mode) LIB_DLL_EXPORTED |
Get or set the link scanning mode for a port. | |
int | opennsl_linkscan_register (int unit, opennsl_linkscan_handler_t f) LIB_DLL_EXPORTED |
Register and unregister link notification callouts. | |
int | opennsl_linkscan_unregister (int unit, opennsl_linkscan_handler_t f) LIB_DLL_EXPORTED |
Register and unregister link notification callouts. | |