aboutsummaryrefslogtreecommitdiffstats
path: root/net/dccp/ackvec.h
diff options
context:
space:
mode:
authorGerrit Renker <gerrit@erg.abdn.ac.uk>2010-11-14 11:26:02 -0500
committerGerrit Renker <gerrit@erg.abdn.ac.uk>2010-11-15 01:12:00 -0500
commit52394eecec4e6fa677a61af26f0bd35de665344e (patch)
tree283c99722c63a05a748916caaec876732309ceaf /net/dccp/ackvec.h
parentd83447f0944e73d690218d79c07762ffa4ceb9e4 (diff)
dccp ccid-2: Remove old infrastructure
This removes * functions for which updates have been provided in the preceding patches and * the @av_vec_len field - it is no longer necessary since the buffer length is now always computed dynamically. Signed-off-by: Gerrit Renker <gerrit@erg.abdn.ac.uk>
Diffstat (limited to 'net/dccp/ackvec.h')
-rw-r--r--net/dccp/ackvec.h14
1 files changed, 0 insertions, 14 deletions
diff --git a/net/dccp/ackvec.h b/net/dccp/ackvec.h
index 21c4212d1be0..e19b8d5ee05f 100644
--- a/net/dccp/ackvec.h
+++ b/net/dccp/ackvec.h
@@ -64,7 +64,6 @@ static inline u8 dccp_ackvec_state(const u8 *cell)
64 * %DCCP_SINGLE_OPT_MAXLEN cells in the live portion of @av_buf 64 * %DCCP_SINGLE_OPT_MAXLEN cells in the live portion of @av_buf
65 * @av_overflow: if 1 then buf_head == buf_tail indicates buffer wraparound 65 * @av_overflow: if 1 then buf_head == buf_tail indicates buffer wraparound
66 * @av_records: list of %dccp_ackvec_record (Ack Vectors sent previously) 66 * @av_records: list of %dccp_ackvec_record (Ack Vectors sent previously)
67 * @av_veclen: length of the live portion of @av_buf
68 */ 67 */
69struct dccp_ackvec { 68struct dccp_ackvec {
70 u8 av_buf[DCCPAV_MAX_ACKVEC_LEN]; 69 u8 av_buf[DCCPAV_MAX_ACKVEC_LEN];
@@ -75,7 +74,6 @@ struct dccp_ackvec {
75 bool av_buf_nonce[DCCPAV_NUM_ACKVECS]; 74 bool av_buf_nonce[DCCPAV_NUM_ACKVECS];
76 u8 av_overflow:1; 75 u8 av_overflow:1;
77 struct list_head av_records; 76 struct list_head av_records;
78 u16 av_vec_len;
79}; 77};
80 78
81/** struct dccp_ackvec_record - Records information about sent Ack Vectors 79/** struct dccp_ackvec_record - Records information about sent Ack Vectors
@@ -101,24 +99,12 @@ struct dccp_ackvec_record {
101 u8 avr_ack_nonce:1; 99 u8 avr_ack_nonce:1;
102}; 100};
103 101
104struct sock;
105struct sk_buff;
106
107extern int dccp_ackvec_init(void); 102extern int dccp_ackvec_init(void);
108extern void dccp_ackvec_exit(void); 103extern void dccp_ackvec_exit(void);
109 104
110extern struct dccp_ackvec *dccp_ackvec_alloc(const gfp_t priority); 105extern struct dccp_ackvec *dccp_ackvec_alloc(const gfp_t priority);
111extern void dccp_ackvec_free(struct dccp_ackvec *av); 106extern void dccp_ackvec_free(struct dccp_ackvec *av);
112 107
113extern int dccp_ackvec_add(struct dccp_ackvec *av, const struct sock *sk,
114 const u64 ackno, const u8 state);
115
116extern void dccp_ackvec_check_rcv_ackno(struct dccp_ackvec *av,
117 struct sock *sk, const u64 ackno);
118extern int dccp_ackvec_parse(struct sock *sk, const struct sk_buff *skb,
119 u64 *ackno, const u8 opt,
120 const u8 *value, const u8 len);
121
122extern void dccp_ackvec_input(struct dccp_ackvec *av, struct sk_buff *skb); 108extern void dccp_ackvec_input(struct dccp_ackvec *av, struct sk_buff *skb);
123extern int dccp_ackvec_update_records(struct dccp_ackvec *av, u64 seq, u8 sum); 109extern int dccp_ackvec_update_records(struct dccp_ackvec *av, u64 seq, u8 sum);
124extern void dccp_ackvec_clear_state(struct dccp_ackvec *av, const u64 ackno); 110extern void dccp_ackvec_clear_state(struct dccp_ackvec *av, const u64 ackno);