diff options
Diffstat (limited to 'net/dccp/dccp.h')
-rw-r--r-- | net/dccp/dccp.h | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/net/dccp/dccp.h b/net/dccp/dccp.h index b4bc6e095a0e..0bc4c9a02e19 100644 --- a/net/dccp/dccp.h +++ b/net/dccp/dccp.h | |||
@@ -49,7 +49,7 @@ extern int dccp_debug; | |||
49 | 49 | ||
50 | extern struct inet_hashinfo dccp_hashinfo; | 50 | extern struct inet_hashinfo dccp_hashinfo; |
51 | 51 | ||
52 | extern atomic_t dccp_orphan_count; | 52 | extern struct percpu_counter dccp_orphan_count; |
53 | 53 | ||
54 | extern void dccp_time_wait(struct sock *sk, int state, int timeo); | 54 | extern void dccp_time_wait(struct sock *sk, int state, int timeo); |
55 | 55 | ||
@@ -98,9 +98,6 @@ extern int sysctl_dccp_retries2; | |||
98 | extern int sysctl_dccp_feat_sequence_window; | 98 | extern int sysctl_dccp_feat_sequence_window; |
99 | extern int sysctl_dccp_feat_rx_ccid; | 99 | extern int sysctl_dccp_feat_rx_ccid; |
100 | extern int sysctl_dccp_feat_tx_ccid; | 100 | extern int sysctl_dccp_feat_tx_ccid; |
101 | extern int sysctl_dccp_feat_ack_ratio; | ||
102 | extern int sysctl_dccp_feat_send_ack_vector; | ||
103 | extern int sysctl_dccp_feat_send_ndp_count; | ||
104 | extern int sysctl_dccp_tx_qlen; | 101 | extern int sysctl_dccp_tx_qlen; |
105 | extern int sysctl_dccp_sync_ratelimit; | 102 | extern int sysctl_dccp_sync_ratelimit; |
106 | 103 | ||
@@ -252,7 +249,8 @@ extern const char *dccp_state_name(const int state); | |||
252 | extern void dccp_set_state(struct sock *sk, const int state); | 249 | extern void dccp_set_state(struct sock *sk, const int state); |
253 | extern void dccp_done(struct sock *sk); | 250 | extern void dccp_done(struct sock *sk); |
254 | 251 | ||
255 | extern void dccp_reqsk_init(struct request_sock *req, struct sk_buff *skb); | 252 | extern int dccp_reqsk_init(struct request_sock *rq, struct dccp_sock const *dp, |
253 | struct sk_buff const *skb); | ||
256 | 254 | ||
257 | extern int dccp_v4_conn_request(struct sock *sk, struct sk_buff *skb); | 255 | extern int dccp_v4_conn_request(struct sock *sk, struct sk_buff *skb); |
258 | 256 | ||
@@ -435,12 +433,19 @@ static inline int dccp_ack_pending(const struct sock *sk) | |||
435 | const struct dccp_sock *dp = dccp_sk(sk); | 433 | const struct dccp_sock *dp = dccp_sk(sk); |
436 | return dp->dccps_timestamp_echo != 0 || | 434 | return dp->dccps_timestamp_echo != 0 || |
437 | #ifdef CONFIG_IP_DCCP_ACKVEC | 435 | #ifdef CONFIG_IP_DCCP_ACKVEC |
438 | (dccp_msk(sk)->dccpms_send_ack_vector && | 436 | (dp->dccps_hc_rx_ackvec != NULL && |
439 | dccp_ackvec_pending(dp->dccps_hc_rx_ackvec)) || | 437 | dccp_ackvec_pending(dp->dccps_hc_rx_ackvec)) || |
440 | #endif | 438 | #endif |
441 | inet_csk_ack_scheduled(sk); | 439 | inet_csk_ack_scheduled(sk); |
442 | } | 440 | } |
443 | 441 | ||
442 | extern int dccp_feat_finalise_settings(struct dccp_sock *dp); | ||
443 | extern int dccp_feat_server_ccid_dependencies(struct dccp_request_sock *dreq); | ||
444 | extern int dccp_feat_insert_opts(struct dccp_sock*, struct dccp_request_sock*, | ||
445 | struct sk_buff *skb); | ||
446 | extern int dccp_feat_activate_values(struct sock *sk, struct list_head *fn); | ||
447 | extern void dccp_feat_list_purge(struct list_head *fn_list); | ||
448 | |||
444 | extern int dccp_insert_options(struct sock *sk, struct sk_buff *skb); | 449 | extern int dccp_insert_options(struct sock *sk, struct sk_buff *skb); |
445 | extern int dccp_insert_options_rsk(struct dccp_request_sock*, struct sk_buff*); | 450 | extern int dccp_insert_options_rsk(struct dccp_request_sock*, struct sk_buff*); |
446 | extern int dccp_insert_option_elapsed_time(struct sock *sk, | 451 | extern int dccp_insert_option_elapsed_time(struct sock *sk, |