Dependent functions: SctpGetGenCfg, SctpInitGenCfg, SctpSetGenCfg
The following SCTPGenCfg structure contains general SCTP configuration parameters. Bold text indicates fields you can set. Unbolded fields are either unused or for internal use only. They are set to correct values by SctpInitGenCfg and must not be overridden.
typedef struct _sctpGenCfg /* SCTP General Configuration */
{
U8 serviceType; /* TUCL transport protocol (IP/UDP) */
U16 spare2; /* alignment */
U16 maxNmbSctSaps; /* max no. SCT SAPS */
U16 maxNmbTSaps; /* max no. Transport SAPS */
U16 maxNmbEndp; /* max no. endpoints */
U16 maxNmbAssoc; /* max no. associations */
U16 maxNmbDstAddr; /* max no. dest. addresses */
U16 maxNmbSrcAddr; /* max no. src. addresses */
U32 maxNmbTxChunks; /* max no. outgoing chunks */
U32 maxNmbRxChunks; /* max no. recv chunks */
U16 maxNmbInStrms; /* max no. in streams PER ASSOCIATION */
U16 maxNmbOutStrms; /* max no. out streams PER ASSOCIATION */
U32 initARwnd; /* max receiver window space */
U16 mtuInitial; /* Initial MTU size */
U16 mtuMinInitial; /* Initial minimum MTU size */
U16 mtuMaxInitial; /* Initial maximum MTU size */
Bool performMtu; /* Perform path MTU discovery */
Bool useHstName; /* Flag whether hostname is to be used in INIT */
.* and INITACK msg */
U16 timeRes; /* timer resolution */
U16 spare3; /* alignment */
U32 debugMask; /* Debugging mask */
U32 traceMask; /* Tracing mask */
Pst smPst; /* layer manager post structure for alarms */
U8 hostname[CM_DNS_DNAME_LEN]; /* Own Domain Name */
SCTPGenReCfg reConfig; /* reconfigurable params */
} SCTPGenCfg;
The SCTPTGenCfg structure contains fields that you can set the first time you call SctpSetGenCfg. Once you use SctpSetGenCfg, you cannot change the field values in this structure, unless you download the TX board and call SctpSetGenCfg again.
The following table describes the fields in the SCTPGenCfg structure that you can set:
Field |
Type |
Default |
Description |
maxNmbAssoc |
U16 |
4 |
Maximum number of SCTP associations the service user can open simultaneously. Valid range is 1 - 65535. |
maxNmbDstAddr |
U16 |
8 |
Maximum number of destination addresses that can be active simultaneously in SCTP. Valid range is 1 - 65535. |
maxNmbTxChunks |
U32 |
256 |
Maximum number of datagrams that can be queued for sending to the peer. Valid range is 1 - the result of (2^32-1). |
maxNmbRxChunks |
U32 |
256 |
Maximum number of datagrams received from the peer that can be queued before being sent up to the service user. |
maxNmbInStrms |
U16 |
8 |
Maximum number of incoming streams per association. Valid range is 1 - 65545. |
maxNmbOutStrms |
U16 |
8 |
Maximum number of outgoing streams per association. Valid range is 1 - 65545. |
mtuInitial |
U16 |
1400 |
Initial path max transmit unit (MTU) in bytes. Valid range is 1 - the result of (2^32-1). |
mtuMinInitial |
U16 |
500 |
Minimum value in bytes when searching for an optimal MTU size using the midpoint algorithm. This field is mandatory if the value of the performMtu field is TRUE. Valid range is 1 - the result of (2^32-1). |
mtuMaxInitial |
U16 |
1400 |
Maximum value in bytes when searching for an optimal MTU size using the midpoint algorithm. This field is mandatory if the value of the performMtu field is TRUE. Valid range is 1 - the result of (2^32-1). |
performMtu |
Bool |
FALSE |
Indicates whether or not to perform MTU discovery. Valid values are: TRUE = Perform MTU discovery. FALSE = Do not perform MTU discovery. |
reConfig |
Structure |
Refer to structure. |
General parameters that can be re-configured in subsequent calls to SctpSetGenCfg. For information, see SCTPGenReCfg. |