[systemd-devel] [PATCH 09/24] sd-dhcp6-client: Add DHCPv6 client Solicitation timeout handling

Zbigniew Jędrzejewski-Szmek zbyszek at in.waw.pl
Wed Jun 18 06:50:24 PDT 2014


On Fri, Jun 13, 2014 at 04:44:59PM +0300, Patrik Flykt wrote:
> Add the core of DHCPv6 client message retransmission and upper bound
> timer and message count handling according to RFC 3315 Secions 7.1.2
                                                                 ^ 17.1.2 ?

> and 14. Omit the DHCPv6 initial delay; for now it is assumed that
> systemd-networkd will provide decent startup randomization that will
> desynchronize the clients.
> 
> When reinitializing the client, clear all timers.

> +        if (!client->retransmit_time) {
> +                client->retransmit_time =
> +                        client_timeout_compute_random(init_retransmit_time);
> +        } else {
> +                if (max_retransmit_time &&
> +                    client->retransmit_time > max_retransmit_time / 2)
> +                        client->retransmit_time = client_timeout_compute_random(max_retransmit_time);
> +                else
> +                        client->retransmit_time = client_timeout_compute_random(client->retransmit_time);
> +        }
Hm, I don't understand why the " / 2" is here. It seems that the
retransmit time suddenly jumps from max_retransmit_time/2 to
max_retransmit_time.

Zbyszek


More information about the systemd-devel mailing list