]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
rtsol/rtsold: Add option to skip random delay
authorColin Percival <cperciva@FreeBSD.org>
Tue, 16 Nov 2021 18:24:05 +0000 (10:24 -0800)
committerColin Percival <cperciva@FreeBSD.org>
Tue, 23 Nov 2021 19:48:50 +0000 (11:48 -0800)
commita0fc5094bf4c594f2717cd1b757b1b5daca61d3f
tree428fcb3b191b2d1c3422eab30c6d0a8e066ce0da
parentf4aba8c9f0cb55faa9201819614458afb64d68d1
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)
usr.sbin/rtsold/rtsold.8
usr.sbin/rtsold/rtsold.c