Configures the SCTP layer with the values contained in the SCT SAP configuration structure.
SCTP_STATUS TXSCTPFUNC SctpSetSctSapCfg ( U8 board, SCTPSctSapCfg *pSctSapCfg)
Argument |
Description |
board |
TX board number on which the desired SCTP layer resides. Valid range is 1 through MAXBOARD (currently 32). |
pSctSapCfg |
Pointer to the SCTPSctSapCfg structure that contains the values to be configured. For information, see SCTPSctSapCfg. |
Return value |
Description |
SCTP_SUCCESS |
|
SCTP_BOARD |
Invalid board number. |
SCTP_DRIVER |
CPI driver error. |
SCTP_HANDLE |
SctpMgmtInit was not called for the specified board. |
SCTP_PARAM |
Invalid parameter. |
SCTP_RESPONSE |
Incorrect response from the board. |
SCTP_TIMEOUT |
No response from the board. |
Call this function after you set the general configuration parameters for the SCTP layer, but before you configure a TSAP.
An application must set the field values in the SCTPSctSapCfg structure before calling SctpSetSctSapCfg. Set the values in any of the following ways:
Call SctpInitSctSapCfg to set the fields to default values, and then pass the SCTPSapCfg structure.
Set each field value from within the application.
Call SctpInitSctSapCfg and then override specific field values before passing the SCTPSapCfg structure.
For more information, see SCTP SCT SAP configuration.