Skip to content
Commit 7deb0f85 authored by Gerrit Renker's avatar Gerrit Renker
Browse files

dccp ccid-3: X truncated due to type conversion



This fixes a bug in computing the inter-packet-interval t_ipi = s/X: 

 scaled_div32(a, b) uses u32 for b, but in "scaled_div32(s, X)" the type of the
 sending rate `X' is u64. Since X is scaled by 2^6, this truncates rates greater
 than 2^26 Bps (~537 Mbps).

Using full 64-bit division now.

Signed-off-by: default avatarGerrit Renker <gerrit@erg.abdn.ac.uk>
parent 1e8a287c
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment