diff options
Diffstat (limited to 'net/dccp/ccids/ccid2.h')
-rw-r--r-- | net/dccp/ccids/ccid2.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/net/dccp/ccids/ccid2.h b/net/dccp/ccids/ccid2.h index 0b08c90955a9..451a87464fa5 100644 --- a/net/dccp/ccids/ccid2.h +++ b/net/dccp/ccids/ccid2.h | |||
@@ -20,6 +20,13 @@ | |||
20 | #ifndef _DCCP_CCID2_H_ | 20 | #ifndef _DCCP_CCID2_H_ |
21 | #define _DCCP_CCID2_H_ | 21 | #define _DCCP_CCID2_H_ |
22 | 22 | ||
23 | #include <linux/dccp.h> | ||
24 | #include <linux/timer.h> | ||
25 | #include <linux/types.h> | ||
26 | #include "../ccid.h" | ||
27 | |||
28 | struct sock; | ||
29 | |||
23 | struct ccid2_seq { | 30 | struct ccid2_seq { |
24 | u64 ccid2s_seq; | 31 | u64 ccid2s_seq; |
25 | unsigned long ccid2s_sent; | 32 | unsigned long ccid2s_sent; |
@@ -66,4 +73,13 @@ struct ccid2_hc_rx_sock { | |||
66 | int ccid2hcrx_data; | 73 | int ccid2hcrx_data; |
67 | }; | 74 | }; |
68 | 75 | ||
76 | static inline struct ccid2_hc_tx_sock *ccid2_hc_tx_sk(const struct sock *sk) | ||
77 | { | ||
78 | return ccid_priv(dccp_sk(sk)->dccps_hc_tx_ccid); | ||
79 | } | ||
80 | |||
81 | static inline struct ccid2_hc_rx_sock *ccid2_hc_rx_sk(const struct sock *sk) | ||
82 | { | ||
83 | return ccid_priv(dccp_sk(sk)->dccps_hc_rx_ccid); | ||
84 | } | ||
69 | #endif /* _DCCP_CCID2_H_ */ | 85 | #endif /* _DCCP_CCID2_H_ */ |