⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 xti_sctp.3

📁 7号信令功能代码,为开源代码
💻 3
📖 第 1 页 / 共 5 页
字号:
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 12.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 12.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 12.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 12.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 12.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 12.I curr_rwndis the current advertised receive window in bytes..TP 12.I curr_rbufis the current receive buffer size in bytes..TP 12.I curr_nrepis the number of.B t_sctp_dest_statusstructure that follow this structure..PPThe.B t_sctp_dest_statusstructure has the following fields:.TP 12 12.I dest_addris the address associated with this specific.B t_sctp_dest_statusstructure..TP 12.I dest_cwndis the congestion window for the given destination transport address in bytes..TP 12.I dest_unackis the number of unacknowledged DATA chunks outstanding to the givendestination transport address in chunks..TP 12.I dest_srttis the smoothed round trip time for the destination transport address inmilliseconds..TP 12.I dest_rvaris the round trip time variance for the destination transport address inmilliseconds..TP 12.I dest_rtois the current value of the round trip timeout for the destination transportaddress in milliseconds..TP 12.I dest_sstis the current value of the slow start threshold for the destination transportaddress in bytes..RE.\".\".TP 12.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 12.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 12.I T_SCTP_OPTION_DROPPINGthe stream will drop packets at the software level for debugging purposes..TP 12.I T_SCTP_OPTION_BREAKthe stream will break the first destination address at intervals for debuggingpurposes..TP 12.I T_SCTP_OPTION_DBREAKthe stream will break destination addresses in both directions at intervalsfor debugging purposes..TP 12.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 library call as described in.BR t_accept (3),with the additional considerations described here..PPWhen the XTI 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..PPSCTP provides a number of options, described in.IR \(lqOPTIONS\(rq ,above, that may be included in this XTI 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 XTIlibrary call are:.TP 12.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 12.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 12.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 12.I T_SCTP_ALIsets the adaptation layer information specifying the local endpointcapabilities that are available on 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 for specific connection by providing this option to the.BR t_accept (3).This value may be changed during the transport connection 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 for specific connection by providing this option to the.BR t_accept (3).This value may be changed during the transport connection 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 for specific connection by providing this option to the.BR t_accept (3).This value may be changed during the transport connection 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 for specific connection by providing this option to the.BR t_accept (3).This value may be changed during the transport connection 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 address until the destination address is deemed inactive.This value can be changed for specific connection by providing this option to the.BR t_accept (3).This value may be changed during the transport connection using the.I T_SCTP_RTOoption to.BR t_optmgmt (3)..TP 12.I T_SCTP_MAX_INIT_RETRIESsets the maximum number of COOKIE-ACK retransmissions that will be performeduntil the destination transport address is abandoned.This value can be changed for specific connection by providing this option to the.BR t_accept (3)..PPIf the provider indicates that connect data can be included in the response to.BR t_getinfo (3),the XTI user can provide connection data in the.I call->udataparameter..\".\".SS t_bind\fR(3).PPSCTP supports this XTI library call as described in.BR t_bind (3),with the additional considerations described here..PPWhen the XTI user provides a transport endpoint address in.IR req->addr ,the address to bind can contain multiple.B sockaddr_instructures, each representing a local IP address to which to bind a multi-homedSCTP transport endpoint.Each address in the array must have the same.I req->addr[i].sin_familyand.I req->addr[i].sin_portvalue..PPWhen the SCTP transport service provider returns the bound address in.IR ret->addr ,the address bound can contain multiple.B sockaddr_instructures, each representing a bound local IP address.  The SCTP conformingtransport service provider will return the same values in each.I ret->addr[i].sin_familyand.I ret->addr[i].sin_portfields..\".\".SS t_close\fR(3).PPSCTP supports this XTI library call as described in.BR t_close (3)without modifications..PPNote: closing a transport endpoint in a connected state will result in anabortive release of the transport connection..\".\".SS t_connect\fR(3).PPSCTP supports this XTI library call as described in.BR t_connect (3),with the additional considerations described here..PPWhen the XTI user provides a transport endpoint address to which to connect in.IR sndcall->addr ,the address can be an array of.B sockaddr_instructures, each indicating a remote address for the endpoint to which toconnect.Only one address is necessary to successfully form a multi-homed transportconnection; however, if additional addresses are provided, the transportconnection is initialized in a more secure and reliable fashion..PPSCTP provides a number of options, described in.IR \(lqOPTIONS\(rq ,above, that may be included in this XTI callin the.I sndcall->optparameter to change local ad end-to-end characteristics of the transportendpoint accepting the connection.The options of end-to-end significance that can be included in this XTI librarycall are:.TP 12.I T_SCTP_CKSUM_TYPEset the type of checksum to be performed on all packets for the connection.This option is useful if the connecting XTI user is aware that the destinationtransport endpoint only supports the older Adler 32 checksum..TP 12.I T_SCTP_ISTREAMSset the maximum number of incoming streams for the connection.  The peer mustrespect this value and negotiate the number of incoming streams to be lessthan or equal to this value or the transport connection will fail..TP 12.I T_SCTP_OSTREAMSset the requested number of outgoing streams for the connection.  The peer maynegotiate a smaller number of outgoing streams depending on its maximumincoming stream requirements.  It is the XTI user's responsibility to checkthe number of outgoing streams in the.I rcvcall->optresponse or in the.I call->optresponse from a call to.BR t_rcvconnect (3).

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -