]> 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, 16 Nov 2021 18:27:28 +0000 (10:27 -0800)
commit231bac4ccc431381d70c966a5bd5a95fbfc1f163
treefebc6bcb94e89e26004b7029ae741a7ff6dc3f46
parent57a8fa6f0189316ab4d13ffbc6dc5410d56dcbac
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.

Reviewed by: bz, kp (earlier version)
MFC after: 1 week
Relnotes: yes
Sponsored by: https://www.patreon.com/cperciva
Differential Revision: https://reviews.freebsd.org/D32956
usr.sbin/rtsold/rtsold.8
usr.sbin/rtsold/rtsold.c