Open Ethernet Networking (OpEN) API Guide and Reference Manual  3.11.1.2
Enumerations | Functions
MAB Configuration And Status [OPENAPI_MAB]

Enumerations

enum  OPEN_AUTHMGR_PORT_MAB_AUTH_TYPE_t { OPEN_AUTHMGR_PORT_MAB_AUTH_TYPE_INVALID = 0, OPEN_AUTHMGR_PORT_MAB_AUTH_TYPE_EAP_MD5 = 1, OPEN_AUTHMGR_PORT_MAB_AUTH_TYPE_PAP = 2, OPEN_AUTHMGR_PORT_MAB_AUTH_TYPE_CHAP = 3 }
 

Functions

open_error_t openapiMabPortMABAuthTypeGet (openapiClientHandle_t *client_handle, uint32_t ifNum, OPEN_AUTHMGR_PORT_MAB_AUTH_TYPE_t *val)
 Gets the authentication host mode for the specified interface. More...
 
open_error_t openapiMabPortMABAuthTypeSet (openapiClientHandle_t *client_handle, uint32_t ifNum, OPEN_AUTHMGR_PORT_MAB_AUTH_TYPE_t val)
 Sets the authentication type to be used by MAB for the specified interface. More...
 
open_error_t openapiMabPortMabEnabledGet (openapiClientHandle_t *client_handle, uint32_t ifNum, OPEN_BOOL_t *mabEnabled)
 Sets the port MAC authentication bypass enable mode. More...
 
open_error_t openapiMabPortMabEnabledSet (openapiClientHandle_t *client_handle, uint32_t ifNum, OPEN_BOOL_t mabEnabled)
 Sets the port MAC authentication bypass enable mode. More...
 
open_error_t openapiMabPortOperationalMabModeGet (openapiClientHandle_t *client_handle, uint32_t ifNum, OPEN_CONTROL_t *mode)
 Gets the port operational MAB mode. More...
 

Detailed Description

Function Documentation

open_error_t openapiMabPortMABAuthTypeGet ( openapiClientHandle_t client_handle,
uint32_t  ifNum,
OPEN_AUTHMGR_PORT_MAB_AUTH_TYPE_t *  val 
)

Gets the authentication host mode for the specified interface.

Parameters
[in]client_handleclient handle from registration API
[in]ifNumInterface ID
[out]valAuthentication type
Return values
OPEN_E_NONEGet successful.
OPEN_E_FAILGet failed.
OPEN_E_PARAMError in parameter passed.
OPEN_E_INTERNALOther internal failure.

OpEN API Version: 1.19

Examples:
mab_example.c.
open_error_t openapiMabPortMABAuthTypeSet ( openapiClientHandle_t client_handle,
uint32_t  ifNum,
OPEN_AUTHMGR_PORT_MAB_AUTH_TYPE_t  val 
)

Sets the authentication type to be used by MAB for the specified interface.

Parameters
[in]client_handleclient handle from registration API
[in]ifNumInterface ID
[in]valAuthentication type
Return values
OPEN_E_NONESet successful.
OPEN_E_FAILSet failed.
OPEN_E_PARAMError in parameter passed.
OPEN_E_INTERNALOther internal failure.

OpEN API Version: 1.19

Examples:
mab_example.c.
open_error_t openapiMabPortMabEnabledGet ( openapiClientHandle_t client_handle,
uint32_t  ifNum,
OPEN_BOOL_t mabEnabled 
)

Sets the port MAC authentication bypass enable mode.

Parameters
[in]client_handleclient handle from registration API
[in]ifNumInterface ID
[out]mabEnabledOPEN_TRUE if MAB enabled, else OPEN_FALSE
Return values
OPEN_E_NONEGet successful.
OPEN_E_FAILGet failed.
OPEN_E_PARAMError in parameter passed.

OpEN API Version: 1.25

Examples:
mab_example.c.
open_error_t openapiMabPortMabEnabledSet ( openapiClientHandle_t client_handle,
uint32_t  ifNum,
OPEN_BOOL_t  mabEnabled 
)

Sets the port MAC authentication bypass enable mode.

Parameters
[in]client_handleclient handle from registration API
[in]ifNumInterface ID
[in]mabEnabledSet to OPEN_TRUE to enable MAB, OPEN_FALSE to disable
Return values
OPEN_E_NONESet successful.
OPEN_E_FAILSet failed.
OPEN_E_PARAMError in parameter passed.

OpEN API Version: 1.25

Examples:
mab_example.c.
open_error_t openapiMabPortOperationalMabModeGet ( openapiClientHandle_t client_handle,
uint32_t  ifNum,
OPEN_CONTROL_t mode 
)

Gets the port operational MAB mode.

Parameters
[in]client_handleclient handle from registration API
[in]ifNumInterface ID
[out]modeMode
Return values
OPEN_E_NONEMode get successful.
OPEN_E_FAILMode get failed.
OPEN_E_PARAMError in parameter passed.

OpEN API Version: 1.25

Examples:
mab_example.c.