Re: [PATCH 2/3]: Sending time: update to ktime_t and bug-fix

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 6/9/07, Gerrit Renker <gerrit@xxxxxxxxxxxxxx> wrote:
[CCID3]: Sending time: update to ktime_t and bug-fix

This updates the computation of t_nom and t_last_win_count to use the newer
gettimeofday interface.

The second point of this patch is to fix a bug in the send time processing:

  ccid3_hc_tx_send_packet currently returns 0 when the time difference
  between current time and t_nom is less than 1000 microseconds.

  In this case the packet is sent immediately; but, unlike other packets
  that can be emitted on first attempt, it will not have its window
  counter updated and its options set as required. This is a bug.

Fix: Require the time difference to be at least 1000 microseconds. The
     algorithm then converges: time differences > 1000 microseconds trigger the
     timer in dccp_write_xmit; after timer expiry this function is tried again;
     when the time difference is less than 1000, the packet will have its options
     added and window counter updated as required.

I'm breaking this into two patches for you this time :-)

- Arnaldo
-
To unsubscribe from this list: send the line "unsubscribe dccp" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel]     [IETF DCCP]     [Linux Networking]     [Git]     [Security]     [Linux Assembly]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux