📄 xti_sctp.3.man
字号:
connection..\".\".TP.B T_SCTP_DISPOSITIONThis option determines whether SCTP will retain and deliver messages that werenot successfully acknowledged by the peer for retrieval, or will deliverconfirmation of acknowledgment for message successfully acknowledged by thepeer.The option value is formatted as a.BR t_scalar_t ,and can have one of the following values:.RS.TP.I T_SCTP_DISPOSITION_NONEMessages will not be retained for retrieval and acknowledgments will not beprovided for messages..TP.I T_SCTP_DISPOSITION_UNSENTMessages that were unsent will be retained for retrieval..TP.I T_SCTP_DISPOSITION_SENTMessages that were sent and unacknowledged, or that were unsent, will beretained for retrieval..TP.I T_SCTP_DISPOSITION_GAP_ACKEDMessages that were sent and gap acknowledged as well as messages that weresent and unacknowledged and messages that were unsent, will be retained forretrieval..TP.I T_SCTP_DISPOSITION_ACKEDMessages that were sent and acknowledged (but unconfirmed), messages that weresent and gap acknowledged, messages that were sent and unacknowledged, andmessages that were unsent, will be retained for retrieval..PPThis option permits messages that are unsent, sent but not acknowledged orsent and gap acknowledged, to be retrieved from the transport endpoint beforeclose. This is accomplished by setting the.I T_SCTP_DISPOSITIONoption before shutdown or abort of the transport connection, and then calling.BR t_rcv "(3) or " t_rcvv (3)after.BR POLLHUP ", " SIGPIPE " or " EPIPEindicating a shutdown or abort of the transport connection.Messages then read will set the.I T_SCTP_DISPOSITIONoption on the transport endpoint to indicate whether they were.IR T_SCTP_DISPOSITION_UNSENT ", " T_SCTP_DISPOSITION_SENT ", " T_SCTP_DISPOSITION_GAP_ACKED " or " T_SCTP_DISPOSITION_ACKED ..PPIf the transport endpoint has option.I T_SCTP_PRset and the peer supports partial reliability (see.IR T_SCTP_PR ),message which have failed partial reliability delivery (were dropped) will alsobe retrieved by.BR t_rcv "(3) or " t_rcvv (3)..PPAlternatively, if the socket option.I T_SCTP_DISPOSITIONis set to.IR T_SCTP_DISPOSITION_ACKED ,.BR t_rcv "(3) or " t_rcvv (3)will also return acknowledgments for messages not acknowledged sent at thetime of the transport connection disconnection..PPThis option is intended for use with the.BR sockets (3)library,is extremely non-portable,and has little use for.BR xti (3)..RE.\".\".TP.B T_SCTP_LIFETIMEThis option determines the SCTP lifetime.[RFC 2960.]or the partial reliability timed reliability lifetime.[draft-ietf-tsvwg-prsctp-00.txt.]associated with message that are sent on this transport endpoint.The option value is formatted as a.B t_scalar_tthat contains the lifetime (in milliseconds)..\".\".TP.B T_SCTP_ADDThis option determines whether the transport endpoint will support the add IPextension.RB ( ADD-IP " and " DEL-IP )described in draft-ietf-tsvwg-addip-sctp-07.txt..[draft-ietf-tsvwg-addip-sctp-07.txt.]The option value is formatted as a.B t_scalar_tthat can have values.BR T_YES " or " T_NO ..spWhen set to.BR T_YES ,this option request that SCTP respond to ASCONF chunks with ADD-IP or DEL-IPrequests. When set to.BR T_NO ,SCTP will refuse these requests for the transport connection.This option can be set or read at any time during the transport connectionlifetime..\".\".TP.B T_SCTP_ADD_IPThis option adds a IP address to an existing transport endpoint.The option value is formatted as a.B sockaddr_instructure that contains the local IP address to add.Option.I T_SCTP_ADDmust be set to.B T_YESfor this option to be valid..spIf the transport stream is in a connected or connecting state, this invokesthe ASCONF procedure to add the IP address to the existing transportconnection. If the transport stream is in a disconnected state, setting thisoption will add the local IP address to the addresses bound with.BR t_bind (3),and acts as a hierarchal subsequent binding operation..spNote that if a transport endpoint was initially bound to.IR INADDR_ANY ,IP addresses may be automatically added to the transport connectionif new network interfaces are added to the system, or if existing networkinterfaces are configured using.BR ifconfig (8)or equivalent commands..\".\".TP.B T_SCTP_DEL_IPThis option deletes an IP address from an existing transport endpoint.The option value is formatted as a.B sockaddr_instructure that contains the local IP address to delete.Option.I T_SCTP_ADDmust be set to.B T_YESfor this option to be valid..spIf the transport stream is in a connected or connecting state, this invokesthe ASCONF procedure to remove the IP address from the transport connection.If the transport stream is in a disconnected state, setting this option willremove the local IP address from the addresses bound with.BR t_bind (3),and acts as a hierarchal subsequent unbinding operation..spNote that if the transport endpoint was initially bound to.IR INADDR_ANY ,IP addresses may be automatically removed from the transport connection ifexisting network interfaces are removed from the system, or if networkinterfaces are reconfigured with.BR ifconfig (8)or equivalent commands..\".\".TP.B T_SCTP_SETThis option determines whether the transport endpoint will support the add IPextensions.RB ( SET-PRIMARY )described in draft-ietf-tsvwg-addip-sctp-07.txt..[draft-ietf-tsvwg-addip-sctp-07.txt.]The option value is formatted as a.B t_scalar_tthat can have values.BR T_YES " or " T_NO ..spWhen set to.BR T_YES ,this option request that SCTP respond to ASCONF chunks with SET-PRIMARYrequests. When set to.BR T_NO ,SCTP will refuse these requests for the transport connection.This option can be set or read at any time during the transport connectionlifetime..\".\".TP.B T_SCTP_STATUSThis option conveys the association status and the status associated witheach of the destination transport addresses forming the transport connection.This is a read-only option.The returned value is formatted as a.B t_sctp_statusstructure containing one.B t_sctp_dest_statusstructure for each destination transport address, formatted as follows:.sp.nf\fC\s-1\typedef struct t_sctp_status { t_uscalar_t curr_rwnd; /* receive window */ t_uscalar_t curr_rbuf; /* receive buffer */ t_uscalar_t curr_nrep; /* dests reported */ t_sctp_dest_status_t curr_dest[0]; /* primary dest */} t_sctp_status_t;.sptypedef struct t_sctp_dest_status { t_uscalar_t dest_addr; /* address */ t_uscalar_t dest_cwnd; /* congestion window */ t_uscalar_t dest_unack; /* unacknowledged chunks */ t_uscalar_t dest_srtt; /* smooth round trip time */ t_uscalar_t dest_rvar; /* rtt variance */ t_uscalar_t dest_rto; /* current rto */ t_uscalar_t dest_sst; /* slow start threshold */} t_sctp_dest_status_t;\s+1\fR.fi.RS.PPThe.B t_sctp_statusstructure has the following fields:.TP \w'dest_unack\(em'u.I curr_rwndis the current advertised receive window in bytes..PD 0.TP.I curr_rbufis the current receive buffer size in bytes..TP.I curr_nrepis the number of.B t_sctp_dest_statusstructure that follow this structure..PD.PPThe.B t_sctp_dest_statusstructure has the following fields:.TP \w'dest_unack\(em'u.I dest_addris the address associated with this specific.B t_sctp_dest_statusstructure..PD 0.TP.I dest_cwndis the congestion window for the given destination transport address in bytes..TP.I dest_unackis the number of unacknowledged DATA chunks outstanding to the givendestination transport address in chunks..TP.I dest_srttis the smoothed round trip time for the destination transport address inmilliseconds..TP.I dest_rvaris the round trip time variance for the destination transport address inmilliseconds..TP.I dest_rtois the current value of the round trip timeout for the destination transportaddress in milliseconds..TP.I dest_sstis the current value of the slow start threshold for the destination transportaddress in bytes..PD.RE.\".\".TP.B T_SCTP_TSNThis option determines the SCTP Transmit Sequence Number that is to be associatedwith a given data transmission. The option value is formatted as a.B t_scalar_tthat contains the numeric value of the SCTP Transmit Sequence Number.This options is used with.BR t_optmgmt (3).The SCTP transport provider determines which values will be used on all packets sent with.BR t_snd "(3), " t_sndv "(3), " write "(2) or " writev (2).The current value, when read, using.BR t_optmgmt (3),will return the value that was contained in the last packet read with.BR t_rcv "(3), " t_rcvv "(3), " read "(2) or " readv (2)..\".\".TP.B T_SCTP_DEBUGThis option determines implementation specific debugging features.The option value is formatted as a.BR t_scalar_t ,that can be one of the following values:.RS.TP.I T_SCTP_OPTION_DROPPINGthe stream will drop packets at the software level for debugging purposes..TP.I T_SCTP_OPTION_BREAKthe stream will break the first destination address at intervals for debuggingpurposes..TP.I T_SCTP_OPTION_DBREAKthe stream will break destination addresses in both directions at intervalsfor debugging purposes..TP.I T_SCTP_OPTION_RANDOMthe stream will drop packets at random at the software level for debuggingpurposes..RE.\".\".SH FUNCTIONS.PP.\".\".SS t_accept\fR(3).PP.PPSCTP supports this XTI/TLI library call as described in.BR t_accept (3),with the additional considerations described here..PPWhen the XTI/TLI user provides a transport endpoint address in.IR call->addr ,the address can be an array of.B sockaddr_instructures, each indicating a local address for the responding endpoint.If this list of addresses does not include the destination address of theconnection indication, the set of addresses will be expanded by the SCTPprovider to include the destination address of the connection indication..PPIssuing.BR t_accept (3)assigns an already established connection to.IR resfd ..PPSince user data cannot be exchanged during the connection establishment phase,.I call->udata.lenmust be set to zero..PPWhen.RI ( "resfd != fd" ),the function.BR t_accept (3)is recommended to be called with.I resfdin the.B T_UNBNDstate, though an endpoint which is bound to any local address (in the.B T_IDLEstate) can also be used..PPAfter.BR t_accept (3)completes, the endpoint.I resfdwill represent a connected SCTP endpoint whose complete binding essentially hasboth local and remote address components..PPIf file descriptor.I resfdwas unbound before calling.BR t_accept (3),after the call completes its local address binding would be to the sameprotocol address bound to.IR fd .If the file descriptor.I resfdwas bound to a local address before calling.BR t_accept (3),that local address binding is dissolved and the local address part of thebinding after.BR t_accept (3)completes would become the same as the address bound to.IR fd ..PPIf options with end-to-end significance.RB ( T_IP_OPTIONS ", " T_IP_TOS ", " T_SCTP_OSTREAMS ", " T_SCTP_ISTREAMS ", " T_SCTP_ECN " and " T_SCTP_ALI )are to be sent with the connection confirmation, the values of these optionsmust be set with.BR t_optmgmt (3)prior to the.B T_LISTENevent occurs. When the transport user detects a.B T_LISTENevent, SCTP has already established the connection. Association-relatedoptions passed with.BR t_accept (3)become effective at once, but since the connection is already established,they are transmitted with subsequent IP datagrams sent out in the.B T_DATAXFERstate..PPSCTP provides a number of options, described in.IR \(lqOPTIONS\(rq ,above, that may be included in this XTI/TLI callin the.I call->optparameter to change local and end-to-end characteristics of the transportendpoint accepting the connection.The options of end-to-end significance that can be included in this XTI/TLIlibrary call are:.TP.I T_IP_OPTIONS.TP.I T_IP_TOS.TP.I T_SCTP_ISTREAMSsets the number of incoming streams for the transport connection. This valueis only significant if it is lower than the value requested by the peer in theoptions returned from the call to.BR t_listen (3)..TP.I T_SCTP_OSTREAMSsets the number of outgoing streams for the transport connection. This valueis only significant if it is lower than the value required by the peer in theoptions returned from the call to.BR t_listen (3)..TP.I T_SCTP_ECNsets whether explicit congestion notification is supported on the transportconnection. This value is only significant if the peer indicates that itsupports explicit congestion notification in the options returned from thecall to.BR t_listen (3)..TP.I T_SCTP_ALIsets the adaptation layer information specifying the local endpointcapabilities that are available on the transport connection..PPThe association-related options that can be included in this XTI/TLI call include(other association-related options may also be included):.TP.I XTI_RCVBUF.TP.I T_IP_TTL.PPThe options of local significance that can be included in this XTI/TLI callinclude (other options of local significance may also be included):.TP.I XTI_DEBUG.TP.I XTI_LINGER.TP.I XTI_RCVLOWAT.TP.I XTI_SNDBUF
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -