Description: Code
#ifndef _SYS_XTI_SCTP_H
#define _SYS_XTI_SCTP_H
#ident "@(#) xti_sctp.h,v openss7-0_9_2_G(0.9.2.8) Copyright (c) 2001-2008 OpenSS7 Corporation."
#define T_INET_SCTP 132
#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
#define T_SCTP_CKSUM_TYPE 22
#define T_SCTP_ECN 23
#define T_SCTP_ALI 24
#define T_SCTP_ADD 25
#define T_SCTP_SET 26
#define T_SCTP_ADD_IP 27
#define T_SCTP_DEL_IP 28
#define T_SCTP_SET_IP 29
#define T_SCTP_PR 30
#define T_SCTP_LIFETIME 31
#define T_SCTP_DISPOSITION 32
#define T_SCTP_MAX_BURST 33
#define T_SCTP_HB 34
#define T_SCTP_RTO 35
#define T_SCTP_MAXSEG 36
#define T_SCTP_STATUS 37
#define T_SCTP_DEBUG 38
#define T_SCTP_SACK_FREQUENCY 39
#define T_SCTP_HMAC_NONE 0
#define T_SCTP_HMAC_SHA1 1
#define T_SCTP_HMAC_MD5 2
#define T_SCTP_CSUM_ADLER32 0
#define T_SCTP_CSUM_CRC32C 1
#define T_SCTP_DISPOSITION_NONE 0
#define T_SCTP_DISPOSITION_UNSENT 1
#define T_SCTP_DISPOSITION_SENT 2
#define T_SCTP_DISPOSITION_GAP_ACKED 3
#define T_SCTP_DISPOSITION_ACKED 4
typedef struct t_sctp_hb {
t_uscalar_t hb_dest;
t_uscalar_t hb_onoff;
t_uscalar_t hb_itvl;
} t_sctp_hb_t;
typedef struct t_sctp_rto {
t_uscalar_t rto_dest;
t_uscalar_t rto_initial;
t_uscalar_t rto_min;
t_uscalar_t rto_max;
t_uscalar_t max_retrans;
} t_sctp_rto_t;
typedef struct t_sctp_dest_status {
t_uscalar_t dest_addr;
t_uscalar_t dest_cwnd;
t_uscalar_t dest_unack;
t_uscalar_t dest_srtt;
t_uscalar_t dest_rvar;
t_uscalar_t dest_rto;
t_uscalar_t dest_sst;
} t_sctp_dest_status_t;
typedef struct t_sctp_status {
t_uscalar_t curr_rwnd;
t_uscalar_t curr_rbuf;
t_uscalar_t curr_nrep;
t_sctp_dest_status_t curr_dest[0];
} t_sctp_status_t;
#ifndef SCTP_OPTION_DROPPING
#define SCTP_OPTION_DROPPING 0x01
#define SCTP_OPTION_BREAK 0x02
#define SCTP_OPTION_DBREAK 0x04
#define SCTP_OPTION_RANDOM 0x08
#endif
#endif