@@ -1004,7 +1004,7 @@ static int ccid3_hc_tx_send_packet(struct sock *sk,
10041004
10051005 /* Can we send? if so add options and add to packet history */
10061006 if (rc == 0 )
1007- new_packet -> dccphtx_win_count =
1007+ new_packet -> dccphtx_ccval =
10081008 DCCP_SKB_CB (skb )-> dccpd_ccval =
10091009 hctx -> ccid3hctx_last_win_count ;
10101010out :
@@ -1060,17 +1060,18 @@ static void ccid3_hc_tx_packet_sent(struct sock *sk, int more, int len)
10601060 min_t (unsigned long , quarter_rtt , 5 )) % 16 ;
10611061 ccid3_pr_debug ("%s, sk=%p, window changed from %u to %u!\n" ,
10621062 dccp_role (sk ), sk ,
1063- packet -> dccphtx_win_count ,
1063+ packet -> dccphtx_ccval ,
10641064 hctx -> ccid3hctx_last_win_count );
10651065 }
10661066 /* COMPLIANCE_END */
10671067#if 0
10681068 ccid3_pr_debug ("%s, sk=%p, packet sent (%llu,%u)\n" ,
10691069 dccp_role (sk ), sk ,
10701070 packet -> dccphtx_seqno ,
1071- packet -> dccphtx_win_count );
1071+ packet -> dccphtx_ccval );
10721072#endif
10731073 hctx -> ccid3hctx_idle = 0 ;
1074+ packet -> dccphtx_rtt = hctx -> ccid3hctx_rtt ;
10741075 packet -> dccphtx_sent = 1 ;
10751076 } else
10761077 ccid3_pr_debug ("%s, sk=%p, seqno=%llu NOT inserted!\n" ,
@@ -1489,11 +1490,10 @@ static int ccid3_hc_rx_add_hist(struct sock *sk,
14891490 step = 2 ;
14901491 /* OK, find next data packet */
14911492 num_later = 1 ;
1492- win_count = entry -> dccphrx_win_count ;
1493+ win_count = entry -> dccphrx_ccval ;
14931494 break ;
14941495 case 2 :
1495- tmp = (win_count -
1496- entry -> dccphrx_win_count );
1496+ tmp = win_count - entry -> dccphrx_ccval ;
14971497 if (tmp < 0 )
14981498 tmp += TFRC_WIN_COUNT_LIMIT ;
14991499 if (tmp > TFRC_WIN_COUNT_PER_RTT + 1 ) {
@@ -1553,7 +1553,7 @@ static void ccid3_hc_rx_send_feedback(struct sock *sk)
15531553 }
15541554
15551555 do_gettimeofday (& (hcrx -> ccid3hcrx_tstamp_last_feedback ));
1556- hcrx -> ccid3hcrx_last_counter = packet -> dccphrx_win_count ;
1556+ hcrx -> ccid3hcrx_last_counter = packet -> dccphrx_ccval ;
15571557 hcrx -> ccid3hcrx_seqno_last_counter = packet -> dccphrx_seqno ;
15581558 hcrx -> ccid3hcrx_bytes_recv = 0 ;
15591559
@@ -1645,11 +1645,11 @@ static u32 ccid3_hc_rx_calc_first_li(struct sock *sk)
16451645 switch (step ) {
16461646 case 0 :
16471647 tstamp = entry -> dccphrx_tstamp ;
1648- win_count = entry -> dccphrx_win_count ;
1648+ win_count = entry -> dccphrx_ccval ;
16491649 step = 1 ;
16501650 break ;
16511651 case 1 :
1652- interval = win_count - entry -> dccphrx_win_count ;
1652+ interval = win_count - entry -> dccphrx_ccval ;
16531653 if (interval < 0 )
16541654 interval += TFRC_WIN_COUNT_LIMIT ;
16551655 if (interval > 4 )
@@ -1816,7 +1816,7 @@ static void ccid3_hc_rx_detect_loss(struct sock *sk)
18161816 }
18171817
18181818 if (seq_loss != DCCP_MAX_SEQNO + 1 )
1819- win_loss = a_loss -> dccphrx_win_count ;
1819+ win_loss = a_loss -> dccphrx_ccval ;
18201820
18211821out_update_li :
18221822 ccid3_hc_rx_update_li (sk , seq_loss , win_loss );
@@ -1918,7 +1918,7 @@ static void ccid3_hc_rx_packet_recv(struct sock *sk, struct sk_buff *skb)
19181918 return ;
19191919 }
19201920
1921- win_count = packet -> dccphrx_win_count ;
1921+ win_count = packet -> dccphrx_ccval ;
19221922
19231923 ins = ccid3_hc_rx_add_hist (sk , packet );
19241924
0 commit comments