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, 12 insertions, 6 deletions
diff --git a/net/dccp/ccid.h b/net/dccp/ccid.h
index 469f9a14b463..95eb47d85517 100644
--- a/net/dccp/ccid.h
+++ b/net/dccp/ccid.h
@@ -30,21 +30,26 @@ struct ccid {
30 int (*ccid_hc_tx_init)(struct sock *sk); 30 int (*ccid_hc_tx_init)(struct sock *sk);
31 void (*ccid_hc_rx_exit)(struct sock *sk); 31 void (*ccid_hc_rx_exit)(struct sock *sk);
32 void (*ccid_hc_tx_exit)(struct sock *sk); 32 void (*ccid_hc_tx_exit)(struct sock *sk);
33 void (*ccid_hc_rx_packet_recv)(struct sock *sk, struct sk_buff *skb); 33 void (*ccid_hc_rx_packet_recv)(struct sock *sk,
34 struct sk_buff *skb);
34 int (*ccid_hc_rx_parse_options)(struct sock *sk, 35 int (*ccid_hc_rx_parse_options)(struct sock *sk,
35 unsigned char option, 36 unsigned char option,
36 unsigned char len, u16 idx, 37 unsigned char len, u16 idx,
37 unsigned char* value); 38 unsigned char* value);
38 void (*ccid_hc_rx_insert_options)(struct sock *sk, struct sk_buff *skb); 39 void (*ccid_hc_rx_insert_options)(struct sock *sk,
39 void (*ccid_hc_tx_insert_options)(struct sock *sk, struct sk_buff *skb); 40 struct sk_buff *skb);
40 void (*ccid_hc_tx_packet_recv)(struct sock *sk, struct sk_buff *skb); 41 void (*ccid_hc_tx_insert_options)(struct sock *sk,
42 struct sk_buff *skb);
43 void (*ccid_hc_tx_packet_recv)(struct sock *sk,
44 struct sk_buff *skb);
41 int (*ccid_hc_tx_parse_options)(struct sock *sk, 45 int (*ccid_hc_tx_parse_options)(struct sock *sk,
42 unsigned char option, 46 unsigned char option,
43 unsigned char len, u16 idx, 47 unsigned char len, u16 idx,
44 unsigned char* value); 48 unsigned char* value);
45 int (*ccid_hc_tx_send_packet)(struct sock *sk, 49 int (*ccid_hc_tx_send_packet)(struct sock *sk,
46 struct sk_buff *skb, int len); 50 struct sk_buff *skb, int len);
47 void (*ccid_hc_tx_packet_sent)(struct sock *sk, int more, int len); 51 void (*ccid_hc_tx_packet_sent)(struct sock *sk, int more,
52 int len);
48}; 53};
49 54
50extern int ccid_register(struct ccid *ccid); 55extern int ccid_register(struct ccid *ccid);
@@ -123,7 +128,8 @@ static inline int ccid_hc_tx_parse_options(struct ccid *ccid, struct sock *sk,
123{ 128{
124 int rc = 0; 129 int rc = 0;
125 if (ccid->ccid_hc_tx_parse_options != NULL) 130 if (ccid->ccid_hc_tx_parse_options != NULL)
126 rc = ccid->ccid_hc_tx_parse_options(sk, option, len, idx, value); 131 rc = ccid->ccid_hc_tx_parse_options(sk, option, len, idx,
132 value);
127 return rc; 133 return rc;
128} 134}
129 135