diff options
Diffstat (limited to 'net/dccp/ccids/ccid3.h')
-rw-r--r-- | net/dccp/ccids/ccid3.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/net/dccp/ccids/ccid3.h b/net/dccp/ccids/ccid3.h index 58be6125b695..d16f00d784f3 100644 --- a/net/dccp/ccids/ccid3.h +++ b/net/dccp/ccids/ccid3.h | |||
@@ -128,10 +128,14 @@ struct ccid3_hc_rx_sock { | |||
128 | u32 ccid3hcrx_x_recv; | 128 | u32 ccid3hcrx_x_recv; |
129 | }; | 129 | }; |
130 | 130 | ||
131 | #define ccid3_hc_tx_field(s,field) (s->dccps_hc_tx_ccid_private == NULL ? 0 : \ | 131 | static inline struct ccid3_hc_tx_sock *ccid3_hc_tx_sk(const struct sock *sk) |
132 | ((struct ccid3_hc_tx_sock *)s->dccps_hc_tx_ccid_private)->ccid3hctx_##field) | 132 | { |
133 | return dccp_sk(sk)->dccps_hc_tx_ccid_private; | ||
134 | } | ||
133 | 135 | ||
134 | #define ccid3_hc_rx_field(s,field) (s->dccps_hc_rx_ccid_private == NULL ? 0 : \ | 136 | static inline struct ccid3_hc_rx_sock *ccid3_hc_rx_sk(const struct sock *sk) |
135 | ((struct ccid3_hc_rx_sock *)s->dccps_hc_rx_ccid_private)->ccid3hcrx_##field) | 137 | { |
138 | return dccp_sk(sk)->dccps_hc_rx_ccid_private; | ||
139 | } | ||
136 | 140 | ||
137 | #endif /* _DCCP_CCID3_H_ */ | 141 | #endif /* _DCCP_CCID3_H_ */ |