00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028 #ifndef _sctp_options_h
00029 #define _sctp_options_h
00030
00031 #ifndef NO_SCTP_CONN_REUSE
00032
00033 #define SCTP_CONN_REUSE
00034 #endif
00035
00036 #define DEFAULT_SCTP_AUTOCLOSE 180
00037 #define DEFAULT_SCTP_SEND_TTL 32000
00038 #define DEFAULT_SCTP_SEND_RETRIES 0
00039 #define MAX_SCTP_SEND_RETRIES 9
00040
00041
00042 struct cfg_group_sctp{
00043 int so_rcvbuf;
00044 int so_sndbuf;
00045 unsigned int autoclose;
00046 unsigned int send_ttl;
00047 unsigned int send_retries;
00048 int assoc_tracking;
00049 int assoc_reuse;
00050
00051 int max_assocs;
00052 unsigned int srto_initial;
00053 unsigned int srto_max;
00054 unsigned int srto_min;
00055 unsigned int asocmaxrxt;
00056 unsigned int init_max_attempts;
00057 unsigned int init_max_timeo;
00058 unsigned int hbinterval;
00059 unsigned int pathmaxrxt;
00060 unsigned int sack_delay;
00061 unsigned int sack_freq;
00062 unsigned int max_burst;
00063 };
00064
00065 extern struct cfg_group_sctp sctp_default_cfg;
00066
00067
00068 extern void* sctp_cfg;
00069
00070 void init_sctp_options(void);
00071 void sctp_options_check(void);
00072 int sctp_register_cfg(void);
00073 void sctp_options_get(struct cfg_group_sctp *s);
00074 int sctp_get_os_defaults(struct cfg_group_sctp *s);
00075 int sctp_get_cfg_from_sock(int s, struct cfg_group_sctp* cfg);
00076
00077 #endif