@@ -139,7 +139,7 @@ static int ccid2_hc_tx_send_packet(struct sock *sk, struct sk_buff *skb)
139139 return 0 ;
140140 }
141141
142- hctx = ccid2_hc_tx_sk (sk );
142+ hctx = ccid2_hc_tx_sk (sk );
143143
144144 ccid2_pr_debug ("pipe=%d cwnd=%d\n" , hctx -> ccid2hctx_pipe ,
145145 hctx -> ccid2hctx_cwnd );
@@ -368,13 +368,13 @@ static void ccid2_hc_tx_packet_sent(struct sock *sk, int more, unsigned int len)
368368static int ccid2_ackvector (struct sock * sk , struct sk_buff * skb , int offset ,
369369 unsigned char * * vec , unsigned char * veclen )
370370{
371- const struct dccp_hdr * dh = dccp_hdr (skb );
372- unsigned char * options = (unsigned char * )dh + dccp_hdr_len (skb );
373- unsigned char * opt_ptr ;
374- const unsigned char * opt_end = (unsigned char * )dh +
375- (dh -> dccph_doff * 4 );
376- unsigned char opt , len ;
377- unsigned char * value ;
371+ const struct dccp_hdr * dh = dccp_hdr (skb );
372+ unsigned char * options = (unsigned char * )dh + dccp_hdr_len (skb );
373+ unsigned char * opt_ptr ;
374+ const unsigned char * opt_end = (unsigned char * )dh +
375+ (dh -> dccph_doff * 4 );
376+ unsigned char opt , len ;
377+ unsigned char * value ;
378378
379379 BUG_ON (offset < 0 );
380380 options += offset ;
@@ -383,29 +383,29 @@ static int ccid2_ackvector(struct sock *sk, struct sk_buff *skb, int offset,
383383 return -1 ;
384384
385385 while (opt_ptr != opt_end ) {
386- opt = * opt_ptr ++ ;
387- len = 0 ;
388- value = NULL ;
389-
390- /* Check if this isn't a single byte option */
391- if (opt > DCCPO_MAX_RESERVED ) {
392- if (opt_ptr == opt_end )
393- goto out_invalid_option ;
394-
395- len = * opt_ptr ++ ;
396- if (len < 3 )
397- goto out_invalid_option ;
398- /*
399- * Remove the type and len fields, leaving
400- * just the value size
401- */
402- len -= 2 ;
403- value = opt_ptr ;
404- opt_ptr += len ;
405-
406- if (opt_ptr > opt_end )
407- goto out_invalid_option ;
408- }
386+ opt = * opt_ptr ++ ;
387+ len = 0 ;
388+ value = NULL ;
389+
390+ /* Check if this isn't a single byte option */
391+ if (opt > DCCPO_MAX_RESERVED ) {
392+ if (opt_ptr == opt_end )
393+ goto out_invalid_option ;
394+
395+ len = * opt_ptr ++ ;
396+ if (len < 3 )
397+ goto out_invalid_option ;
398+ /*
399+ * Remove the type and len fields, leaving
400+ * just the value size
401+ */
402+ len -= 2 ;
403+ value = opt_ptr ;
404+ opt_ptr += len ;
405+
406+ if (opt_ptr > opt_end )
407+ goto out_invalid_option ;
408+ }
409409
410410 switch (opt ) {
411411 case DCCPO_ACK_VECTOR_0 :
@@ -432,7 +432,7 @@ static void ccid2_hc_tx_kill_rto_timer(struct sock *sk)
432432}
433433
434434static inline void ccid2_new_ack (struct sock * sk ,
435- struct ccid2_seq * seqp ,
435+ struct ccid2_seq * seqp ,
436436 unsigned int * maxincr )
437437{
438438 struct ccid2_hc_tx_sock * hctx = ccid2_hc_tx_sk (sk );
@@ -759,7 +759,7 @@ static void ccid2_hc_tx_packet_recv(struct sock *sk, struct sk_buff *skb)
759759
760760static int ccid2_hc_tx_init (struct ccid * ccid , struct sock * sk )
761761{
762- struct ccid2_hc_tx_sock * hctx = ccid_priv (ccid );
762+ struct ccid2_hc_tx_sock * hctx = ccid_priv (ccid );
763763
764764 ccid2_change_cwnd (hctx , 1 );
765765 /* Initialize ssthresh to infinity. This means that we will exit the
@@ -793,7 +793,7 @@ static int ccid2_hc_tx_init(struct ccid *ccid, struct sock *sk)
793793
794794static void ccid2_hc_tx_exit (struct sock * sk )
795795{
796- struct ccid2_hc_tx_sock * hctx = ccid2_hc_tx_sk (sk );
796+ struct ccid2_hc_tx_sock * hctx = ccid2_hc_tx_sk (sk );
797797 int i ;
798798
799799 ccid2_hc_tx_kill_rto_timer (sk );
0 commit comments