HomeFreeBSD

rtsol/rtsold: Add option to skip random delay

Description

rtsol/rtsold: Add option to skip random delay

In accordance with a SHOULD in RFC 4861, rtsol and rtsold wait a
random time between zero and one (aka MAX_RTR_SOLICITATION_DELAY)
seconds before sending a Router Solicitation, in order to avoid
network congestion if many hosts come online at once. (The
question of how many hosts would be required to cause congestion
by each sending a single packet on a Gbps+ network is left to the
reader.)

The new option -i disables this wait and instructs rtsol and rtsold
to send the Router Solicitation immediately.

Relnotes: yes
Sponsored by: https://www.patreon.com/cperciva
Differential Revision: https://reviews.freebsd.org/D32956

(cherry picked from commit 231bac4ccc431381d70c966a5bd5a95fbfc1f163)

Details

Provenance
cpercivaAuthored on Nov 16 2021, 6:24 PM
Differential Revision
D32956: rtsol/rtsold: Add option to skip random delay
Parents
rGf4aba8c9f0cb: if_epair: rework
Branches
Unknown
Tags
Unknown