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:	Thu, 27 Sep 2012 15:39:13 +0200
From:	Nicolas Dichtel <nicolas.dichtel@...nd.com>
To:	Eric Dumazet <eric.dumazet@...il.com>
CC:	netdev@...r.kernel.org, davem@...emloft.net
Subject: Re: [PATCH] inetpeer: ensure to set the maximum tokens the first
 time

Le 27/09/2012 15:34, Eric Dumazet a écrit :
> 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
Yes, this will avoid to pass the timeout arg to inet_getpeer()
--
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