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]
Message-ID: <1348752886.5093.1282.camel@edumazet-glaptop>
Date:	Thu, 27 Sep 2012 15:34:46 +0200
From:	Eric Dumazet <eric.dumazet@...il.com>
To:	nicolas.dichtel@...nd.com
Cc:	netdev@...r.kernel.org, davem@...emloft.net
Subject: Re: [PATCH] inetpeer: ensure to set the maximum tokens the first
 time

On Thu, 2012-09-27 at 15:30 +0200, Eric Dumazet wrote:

> So find the right initializer ?
> 
> p->rate_last = jiffies;
> p->rate_tokens = TOKENS_INIT;
> 
> 

Or :

p->rate_last = jiffies - 60*HZ;

since the rates_tokens initial value is protocol/family dependent



--
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