CVSROOT: /cvs
Module name: src
Changes by: [email protected] 2026/11/26 03:20:12
Modified files:
sys/net : rtable.c
Log message:
Rework and fix the gateway selection by hash-threshold
The loops before resulted in an inbalanced use of paths. The last path
was never selected and so the first path was over-used.
Adjust the loops an hopefully make it more obvious how this works.
Try to use the same loop logic to count the paths and select the path.
To avoid a possible race regarding rt_priority keep skiping rt (first
element) in the count loop.
Reported by Sergey Andreyev
With and OK bluhm@