diff options
author | Gerrit Renker <gerrit@erg.abdn.ac.uk> | 2010-11-14 11:26:02 -0500 |
---|---|---|
committer | Gerrit Renker <gerrit@erg.abdn.ac.uk> | 2010-11-15 01:12:00 -0500 |
commit | 52394eecec4e6fa677a61af26f0bd35de665344e (patch) | |
tree | 283c99722c63a05a748916caaec876732309ceaf /net/dccp/ackvec.h | |
parent | d83447f0944e73d690218d79c07762ffa4ceb9e4 (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.h | 14 |
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 | */ |
69 | struct dccp_ackvec { | 68 | struct 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 | ||
104 | struct sock; | ||
105 | struct sk_buff; | ||
106 | |||
107 | extern int dccp_ackvec_init(void); | 102 | extern int dccp_ackvec_init(void); |
108 | extern void dccp_ackvec_exit(void); | 103 | extern void dccp_ackvec_exit(void); |
109 | 104 | ||
110 | extern struct dccp_ackvec *dccp_ackvec_alloc(const gfp_t priority); | 105 | extern struct dccp_ackvec *dccp_ackvec_alloc(const gfp_t priority); |
111 | extern void dccp_ackvec_free(struct dccp_ackvec *av); | 106 | extern void dccp_ackvec_free(struct dccp_ackvec *av); |
112 | 107 | ||
113 | extern int dccp_ackvec_add(struct dccp_ackvec *av, const struct sock *sk, | ||
114 | const u64 ackno, const u8 state); | ||
115 | |||
116 | extern void dccp_ackvec_check_rcv_ackno(struct dccp_ackvec *av, | ||
117 | struct sock *sk, const u64 ackno); | ||
118 | extern 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 | |||
122 | extern void dccp_ackvec_input(struct dccp_ackvec *av, struct sk_buff *skb); | 108 | extern void dccp_ackvec_input(struct dccp_ackvec *av, struct sk_buff *skb); |
123 | extern int dccp_ackvec_update_records(struct dccp_ackvec *av, u64 seq, u8 sum); | 109 | extern int dccp_ackvec_update_records(struct dccp_ackvec *av, u64 seq, u8 sum); |
124 | extern void dccp_ackvec_clear_state(struct dccp_ackvec *av, const u64 ackno); | 110 | extern void dccp_ackvec_clear_state(struct dccp_ackvec *av, const u64 ackno); |