diff options
Diffstat (limited to 'include/net/sctp/structs.h')
-rw-r--r-- | include/net/sctp/structs.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/include/net/sctp/structs.h b/include/net/sctp/structs.h index e90e7a9935dd..88949a994538 100644 --- a/include/net/sctp/structs.h +++ b/include/net/sctp/structs.h | |||
@@ -235,12 +235,15 @@ extern struct sctp_globals { | |||
235 | 235 | ||
236 | /* Flag to indicate whether computing and verifying checksum | 236 | /* Flag to indicate whether computing and verifying checksum |
237 | * is disabled. */ | 237 | * is disabled. */ |
238 | int checksum_disable; | 238 | bool checksum_disable; |
239 | 239 | ||
240 | /* Threshold for rwnd update SACKS. Receive buffer shifted this many | 240 | /* Threshold for rwnd update SACKS. Receive buffer shifted this many |
241 | * bits is an indicator of when to send and window update SACK. | 241 | * bits is an indicator of when to send and window update SACK. |
242 | */ | 242 | */ |
243 | int rwnd_update_shift; | 243 | int rwnd_update_shift; |
244 | |||
245 | /* Threshold for autoclose timeout, in seconds. */ | ||
246 | unsigned long max_autoclose; | ||
244 | } sctp_globals; | 247 | } sctp_globals; |
245 | 248 | ||
246 | #define sctp_rto_initial (sctp_globals.rto_initial) | 249 | #define sctp_rto_initial (sctp_globals.rto_initial) |
@@ -281,6 +284,7 @@ extern struct sctp_globals { | |||
281 | #define sctp_auth_enable (sctp_globals.auth_enable) | 284 | #define sctp_auth_enable (sctp_globals.auth_enable) |
282 | #define sctp_checksum_disable (sctp_globals.checksum_disable) | 285 | #define sctp_checksum_disable (sctp_globals.checksum_disable) |
283 | #define sctp_rwnd_upd_shift (sctp_globals.rwnd_update_shift) | 286 | #define sctp_rwnd_upd_shift (sctp_globals.rwnd_update_shift) |
287 | #define sctp_max_autoclose (sctp_globals.max_autoclose) | ||
284 | 288 | ||
285 | /* SCTP Socket type: UDP or TCP style. */ | 289 | /* SCTP Socket type: UDP or TCP style. */ |
286 | typedef enum { | 290 | typedef enum { |
@@ -365,7 +369,7 @@ static inline struct sock *sctp_opt2sk(const struct sctp_sock *sp) | |||
365 | return (struct sock *)sp; | 369 | return (struct sock *)sp; |
366 | } | 370 | } |
367 | 371 | ||
368 | #if defined(CONFIG_IPV6) || defined(CONFIG_IPV6_MODULE) | 372 | #if IS_ENABLED(CONFIG_IPV6) |
369 | struct sctp6_sock { | 373 | struct sctp6_sock { |
370 | struct sctp_sock sctp; | 374 | struct sctp_sock sctp; |
371 | struct ipv6_pinfo inet6; | 375 | struct ipv6_pinfo inet6; |
@@ -1085,6 +1089,7 @@ void sctp_transport_burst_reset(struct sctp_transport *); | |||
1085 | unsigned long sctp_transport_timeout(struct sctp_transport *); | 1089 | unsigned long sctp_transport_timeout(struct sctp_transport *); |
1086 | void sctp_transport_reset(struct sctp_transport *); | 1090 | void sctp_transport_reset(struct sctp_transport *); |
1087 | void sctp_transport_update_pmtu(struct sctp_transport *, u32); | 1091 | void sctp_transport_update_pmtu(struct sctp_transport *, u32); |
1092 | void sctp_transport_immediate_rtx(struct sctp_transport *); | ||
1088 | 1093 | ||
1089 | 1094 | ||
1090 | /* This is the structure we use to queue packets as they come into | 1095 | /* This is the structure we use to queue packets as they come into |