diff options
Diffstat (limited to 'include/linux/dccp.h')
-rw-r--r-- | include/linux/dccp.h | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/include/linux/dccp.h b/include/linux/dccp.h index fda2148d8c85..f3fc4392e93d 100644 --- a/include/linux/dccp.h +++ b/include/linux/dccp.h | |||
@@ -56,10 +56,9 @@ struct dccp_hdr_ext { | |||
56 | }; | 56 | }; |
57 | 57 | ||
58 | /** | 58 | /** |
59 | * struct dccp_hdr_request - Conection initiation request header | 59 | * struct dccp_hdr_request - Connection initiation request header |
60 | * | 60 | * |
61 | * @dccph_req_service - Service to which the client app wants to connect | 61 | * @dccph_req_service - Service to which the client app wants to connect |
62 | * @dccph_req_options - list of options (must be a multiple of 32 bits | ||
63 | */ | 62 | */ |
64 | struct dccp_hdr_request { | 63 | struct dccp_hdr_request { |
65 | __be32 dccph_req_service; | 64 | __be32 dccph_req_service; |
@@ -76,12 +75,10 @@ struct dccp_hdr_ack_bits { | |||
76 | __be32 dccph_ack_nr_low; | 75 | __be32 dccph_ack_nr_low; |
77 | }; | 76 | }; |
78 | /** | 77 | /** |
79 | * struct dccp_hdr_response - Conection initiation response header | 78 | * struct dccp_hdr_response - Connection initiation response header |
80 | * | 79 | * |
81 | * @dccph_resp_ack_nr_high - 48 bit ack number high order bits, contains GSR | 80 | * @dccph_resp_ack - 48 bit Acknowledgment Number Subheader (5.3) |
82 | * @dccph_resp_ack_nr_low - 48 bit ack number low order bits, contains GSR | ||
83 | * @dccph_resp_service - Echoes the Service Code on a received DCCP-Request | 81 | * @dccph_resp_service - Echoes the Service Code on a received DCCP-Request |
84 | * @dccph_resp_options - list of options (must be a multiple of 32 bits | ||
85 | */ | 82 | */ |
86 | struct dccp_hdr_response { | 83 | struct dccp_hdr_response { |
87 | struct dccp_hdr_ack_bits dccph_resp_ack; | 84 | struct dccp_hdr_ack_bits dccph_resp_ack; |
@@ -91,8 +88,9 @@ struct dccp_hdr_response { | |||
91 | /** | 88 | /** |
92 | * struct dccp_hdr_reset - Unconditionally shut down a connection | 89 | * struct dccp_hdr_reset - Unconditionally shut down a connection |
93 | * | 90 | * |
94 | * @dccph_reset_service - Echoes the Service Code on a received DCCP-Request | 91 | * @dccph_reset_ack - 48 bit Acknowledgment Number Subheader (5.6) |
95 | * @dccph_reset_options - list of options (must be a multiple of 32 bits | 92 | * @dccph_reset_code - one of %dccp_reset_codes |
93 | * @dccph_reset_data - the Data 1 ... Data 3 fields from 5.6 | ||
96 | */ | 94 | */ |
97 | struct dccp_hdr_reset { | 95 | struct dccp_hdr_reset { |
98 | struct dccp_hdr_ack_bits dccph_reset_ack; | 96 | struct dccp_hdr_ack_bits dccph_reset_ack; |
@@ -204,6 +202,7 @@ struct dccp_so_feat { | |||
204 | #define DCCP_SOCKOPT_SERVICE 2 | 202 | #define DCCP_SOCKOPT_SERVICE 2 |
205 | #define DCCP_SOCKOPT_CHANGE_L 3 | 203 | #define DCCP_SOCKOPT_CHANGE_L 3 |
206 | #define DCCP_SOCKOPT_CHANGE_R 4 | 204 | #define DCCP_SOCKOPT_CHANGE_R 4 |
205 | #define DCCP_SOCKOPT_GET_CUR_MPS 5 | ||
207 | #define DCCP_SOCKOPT_SEND_CSCOV 10 | 206 | #define DCCP_SOCKOPT_SEND_CSCOV 10 |
208 | #define DCCP_SOCKOPT_RECV_CSCOV 11 | 207 | #define DCCP_SOCKOPT_RECV_CSCOV 11 |
209 | #define DCCP_SOCKOPT_CCID_RX_INFO 128 | 208 | #define DCCP_SOCKOPT_CCID_RX_INFO 128 |
@@ -215,6 +214,7 @@ struct dccp_so_feat { | |||
215 | #ifdef __KERNEL__ | 214 | #ifdef __KERNEL__ |
216 | 215 | ||
217 | #include <linux/in.h> | 216 | #include <linux/in.h> |
217 | #include <linux/ktime.h> | ||
218 | #include <linux/list.h> | 218 | #include <linux/list.h> |
219 | #include <linux/uio.h> | 219 | #include <linux/uio.h> |
220 | #include <linux/workqueue.h> | 220 | #include <linux/workqueue.h> |
@@ -391,7 +391,6 @@ struct dccp_opt_pend { | |||
391 | struct dccp_opt_conf *dccpop_sc; | 391 | struct dccp_opt_conf *dccpop_sc; |
392 | }; | 392 | }; |
393 | 393 | ||
394 | extern void __dccp_minisock_init(struct dccp_minisock *dmsk); | ||
395 | extern void dccp_minisock_init(struct dccp_minisock *dmsk); | 394 | extern void dccp_minisock_init(struct dccp_minisock *dmsk); |
396 | 395 | ||
397 | extern int dccp_parse_options(struct sock *sk, struct sk_buff *skb); | 396 | extern int dccp_parse_options(struct sock *sk, struct sk_buff *skb); |
@@ -471,6 +470,7 @@ struct dccp_ackvec; | |||
471 | * @dccps_pcrlen - receiver partial checksum coverage (via sockopt) | 470 | * @dccps_pcrlen - receiver partial checksum coverage (via sockopt) |
472 | * @dccps_ndp_count - number of Non Data Packets since last data packet | 471 | * @dccps_ndp_count - number of Non Data Packets since last data packet |
473 | * @dccps_mss_cache - current value of MSS (path MTU minus header sizes) | 472 | * @dccps_mss_cache - current value of MSS (path MTU minus header sizes) |
473 | * @dccps_rate_last - timestamp for rate-limiting DCCP-Sync (RFC 4340, 7.5.4) | ||
474 | * @dccps_minisock - associated minisock (accessed via dccp_msk) | 474 | * @dccps_minisock - associated minisock (accessed via dccp_msk) |
475 | * @dccps_hc_rx_ackvec - rx half connection ack vector | 475 | * @dccps_hc_rx_ackvec - rx half connection ack vector |
476 | * @dccps_hc_rx_ccid - CCID used for the receiver (or receiving half-connection) | 476 | * @dccps_hc_rx_ccid - CCID used for the receiver (or receiving half-connection) |
@@ -498,7 +498,7 @@ struct dccp_sock { | |||
498 | __u64 dccps_gar; | 498 | __u64 dccps_gar; |
499 | __be32 dccps_service; | 499 | __be32 dccps_service; |
500 | struct dccp_service_list *dccps_service_list; | 500 | struct dccp_service_list *dccps_service_list; |
501 | struct timeval dccps_timestamp_time; | 501 | ktime_t dccps_timestamp_time; |
502 | __u32 dccps_timestamp_echo; | 502 | __u32 dccps_timestamp_echo; |
503 | __u16 dccps_l_ack_ratio; | 503 | __u16 dccps_l_ack_ratio; |
504 | __u16 dccps_r_ack_ratio; | 504 | __u16 dccps_r_ack_ratio; |
@@ -506,12 +506,12 @@ struct dccp_sock { | |||
506 | __u16 dccps_pcrlen; | 506 | __u16 dccps_pcrlen; |
507 | unsigned long dccps_ndp_count; | 507 | unsigned long dccps_ndp_count; |
508 | __u32 dccps_mss_cache; | 508 | __u32 dccps_mss_cache; |
509 | unsigned long dccps_rate_last; | ||
509 | struct dccp_minisock dccps_minisock; | 510 | struct dccp_minisock dccps_minisock; |
510 | struct dccp_ackvec *dccps_hc_rx_ackvec; | 511 | struct dccp_ackvec *dccps_hc_rx_ackvec; |
511 | struct ccid *dccps_hc_rx_ccid; | 512 | struct ccid *dccps_hc_rx_ccid; |
512 | struct ccid *dccps_hc_tx_ccid; | 513 | struct ccid *dccps_hc_tx_ccid; |
513 | struct dccp_options_received dccps_options_received; | 514 | struct dccp_options_received dccps_options_received; |
514 | struct timeval dccps_epoch; | ||
515 | enum dccp_role dccps_role:2; | 515 | enum dccp_role dccps_role:2; |
516 | __u8 dccps_hc_rx_insert_options:1; | 516 | __u8 dccps_hc_rx_insert_options:1; |
517 | __u8 dccps_hc_tx_insert_options:1; | 517 | __u8 dccps_hc_tx_insert_options:1; |