diff options
Diffstat (limited to 'include/net/sctp/structs.h')
-rw-r--r-- | include/net/sctp/structs.h | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/include/net/sctp/structs.h b/include/net/sctp/structs.h index c089f93ba591..31a8e88f1a74 100644 --- a/include/net/sctp/structs.h +++ b/include/net/sctp/structs.h | |||
@@ -201,13 +201,12 @@ extern struct sctp_globals { | |||
201 | struct sctp_bind_hashbucket *port_hashtable; | 201 | struct sctp_bind_hashbucket *port_hashtable; |
202 | 202 | ||
203 | /* This is the global local address list. | 203 | /* This is the global local address list. |
204 | * We actively maintain this complete list of interfaces on | 204 | * We actively maintain this complete list of addresses on |
205 | * the system by catching routing events. | 205 | * the system by catching address add/delete events. |
206 | * | 206 | * |
207 | * It is a list of sctp_sockaddr_entry. | 207 | * It is a list of sctp_sockaddr_entry. |
208 | */ | 208 | */ |
209 | struct list_head local_addr_list; | 209 | struct list_head local_addr_list; |
210 | spinlock_t local_addr_lock; | ||
211 | 210 | ||
212 | /* Flag to indicate if addip is enabled. */ | 211 | /* Flag to indicate if addip is enabled. */ |
213 | int addip_enable; | 212 | int addip_enable; |
@@ -243,7 +242,6 @@ extern struct sctp_globals { | |||
243 | #define sctp_port_alloc_lock (sctp_globals.port_alloc_lock) | 242 | #define sctp_port_alloc_lock (sctp_globals.port_alloc_lock) |
244 | #define sctp_port_hashtable (sctp_globals.port_hashtable) | 243 | #define sctp_port_hashtable (sctp_globals.port_hashtable) |
245 | #define sctp_local_addr_list (sctp_globals.local_addr_list) | 244 | #define sctp_local_addr_list (sctp_globals.local_addr_list) |
246 | #define sctp_local_addr_lock (sctp_globals.local_addr_lock) | ||
247 | #define sctp_addip_enable (sctp_globals.addip_enable) | 245 | #define sctp_addip_enable (sctp_globals.addip_enable) |
248 | #define sctp_prsctp_enable (sctp_globals.prsctp_enable) | 246 | #define sctp_prsctp_enable (sctp_globals.prsctp_enable) |
249 | 247 | ||
@@ -277,6 +275,7 @@ struct sctp_sock { | |||
277 | __u16 default_flags; | 275 | __u16 default_flags; |
278 | __u32 default_context; | 276 | __u32 default_context; |
279 | __u32 default_timetolive; | 277 | __u32 default_timetolive; |
278 | __u32 default_rcv_context; | ||
280 | 279 | ||
281 | /* Heartbeat interval: The endpoint sends out a Heartbeat chunk to | 280 | /* Heartbeat interval: The endpoint sends out a Heartbeat chunk to |
282 | * the destination address every heartbeat interval. This value | 281 | * the destination address every heartbeat interval. This value |
@@ -307,7 +306,7 @@ struct sctp_sock { | |||
307 | __u8 disable_fragments; | 306 | __u8 disable_fragments; |
308 | __u8 pd_mode; | 307 | __u8 pd_mode; |
309 | __u8 v4mapped; | 308 | __u8 v4mapped; |
310 | __u32 adaption_ind; | 309 | __u32 adaptation_ind; |
311 | 310 | ||
312 | /* Receive to here while partial delivery is in effect. */ | 311 | /* Receive to here while partial delivery is in effect. */ |
313 | struct sk_buff_head pd_lobby; | 312 | struct sk_buff_head pd_lobby; |
@@ -389,7 +388,7 @@ struct sctp_cookie { | |||
389 | /* Padding for future use */ | 388 | /* Padding for future use */ |
390 | __u8 padding; | 389 | __u8 padding; |
391 | 390 | ||
392 | __u32 adaption_ind; | 391 | __u32 adaptation_ind; |
393 | 392 | ||
394 | 393 | ||
395 | /* This is a shim for my peer's INIT packet, followed by | 394 | /* This is a shim for my peer's INIT packet, followed by |
@@ -432,7 +431,7 @@ union sctp_params { | |||
432 | struct sctp_ipv4addr_param *v4; | 431 | struct sctp_ipv4addr_param *v4; |
433 | struct sctp_ipv6addr_param *v6; | 432 | struct sctp_ipv6addr_param *v6; |
434 | union sctp_addr_param *addr; | 433 | union sctp_addr_param *addr; |
435 | struct sctp_adaption_ind_param *aind; | 434 | struct sctp_adaptation_ind_param *aind; |
436 | }; | 435 | }; |
437 | 436 | ||
438 | /* RFC 2960. Section 3.3.5 Heartbeat. | 437 | /* RFC 2960. Section 3.3.5 Heartbeat. |
@@ -1484,7 +1483,7 @@ struct sctp_association { | |||
1484 | __u8 asconf_capable; /* Does peer support ADDIP? */ | 1483 | __u8 asconf_capable; /* Does peer support ADDIP? */ |
1485 | __u8 prsctp_capable; /* Can peer do PR-SCTP? */ | 1484 | __u8 prsctp_capable; /* Can peer do PR-SCTP? */ |
1486 | 1485 | ||
1487 | __u32 adaption_ind; /* Adaption Code point. */ | 1486 | __u32 adaptation_ind; /* Adaptation Code point. */ |
1488 | 1487 | ||
1489 | /* This mask is used to disable sending the ASCONF chunk | 1488 | /* This mask is used to disable sending the ASCONF chunk |
1490 | * with specified parameter to peer. | 1489 | * with specified parameter to peer. |
@@ -1659,6 +1658,9 @@ struct sctp_association { | |||
1659 | __u32 default_context; | 1658 | __u32 default_context; |
1660 | __u32 default_timetolive; | 1659 | __u32 default_timetolive; |
1661 | 1660 | ||
1661 | /* Default receive parameters */ | ||
1662 | __u32 default_rcv_context; | ||
1663 | |||
1662 | /* This tracks outbound ssn for a given stream. */ | 1664 | /* This tracks outbound ssn for a given stream. */ |
1663 | struct sctp_ssnmap *ssnmap; | 1665 | struct sctp_ssnmap *ssnmap; |
1664 | 1666 | ||