aboutsummaryrefslogtreecommitdiffstats
path: root/net/dccp/ccid.h
diff options
context:
space:
mode:
Diffstat (limited to 'net/dccp/ccid.h')
-rw-r--r--net/dccp/ccid.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/net/dccp/ccid.h b/net/dccp/ccid.h
index c6767b282244..962f1e9e2f7e 100644
--- a/net/dccp/ccid.h
+++ b/net/dccp/ccid.h
@@ -50,6 +50,10 @@ struct ccid {
50 struct sk_buff *skb, int len); 50 struct sk_buff *skb, int len);
51 void (*ccid_hc_tx_packet_sent)(struct sock *sk, int more, 51 void (*ccid_hc_tx_packet_sent)(struct sock *sk, int more,
52 int len); 52 int len);
53 void (*ccid_hc_rx_get_info)(struct sock *sk,
54 struct tcp_info *info);
55 void (*ccid_hc_tx_get_info)(struct sock *sk,
56 struct tcp_info *info);
53}; 57};
54 58
55extern int ccid_register(struct ccid *ccid); 59extern int ccid_register(struct ccid *ccid);
@@ -159,4 +163,18 @@ static inline void ccid_hc_rx_insert_options(struct ccid *ccid, struct sock *sk,
159 if (ccid->ccid_hc_rx_insert_options != NULL) 163 if (ccid->ccid_hc_rx_insert_options != NULL)
160 ccid->ccid_hc_rx_insert_options(sk, skb); 164 ccid->ccid_hc_rx_insert_options(sk, skb);
161} 165}
166
167static inline void ccid_hc_rx_get_info(struct ccid *ccid, struct sock *sk,
168 struct tcp_info *info)
169{
170 if (ccid->ccid_hc_rx_get_info != NULL)
171 ccid->ccid_hc_rx_get_info(sk, info);
172}
173
174static inline void ccid_hc_tx_get_info(struct ccid *ccid, struct sock *sk,
175 struct tcp_info *info)
176{
177 if (ccid->ccid_hc_tx_get_info != NULL)
178 ccid->ccid_hc_tx_get_info(sk, info);
179}
162#endif /* _CCID_H */ 180#endif /* _CCID_H */