lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Mon, 15 Jan 2007 13:35:18 +0100
From:	Jarek Poplawski <jarkao2@...pl>
To:	Patrick McHardy <kaber@...sh.net>
Cc:	netdev@...r.kernel.org, Stephen Hemminger <shemminger@...l.org>
Subject: Re: [IPROUTE 02/05]: Introduce tc_calc_xmitsize and use where appropriate

On 10-01-2007 11:01, Patrick McHardy wrote:
> [IPROUTE]: Introduce tc_calc_xmitsize and use where appropriate
> 
> Add tc_calc_xmitsize() as complement to tc_calc_xmittime(), which calculates
> the size that can be transmitted at a given rate during a given time.
> 
> Replace all expressions of the form "size = rate*tc_core_tick2usec(time))/1000000"
> by tc_calc_xmitsize() calls.
> 
> Signed-off-by: Patrick McHardy <kaber@...sh.net>
> 
> ---
...
> +unsigned tc_calc_xmitsize(unsigned rate, unsigned ticks)
> +{
> +	return ((double)rate*tc_core_tick2usec(ticks))/1000000;
> +}
> +

Actually, besides of replacing the expression, this function
changes its type to unsigned also.

Regards,
Jarek P. 
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ