[Dnsmasq-discuss] Make HighLoad constant value configurable from config.h
Серж ИвановЪ
evasive.gyron at gmail.com
Sun Apr 10 11:54:38 UTC 2022
Patch attached
пт, 8 апр. 2022 г. в 17:55, Серж ИвановЪ <evasive.gyron at gmail.com>:
> no problem, will do, if it is acceptable to merge it, please confirm,
> thanks
>
> пт, 8 апр. 2022 г. в 17:46, Geert Stappers <stappers at stappers.nl>:
>
>> On Fri, Apr 08, 2022 at 04:34:11PM +0300, Серж ИвановЪ wrote:
>> > I am talking about this part of code in src/dhcp.c
>> > ```
>> > struct ping_result *do_icmp_ping(time_t now, struct in_addr addr,
>> unsigned
>> > int h
>> > {
>> > static struct ping_result dummy;
>> > struct ping_result *r, *victim = NULL;
>> > int count, max = (int)(0.6 * (((float)PING_CACHE_TIME)/
>> > ((float)PING_WAIT)));
>> > ```
>> >
>> > 0.6 should be configurable via compile-time constants, not hard-coded
>>
>> That should be expressed as a patch.
>>
>>
>> Groeten
>> Geert Stappers
>> --
>> Silence is hard to parse
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20220410/61f66c1b/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Add-PING_CHECKS_THRESHOLD-compile-time-variable.patch
Type: text/x-patch
Size: 2062 bytes
Desc: not available
URL: <http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20220410/61f66c1b/attachment.bin>
More information about the Dnsmasq-discuss
mailing list