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

📄 xti_sctp.h

📁 No7信令,我需要交换类似的代码, 请店长审核,谢谢了,急着交换,谢谢
💻 H
字号:
/***************************************************************************** @(#) xti_sctp.h,v 0.7.8.1 2001/12/11 13:26:36 brian Exp ----------------------------------------------------------------------------- Copyright (C) 2001  OpenSS7 Corporation <http://www.openss7.com> All Rights Reserved. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. ----------------------------------------------------------------------------- U.S. GOVERNMENT RESTRICTED RIGHTS.  If you are licensing this Software on behalf of the U.S. Government ("Government"), the following provisions apply to you.  If the Software is supplied by the Department of Defense ("DoD"), it is classified as "Commercial Computer Software" under paragraph 252.227-7014 of the DoD Supplement to the Federal Acquisition Regulations ("DFARS") (or any successor regulations) and the Government is acquiring only the license rights granted herein (the license rights customarily provided to non-Government users).  If the Software is supplied to any unit or agency of the Government other than DoD, it is classified as "Restricted Computer Software" and the Government's rights in the Software are defined in paragraph 52.227-19 of the Federal Acquisition Regulations ("FAR") (or any success regulations) or, in the cases of NASA, in paragraph 18.52.227-86 of the NASA Supplement to the FAR (or any successor regulations). ----------------------------------------------------------------------------- Last Modified 2001/12/11 13:26:36 by brian *****************************************************************************/#ifndef _SYS_XTI_SCTP_H#define _SYS_XTI_SCTP_H#ifndef t_uscalar_t#define t_uscalar_t ulong#define t_scalar_t  long#endiftypedef struct sctp_addr{	uint16_t    port    __attribute__((packed));	uint32_t    addr[0] __attribute__((packed));}sctp_addr_t;#define T_INET_SCTP	132 /* SCTP level (same as protocol number) *//* *  SCTP Transport Provider Options */#define T_SCTP_NODELAY			 1#define T_SCTP_CORK			 2#define T_SCTP_PPI			 3#define T_SCTP_SID			 4#define T_SCTP_SSN			 5#define T_SCTP_TSN			 6#define T_SCTP_RECVOPT			 7#define T_SCTP_COOKIE_LIFE		 8#define T_SCTP_SACK_DELAY		 9#define T_SCTP_PATH_MAX_RETRANS		10#define T_SCTP_ASSOC_MAX_RETRANS	11#define T_SCTP_MAX_INIT_RETRIES		12#define T_SCTP_HEARTBEAT_ITVL		13#define T_SCTP_RTO_INITIAL		14#define T_SCTP_RTO_MIN			15#define T_SCTP_RTO_MAX			16#define T_SCTP_OSTREAMS			17#define T_SCTP_ISTREAMS			18#define T_SCTP_COOKIE_INC		19#define T_SCTP_THROTTLE_ITVL		20#define T_SCTP_MAC_TYPE			21#ifndef SCTP_HMAC_NONE#define SCTP_HMAC_NONE      0#define SCTP_HMAC_SHA_1     1#define SCTP_HMAC_MD5       2#endif#define T_SCTP_HB			22typedef struct t_sctp_hb {	uint32_t	    hb_dest;	 /* destination address		*/	t_uscalar_t	    hb_onoff;	 /* activation flag		*/	t_uscalar_t	    hb_itvl;	 /* interval in milliseconds	*/} t_sctp_hb_t;#define T_SCTP_RTO			23typedef struct t_sctp_rto {	uint32_t	    rto_dest;	 /* destination address		*/	t_uscalar_t	    rto_initial; /* RTO.Initial (milliseconds)	*/	t_uscalar_t	    rto_min;	 /* RTO.Min     (milliseconds)	*/	t_uscalar_t	    rto_max;	 /* RTO.Max     (milliseconds)	*/	t_uscalar_t	    max_retrans; /* Path.Max.Retrans (retries)	*/} t_sctp_rto_t;/* *  Read-only options... */#define T_SCTP_MAXSEG			24#define T_SCTP_STATUS			25typedef struct t_sctp_dest_status {	t_uscalar_t	    dest_addr;	/* dest address			*/	t_uscalar_t	    dest_cwnd;	/* dest congestion window	*/	t_uscalar_t	    dest_unack;	/* dest unacknowledged chunks	*/	t_uscalar_t	    dest_srtt;	/* dest smooth round trip time	*/	t_uscalar_t	    dest_rvar;	/* dest rtt variance		*/	t_uscalar_t	    dest_rto;	/* dest current rto		*/	t_uscalar_t	    dest_sst;	/* dest slow start threshold	*/} t_sctp_dest_status_t;typedef struct t_sctp_status {	t_uscalar_t	     curr_rwnd;	   /* current receive window	*/	t_uscalar_t	     curr_rbuf;	   /* current receive buffer	*/	t_uscalar_t	     curr_nrep;	   /* current dests reported	*/	t_sctp_dest_status_t curr_dest[0]; /* current primary dest	*/} t_sctp_status_t;#define T_SCTP_DEBUG			26#ifndef SCTP_OPTION_DROPPING#define SCTP_OPTION_DROPPING	0x01	/* stream will drop packets		    */#define SCTP_OPTION_BREAK	0x02	/* stream will break dest #1		    */#define SCTP_OPTION_DBREAK	0x04	/* stream will break dest both ways	    */#define SCTP_OPTION_RANDOM	0x08	/* stream will drop packets at random	    */#endif#endif  _SYS_XTI_SCTP_H

⌨️ 快捷键说明

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