aboutsummaryrefslogtreecommitdiffstats
path: root/net/dccp/dccp.h
diff options
context:
space:
mode:
Diffstat (limited to 'net/dccp/dccp.h')
-rw-r--r--net/dccp/dccp.h17
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
50extern struct inet_hashinfo dccp_hashinfo; 50extern struct inet_hashinfo dccp_hashinfo;
51 51
52extern atomic_t dccp_orphan_count; 52extern struct percpu_counter dccp_orphan_count;
53 53
54extern void dccp_time_wait(struct sock *sk, int state, int timeo); 54extern void dccp_time_wait(struct sock *sk, int state, int timeo);
55 55
@@ -98,9 +98,6 @@ extern int sysctl_dccp_retries2;
98extern int sysctl_dccp_feat_sequence_window; 98extern int sysctl_dccp_feat_sequence_window;
99extern int sysctl_dccp_feat_rx_ccid; 99extern int sysctl_dccp_feat_rx_ccid;
100extern int sysctl_dccp_feat_tx_ccid; 100extern int sysctl_dccp_feat_tx_ccid;
101extern int sysctl_dccp_feat_ack_ratio;
102extern int sysctl_dccp_feat_send_ack_vector;
103extern int sysctl_dccp_feat_send_ndp_count;
104extern int sysctl_dccp_tx_qlen; 101extern int sysctl_dccp_tx_qlen;
105extern int sysctl_dccp_sync_ratelimit; 102extern int sysctl_dccp_sync_ratelimit;
106 103
@@ -252,7 +249,8 @@ extern const char *dccp_state_name(const int state);
252extern void dccp_set_state(struct sock *sk, const int state); 249extern void dccp_set_state(struct sock *sk, const int state);
253extern void dccp_done(struct sock *sk); 250extern void dccp_done(struct sock *sk);
254 251
255extern void dccp_reqsk_init(struct request_sock *req, struct sk_buff *skb); 252extern int dccp_reqsk_init(struct request_sock *rq, struct dccp_sock const *dp,
253 struct sk_buff const *skb);
256 254
257extern int dccp_v4_conn_request(struct sock *sk, struct sk_buff *skb); 255extern 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
442extern int dccp_feat_finalise_settings(struct dccp_sock *dp);
443extern int dccp_feat_server_ccid_dependencies(struct dccp_request_sock *dreq);
444extern int dccp_feat_insert_opts(struct dccp_sock*, struct dccp_request_sock*,
445 struct sk_buff *skb);
446extern int dccp_feat_activate_values(struct sock *sk, struct list_head *fn);
447extern void dccp_feat_list_purge(struct list_head *fn_list);
448
444extern int dccp_insert_options(struct sock *sk, struct sk_buff *skb); 449extern int dccp_insert_options(struct sock *sk, struct sk_buff *skb);
445extern int dccp_insert_options_rsk(struct dccp_request_sock*, struct sk_buff*); 450extern int dccp_insert_options_rsk(struct dccp_request_sock*, struct sk_buff*);
446extern int dccp_insert_option_elapsed_time(struct sock *sk, 451extern int dccp_insert_option_elapsed_time(struct sock *sk,