📄 xti_sctp.3
字号:
If the negotiated number of outgoing streams is not acceptable, it is theresponsibility of the XTI user to disconnect the transport connection..TP 12.I T_SCTP_ECNsets whether explicit congestion notification is to be supported for thetransport connection..TP 12.I T_SCTP_ALIsets which adaptation layer information is to be communicated and negotiatedfor the connection. If the negotiated adaptation layer information is lessthan the capabilities sent on connection request, it is the XTI user'sresponsibility to check the adaptation layer information returned in the.I rcvcall->optresponse or in the.I call->optresponse from a call to.BR t_rcvconnect (3).If the negotiated capabilities is not acceptable, it is the responsibility ofthe XTI user to disconnect the transport connection..PPThe options of local significance that can be included in this XTI callinclude (other options of local significance may also be included):.TP 12.I T_SCTP_HEARTBEAT_ITVLsets the heartbeat interval to be used on all destination addresses during theconnection.This value can be changed during the transport connection for specificdestinations using the.I T_SCTP_HBoption to.BR t_optmgmt (3)..TP 12.I T_SCTP_RTO_INITIALsets the initial retransmission timeout for all destinations.This value can be changed during the transport connection for specificdestinations using the.I T_SCTP_RTOoption to.BR t_optmgmt (3)..TP 12.I T_SCTP_RTO_MINsets the minimum retransmission timeout interval for all destinations.This value can be changed during the transport connection for specificdestinations using the.I T_SCTP_RTOoption to.BR t_optmgmt (3)..TP 12.I T_SCTP_RTO_MAXsets the maximum retransmission timeout interval for all destinations.This value can be changed during the transport connection for specificdestinations using the.I T_SCTP_RTOoption to.BR t_optmgmt (3)..TP 12.I T_SCTP_PATH_MAX_RETRANSsets the maximum number of times that a retransmission will be directed at adestination adress until the destination address is deemed inactive.This value can be changed during the transport connection for specificdestinations using the.I T_SCTP_RTOoption to.BR t_optmgmt (3)..TP 12.I T_SCTP_MAX_INIT_RETRIESsets the maximum number of INIT retransmissions that will be performed untilthe destination transport address is abandoned. When multiple transportendpoint addresses are provided to.BR t_connect (3),each destination transport address will be tried this many times in turn..PPIf the provider indicates that connection data can be included in the responseto.BR t_getinfo (3),the XTI user can provide connection data in the.I sndcall->udataparameter..PPFor information that may be returned in the.I rcvcallargument to.BR t_connect (3),see the considerations for the.I callargument to.I \(lqt_rcvconnect\(rqXTI library call, below..\".\".SS t_getinfo\fR(3).PPSCTP supports this XTI library call as described in.BR t_connect (3)with the additional considerations described here..PP.TP 12.I addrFor compatibility with the.BR sockets (3)library,.B SCTPuses a.B sockaddr_instructured address. However, a number of XTI library calls support multiple.B sockaddr_inaddress to be specified in a single call. This size will be an integer multiple of thesize of the.B sockaddr_instructure size, indicating how many.B sockaddr_instructures can be included in a single address specification..TP 12.I optionsThe maximum size of options is provider specific. The.B OpenSS7SCTP implementation.RB ( sctp (4))returns the maximum size of an options structure containing all SCTP options..TP 12.I tsduThe maximum size of a transport service data unit. For SCTP this is themaximum size of a message, considering that it may be fragmented and sent inmultiple DATA chunks. For.BR sctp (4)this value could be.BR T_INFINITE .SCTP.[RFC 2960.]has some limitations resulting from stream blockage due to large messages thatneed to be fragmented and sent in multiple chunks. Some implementations maywant to restrict the maximum size of a TSDU to something smaller for thispurpose..TP 12.I etsdu.B SCTPsupports the concept of expedited data as data that is sent unordered. SCTPconforming transport provides will not return.B T_INVALIDfor this field. The maximum ETSDU size is subject to the same considerationsas the TSDU size above. Some implementations may wish to restrict the size ofthe ETSDU to smaller than the TSDU because unordered data causes more problemswith stream blocking due to fragmentation in SCTP..[RFC 2960.].TP 12.I connectSCTP supports the concept of connection data. Although SCTP also supportssending the first fragments of a TSDU or ETSDU with the COOKIE-ECHO orCOOKIE-ACK chunks, and subsequent fragements later, this value represents themaximum size of a TSDU that can be completely contained in the COOKIE-ECHO orCOOKIE-ACK chunks. This value will typically be substantially less than theTSDU size above. Implementations that do not support sending of DATA chunksbundled with the COOKIE-ECHO or COOKIE-ACK may return.B T_INVALIDfor this field..sp(Note that there is no way in TPI.[TPI Revision 2.0.0.]to send a.BR T_CONNECT_REQ (7)indicated expedited data. Therefore, it is only possible to send a TSDU with.BR t_connect (3)in.BR xti (3)..TP 12.I disconAlthough SCTP supports orderly release, SCTP does not support the concept ofdisconnection data. SCTP conforming transport providers will always return.B T_INVALIDin this field..TP 12.I servtypeSCTP supports only connection-oriented modes with orderly release. SCTPconforming transport service providers will return.B T_COTS_ORDwhenever the SCTP implementation supports orderly release (i.e. SHUTDOWN andSHUTDOWN-ACK).SCTP conforming transport service providers may return.B T_COTSif the SCTP implementation does not support orderly release.SCTP conforming transport service providers will not return.BR T_CLTS ..TP 12.I flagsSCTP support orderly release but does not support orderly release data anddoes not support sending null data. SCTP conforming transport providers willnot return.BR T_ORDRELDATA " or " T_SNDZEROflags.SCTP conforming transport service providers may return the.B XPG4_1flag..\".\".SS t_listen\fR(3).PPSCTP supports this XTI library call as described in.BR t_listen (3)with the additional considerations described here..PPSome SCTP options of end-to-end significance should be set before a call to.BR t_listen (3),using.BR t_optmgmt (3),are as follows:.TP 12.I T_SCTP_CKSUM_TYPEset the type of checksum to be performed on all packets for all connectionsindicated on this transport endpoint. This option is useful if the listeningXTI user is aware that the connecting transport endpoints only support theolder Adler 32 checksum..TP 12.I T_SCTP_MAC_TYPEsets the message authentication digest algorithm that will be used whensigning cookies that are returned to transport endpoints generating connectionindications on this transport endpoint. This option is useful if thelistening XTI user wishes to forego or select the security/performancetrade-off associated with the generation of cookies on the transport endpoint..TP 12.I T_SCTP_COOKIE_LIFEsets the lifetime of cookies generated by the listening transport endpoint.This also sets the interval of re-keying of message authentication digests.This is useful if the listening transport endpoint is aware of the transitdelays associated with forming connections to the listening transport endpointand wishes to tighten or loosen the security associated with cookie lifetimesand re-keying of message authentication digests..TP 12.I T_SCTP_COOKIE_INCsets the cookie increment that will be applied to connecting transportendpoints requesting cookie preservation..TP 12.I T_SCTP_THROTTLE_ITVLsets the throttle interval for throttling connection attempts on the listeningtransport endpoint..PPIn addition, any of the options described under.BR t_accept (3),above, may be set with.BR t_optmgmt (3)before the call to.BR t_listen (3)..PPWhen an incoming connection is indicated, the calling address indicated in the.I call->addrargument can contain multiple.B sockaddr_instructures, each representing a multi-homed IP transport address from whichthe connection is requested. This first address in the list is always thesource address of the COOKIE-ECHO packet. Each address in the array will havethe same.I call->addr[i].sin_familyand.I call->addr[i].sin_portfields..PPWhen an incoming connection is indicated, the options indicated in the.I call->optargument that are of end-to-end significance are as follows:.TP 12.I T_SCTP_CKSUM_TYPEindicates the checksum type that was used for the COOKIE-ECHO packet. Thisvalue is auto-detected. If this checksum type is unacceptable to the XTI user,the XTI user should refuse the connection indication using.BR t_snddis (3),with the indicated sequence number..TP 12.I T_SCTP_ISTREAMSindicates the number of incoming streams requested by the peer. If this valueis too high, it may be adjusted using this option to the.BR t_accept (3)call. This value cannot be adjusted upward. If the value is too low, theXTI user should refuse the connection indication using.BR t_snddis (3),with the indicated sequence number..TP 12.I T_SCTP_OSTREAMSindicates the maximum number of outgoing streams supported by the peer. Ifthis value is too high, it may be adjusted downward using this option to the.BR t_accept (3)call. This value cannot be adjusted upward. If the value is too low, theXTI user should refuse the connection indication using.BR t_snddis (3),with the indicated sequence number..TP 12.I T_SCTP_ECNindicates whether the peer supports explicit congestion notification. Thepeer cannot be compelled to use explicit congestion notification. If explicitcongestion notification is required but not indicated, it is the XTI user'sresponsibility to refuse the transport connection using.BR t_snddis (3)with the indicated sequence number. Whether this transport endpoint supportsexplicit congestion notification or not can be specified using this option tothe.BR t_accept (3)call accepting the connection indication..TP 12.I T_SCTP_ALIindicates whether the peer supports adaptation layer information and extensioncapabilities to the SCTP protocol. If capabilities are required that are notindicated, it is the XTI user's responsibility to refuse the transportconnection using.BR t_snddis (3)with the indicated sequence number. Whether this transport endpoint supportsadaptation layer information and which capabilities it supports can bespecified using this option to the.BR t_accept (3)call accepting the connection indication..PPIf the SCTP peer provided connection data bundled with the COOKIE-ECHO, thedata will be indicated in the.I call->udataparameter..\".\".SS t_open\fR(3).PPSCTP supports this XTI library call as described in.BR t_open (3)with the additional considerations described here.The information returned in the.I infoparameter to this XTI call has the same considerations as the.I infoparameter returned in the call to.BR t_getinfo (3),described above..\".\".SS t_optmgmt\fR(3).PPSCTP supports this XTI library call as described in.BR t_optmgmt (3)with the additional considerations described here.The options that may be set, retrieved or negotiated using this XTI librarycall are described under.IR \(lqOPTIONS\(rq ,above..\".\".SS t_rcvconnect\fR(3).PPSCTP supports this XTI library call as described in.BR t_rcvconnect (3)with the additional considerations described here..PPMultiple addresses..PP.IR T_SCTP_HEARTBEAT_ITVL ,.IR T_SCTP_RTO_INITIAL ,.IR T_SCTP_RTO_MIN ,.IR T_SCTP_RTO_MAX ,.IR T_SCTP_PATH_MAX_RETRANS ,.IR T_SCTP_CKSUM_TYPE ,.IR T_SCTP_MAC_TYPE ,.IR T_SCTP_COOKIE_LIFE ,.IR T_SCTP_COOKIE_INC ,.IR T_SCTP_THROTTLE_ITVL ,.IR T_SCTP_ISTREAMS ,.IR T_SCTP_OSTREAMS ,.IR T_SCTP_ECN ,.IR T_SCTP_ALI ,.IR T_SCTP_MAX_INIT_RETRIES ,.\".\".SS t_rcvdis\fR(3).PPSCTP supports this XTI library call as described in.BR t_rcvdis (3)with the additional considerations described here..PPSCTP does not support disconnection data and the.I dis->udataparameter will always be empty..PP.I dis->reasonwill either be a negative UNIX\(rg error code, or an SCTP protocol-specific error codeas follows:.TP 12.I T_SCTP_CAUSE_INVALID_STRa DATA chunk was received that contained an invalid stream identifier..TP 12.I T_SCTP_CAUSE_MISSING_PARMa control chunk was missing a mandatory parameter..TP 12.I T_SCTP_CAUSE_STALE_COOKIEthe cookie went stale before a transport connection could be formed..TP 12.I T_SCTP_CAUSE_NO_RESOURCEthere was insufficient resource to form the transport connection..TP 12.I T_SCTP_CAUSE_BAD_ADDRESSa provided destination transport address was invalid..TP 12.I T_SCTP_CAUSE_BAD_CHUNK_TYPEan unrecognized chunk type was received..TP 12.I T_SCTP_CAUSE_INVALID_PARMan invalid parameter type was received..TP 12.I T_SCTP_CAUSE_BAD_PARMa parameter containing an invalid value was received..TP 12.I T_SCTP_CAUSE_NO_DATAa DATA chunk was received that contained no data..TP 12.I T_SCTP_CAUSE_SHUTDOWNa cookie was received while shutting down..TP 12.I T_SCTP_CAUSE_NEW_ADDRrestart of an association with a new address..TP 12.I T_SCTP_CAUSE_USER_INITIATEDuser initiated abort..TP 12.I T_SCTP_CAUSE_PROTO_VIOLATIONprotocol violation..TP 12.I T_SCTP_CAUSE_LAST_ADDRrequest to delete last IP address for the transport connection..TP 12.I T_SCTP_CAUSE_RES_SHORTAGEoperation was refused due to resource shortage..TP 12.I T_SCTP_CAUSE_SOURCE_ADDRrequest to delete a source IP address..TP 12.I T_SCTP_CAUSE_ILLEGAL_ASCONFassociation aborted due to illegal ASCONF
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -