pub fn assign_local_preferences(candidates: &mut [LocalCandidate])Expand description
Assign §5.1.2.1’s local preferences across a gathered set, and price every candidate.
65535 when a candidate is the only one of its type for its component; otherwise 65535, 65534, … descending over the candidates sorted by address bytes, which is the whole reason this is a function over the set rather than a field on a candidate. §5.1.2.1 requires the value to be unique per type and component; ordering by whatever the OS enumerated first would make the same host produce different priorities on different runs, and the priorities are what the far end reasons about.