diff options
Diffstat (limited to 'include/net/sctp/structs.h')
-rw-r--r-- | include/net/sctp/structs.h | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/include/net/sctp/structs.h b/include/net/sctp/structs.h index 536e439ddf1d..fc5e60016e37 100644 --- a/include/net/sctp/structs.h +++ b/include/net/sctp/structs.h | |||
@@ -161,6 +161,12 @@ extern struct sctp_globals { | |||
161 | int max_retrans_path; | 161 | int max_retrans_path; |
162 | int max_retrans_init; | 162 | int max_retrans_init; |
163 | 163 | ||
164 | /* Potentially-Failed.Max.Retrans sysctl value | ||
165 | * taken from: | ||
166 | * http://tools.ietf.org/html/draft-nishida-tsvwg-sctp-failover-05 | ||
167 | */ | ||
168 | int pf_retrans; | ||
169 | |||
164 | /* | 170 | /* |
165 | * Policy for preforming sctp/socket accounting | 171 | * Policy for preforming sctp/socket accounting |
166 | * 0 - do socket level accounting, all assocs share sk_sndbuf | 172 | * 0 - do socket level accounting, all assocs share sk_sndbuf |
@@ -258,6 +264,7 @@ extern struct sctp_globals { | |||
258 | #define sctp_sndbuf_policy (sctp_globals.sndbuf_policy) | 264 | #define sctp_sndbuf_policy (sctp_globals.sndbuf_policy) |
259 | #define sctp_rcvbuf_policy (sctp_globals.rcvbuf_policy) | 265 | #define sctp_rcvbuf_policy (sctp_globals.rcvbuf_policy) |
260 | #define sctp_max_retrans_path (sctp_globals.max_retrans_path) | 266 | #define sctp_max_retrans_path (sctp_globals.max_retrans_path) |
267 | #define sctp_pf_retrans (sctp_globals.pf_retrans) | ||
261 | #define sctp_max_retrans_init (sctp_globals.max_retrans_init) | 268 | #define sctp_max_retrans_init (sctp_globals.max_retrans_init) |
262 | #define sctp_sack_timeout (sctp_globals.sack_timeout) | 269 | #define sctp_sack_timeout (sctp_globals.sack_timeout) |
263 | #define sctp_hb_interval (sctp_globals.hb_interval) | 270 | #define sctp_hb_interval (sctp_globals.hb_interval) |
@@ -990,10 +997,15 @@ struct sctp_transport { | |||
990 | 997 | ||
991 | /* This is the max_retrans value for the transport and will | 998 | /* This is the max_retrans value for the transport and will |
992 | * be initialized from the assocs value. This can be changed | 999 | * be initialized from the assocs value. This can be changed |
993 | * using SCTP_SET_PEER_ADDR_PARAMS socket option. | 1000 | * using the SCTP_SET_PEER_ADDR_PARAMS socket option. |
994 | */ | 1001 | */ |
995 | __u16 pathmaxrxt; | 1002 | __u16 pathmaxrxt; |
996 | 1003 | ||
1004 | /* This is the partially failed retrans value for the transport | ||
1005 | * and will be initialized from the assocs value. This can be changed | ||
1006 | * using the SCTP_PEER_ADDR_THLDS socket option | ||
1007 | */ | ||
1008 | int pf_retrans; | ||
997 | /* PMTU : The current known path MTU. */ | 1009 | /* PMTU : The current known path MTU. */ |
998 | __u32 pathmtu; | 1010 | __u32 pathmtu; |
999 | 1011 | ||
@@ -1664,6 +1676,12 @@ struct sctp_association { | |||
1664 | */ | 1676 | */ |
1665 | int max_retrans; | 1677 | int max_retrans; |
1666 | 1678 | ||
1679 | /* This is the partially failed retrans value for the transport | ||
1680 | * and will be initialized from the assocs value. This can be | ||
1681 | * changed using the SCTP_PEER_ADDR_THLDS socket option | ||
1682 | */ | ||
1683 | int pf_retrans; | ||
1684 | |||
1667 | /* Maximum number of times the endpoint will retransmit INIT */ | 1685 | /* Maximum number of times the endpoint will retransmit INIT */ |
1668 | __u16 max_init_attempts; | 1686 | __u16 max_init_attempts; |
1669 | 1687 | ||